source: ProjectBuilder/pbconf/devel/ProjectBuilder/rpm/perl-ProjectBuilder.spec @ 2136

Last change on this file since 2136 was 2136, checked in by Bruno Cornec, 5 years ago

Fix #115

The standard conf file is now under /usr/share/pb and the one under
/etc/pn is modifyable by the sysadmin is contains only comments by
default.

File size: 1.4 KB
Line 
1#
2# $Id$
3#
4%define perlvendorlib %(eval "`PBPERLCMD -V:installvendorlib`"; echo $installvendorlib)
5%define srcname PBPKG
6
7Summary:    PBSUMMARY
8Summary(fr):    Module Perl pour le support de divers OS (Linux/Solaris/...)
9
10Name:       PBREALPKG
11Version:    PBVER
12Release:    PBTAGPBSUF
13License:    PBLIC
14Group:      PBGRP
15Url:        PBURL
16Source:     PBREPO/PBSRC
17BuildRoot:  %{_tmppath}/%{srcname}-%{version}-%{release}-root-%(id -u -n)
18PBBUILDARCH:    noarch
19Requires:   perl >= 5.6.2,PBDEP
20PBBUILDDEP
21
22%description
23PBDESC
24
25%description -l fr
26PBREALPKG est un ensemble de fonctions pour aider à développer
27des projets perl et à traiter de diverses distributions Linux.
28
29%prep
30%setup -q -n %{srcname}-%{version}PBEXTDIR
31
32%build
33PBPERLCMD Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR SYSCONFDIR=%{_sysconfdir}/pb CONFDIR=%{_datadir}/pb MANDIR=%{_mandir}
34make %{?_smp_mflags}
35
36%install
37%{__rm} -rf $RPM_BUILD_ROOT
38make DESTDIR=${RPM_BUILD_ROOT} install
39find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f
40find ${RPM_BUILD_ROOT} -type d -depth | xargs rmdir --ignore-fail-on-non-empty
41
42PBMKTEST
43
44%clean
45%{__rm} -rf $RPM_BUILD_ROOT
46
47%files
48%defattr(-,root,root,-)
49%doc NEWS AUTHORS
50%doc COPYING README
51%config %{_datadir}/pb
52%config(noreplace) %{_sysconfdir}/pb
53
54%{perlvendorlib}/*
55%{_bindir}/*
56%{_mandir}/man1/*
57%{_mandir}/man3/*
58%{_mandir}/man5/*
59
60%changelog
61PBLOG
Note: See TracBrowser for help on using the repository browser.