| Revision 916,
1.3 KB
checked in by bruno, 3 years ago
(diff) |
- Improves Debian support by a/ allowing PBDESC to be used in control file with space prepended. b/ prepend 0 to non digit versions such as devel. c/ creating debian pbfilter files for PBDEBSTD and PBDEBCOMP macros used in control.
- Uses pbtag for ebuild and pkg packages
- Improves pb Solaris pkgs
- Improves pb Debian pkgs (only some warnings remaining for lintian)
- Adds a PBSUMMARY macro and use it. Now also generated for newproj.
|
| Line | |
|---|
| 1 | # |
|---|
| 2 | # $Id$ |
|---|
| 3 | # |
|---|
| 4 | %define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib) |
|---|
| 5 | %define srcname PBPKG |
|---|
| 6 | |
|---|
| 7 | Summary: PBSUMMARY |
|---|
| 8 | Summary(fr): Module Perl pour le support de divers OS (Linux/Solaris/...) |
|---|
| 9 | |
|---|
| 10 | Name: PBREALPKG |
|---|
| 11 | Version: PBVER |
|---|
| 12 | Release: PBTAGPBSUF |
|---|
| 13 | License: GPL |
|---|
| 14 | Group: PBGRP |
|---|
| 15 | Url: PBURL |
|---|
| 16 | Source: PBREPO/PBSRC |
|---|
| 17 | BuildRoot: %{_tmppath}/%{srcname}-%{version}-%{release}-root-%(id -u -n) |
|---|
| 18 | BuildArch: noarch |
|---|
| 19 | Requires: perl >= 5.8.4,PBDEP |
|---|
| 20 | |
|---|
| 21 | %description |
|---|
| 22 | PBDESC |
|---|
| 23 | |
|---|
| 24 | %description -l fr |
|---|
| 25 | PBREALPKG est un ensemble de fonctions pour aider à développer des projets perl |
|---|
| 26 | et à traiter de diverses distributions Linux. |
|---|
| 27 | |
|---|
| 28 | %prep |
|---|
| 29 | %setup -q -n %{srcname}-%{version} |
|---|
| 30 | |
|---|
| 31 | %build |
|---|
| 32 | %{__perl} Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR CONFDIR=%{_sysconfdir}/pb |
|---|
| 33 | make |
|---|
| 34 | |
|---|
| 35 | %install |
|---|
| 36 | %{__rm} -rf $RPM_BUILD_ROOT |
|---|
| 37 | make DESTDIR=${RPM_BUILD_ROOT} install |
|---|
| 38 | find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f |
|---|
| 39 | find ${RPM_BUILD_ROOT} -type d -depth | xargs rmdir --ignore-fail-on-non-empty |
|---|
| 40 | |
|---|
| 41 | %check |
|---|
| 42 | make test |
|---|
| 43 | |
|---|
| 44 | %clean |
|---|
| 45 | %{__rm} -rf $RPM_BUILD_ROOT |
|---|
| 46 | |
|---|
| 47 | %files |
|---|
| 48 | %defattr(-,root,root) |
|---|
| 49 | %doc NEWS AUTHORS |
|---|
| 50 | %doc INSTALL COPYING README |
|---|
| 51 | %config(noreplace) %{_sysconfdir}/pb |
|---|
| 52 | |
|---|
| 53 | %{perlvendorlib}/* |
|---|
| 54 | %{_bindir}/* |
|---|
| 55 | #%{_mandir}/man1/* |
|---|
| 56 | %{_mandir}/man3/* |
|---|
| 57 | |
|---|
| 58 | %changelog |
|---|
| 59 | PBLOG |
|---|
Note: See
TracBrowser
for help on using the repository browser.