Last change
on this file since 2566 was 1168, checked in by Bruno Cornec, 14 years ago |
- For redhat 7.3 and rhel 2.1 remove the call to %check which doesn't exist and prevents package generation
|
File size:
1.3 KB
|
Rev | Line | |
---|
[14] | 1 | #
|
---|
| 2 | # $Id$
|
---|
| 3 | #
|
---|
[283] | 4 | %define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
|
---|
[559] | 5 | %define srcname PBPKG
|
---|
[14] | 6 |
|
---|
[916] | 7 | Summary: PBSUMMARY
|
---|
[637] | 8 | Summary(fr): Project Builder ou pb produit des paquets pour diverses distributions
|
---|
[14] | 9 |
|
---|
[27] | 10 | Name: PBPKG
|
---|
[15] | 11 | Version: PBVER
|
---|
[99] | 12 | Release: PBTAGPBSUF
|
---|
[1150] | 13 | License: PBLIC
|
---|
[15] | 14 | Group: PBGRP
|
---|
[889] | 15 | Url: PBURL
|
---|
[429] | 16 | Source: PBREPO/PBSRC
|
---|
[14] | 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
|
---|
[25] | 18 | BuildArch: noarch
|
---|
[1152] | 19 | Requires: perl >= 5.8.4,perl-DateManip,perl-ProjectBuilder,perl-File-MimeInfo,rpm-build,PBDEP
|
---|
[14] | 20 |
|
---|
| 21 | %description
|
---|
[461] | 22 | PBDESC
|
---|
[14] | 23 |
|
---|
| 24 | %description -l fr
|
---|
[52] | 25 | Project Builder ou pb est un programme pour produire des paquets pour
|
---|
| 26 | diverses distributions.
|
---|
[154] | 27 | Il réalise cela en minimisant la duplication des informations requises
|
---|
| 28 | et par un jeu de fichiers de configuration très simples.
|
---|
[14] | 29 |
|
---|
| 30 | %prep
|
---|
| 31 | %setup -q
|
---|
| 32 |
|
---|
| 33 | %build
|
---|
[359] | 34 | %{__perl} Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR
|
---|
[203] | 35 | make
|
---|
[14] | 36 |
|
---|
| 37 | %install
|
---|
[283] | 38 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
[359] | 39 | make DESTDIR=${RPM_BUILD_ROOT} install
|
---|
[624] | 40 | find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f
|
---|
| 41 | find ${RPM_BUILD_ROOT} -type d -depth | xargs rmdir --ignore-fail-on-non-empty
|
---|
[14] | 42 |
|
---|
[1168] | 43 | PBMKTEST
|
---|
[359] | 44 |
|
---|
[14] | 45 | %clean
|
---|
[226] | 46 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
[14] | 47 |
|
---|
| 48 | %files
|
---|
| 49 | %defattr(-,root,root)
|
---|
[297] | 50 | %doc NEWS AUTHORS
|
---|
[404] | 51 | %doc INSTALL COPYING README
|
---|
[14] | 52 |
|
---|
[359] | 53 | %{perlvendorlib}/*
|
---|
[226] | 54 | %{_bindir}/*
|
---|
[359] | 55 | %{_mandir}/man1/*
|
---|
[407] | 56 | %{_mandir}/man3/*
|
---|
[14] | 57 |
|
---|
| 58 | %changelog
|
---|
[17] | 59 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.