Last change
on this file since 1916 was 1740, checked in by Bruno Cornec, 11 years ago |
- All rpm packages need rpmbuild to be built (added automatically by pb in the VM) thus solving part of #53
|
File size:
1.4 KB
|
Rev | Line | |
---|
[14] | 1 | #
|
---|
| 2 | # $Id$
|
---|
| 3 | #
|
---|
[1654] | 4 | %define perlvendorlib %(eval "`PBPERLCMD -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)
|
---|
[1654] | 18 | PBBUILDARCH: noarch
|
---|
| 19 | Requires: perl >= 5.6.2,perl-DateManip,perl-ProjectBuilder,perl-File-MimeInfo,rpm-build,PBDEP
|
---|
[1740] | 20 | BuildRequires: rpmbuild
|
---|
[14] | 21 |
|
---|
| 22 | %description
|
---|
[461] | 23 | PBDESC
|
---|
[14] | 24 |
|
---|
| 25 | %description -l fr
|
---|
[52] | 26 | Project Builder ou pb est un programme pour produire des paquets pour
|
---|
| 27 | diverses distributions.
|
---|
[154] | 28 | Il réalise cela en minimisant la duplication des informations requises
|
---|
| 29 | et par un jeu de fichiers de configuration très simples.
|
---|
[14] | 30 |
|
---|
| 31 | %prep
|
---|
| 32 | %setup -q
|
---|
| 33 |
|
---|
| 34 | %build
|
---|
[1654] | 35 | PBPERLCMD Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR
|
---|
[203] | 36 | make
|
---|
[14] | 37 |
|
---|
| 38 | %install
|
---|
[283] | 39 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
[359] | 40 | make DESTDIR=${RPM_BUILD_ROOT} install
|
---|
[624] | 41 | find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f
|
---|
| 42 | find ${RPM_BUILD_ROOT} -type d -depth | xargs rmdir --ignore-fail-on-non-empty
|
---|
[14] | 43 |
|
---|
| 44 | %clean
|
---|
[226] | 45 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
[14] | 46 |
|
---|
| 47 | %files
|
---|
| 48 | %defattr(-,root,root)
|
---|
[297] | 49 | %doc NEWS AUTHORS
|
---|
[404] | 50 | %doc INSTALL COPYING README
|
---|
[14] | 51 |
|
---|
[359] | 52 | %{perlvendorlib}/*
|
---|
[226] | 53 | %{_bindir}/*
|
---|
[359] | 54 | %{_mandir}/man1/*
|
---|
[407] | 55 | %{_mandir}/man3/*
|
---|
[14] | 56 |
|
---|
| 57 | %changelog
|
---|
[17] | 58 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.