Last change
on this file since 2489 was 2100, checked in by Bruno Cornec, 8 years ago |
- Fix tag name for test versions for rpm (0.date.letter.rev)
- Fix tar file names for test versions and their usage in the setup macro and adapt PBSRC
- Fix #136 for rpm packages
- Simplify target dir setup
|
File size:
1.2 KB
|
Rev | Line | |
---|
[1341] | 1 | #
|
---|
| 2 | # $Id$
|
---|
| 3 | #
|
---|
[1654] | 4 | %define perlvendorlib %(eval "`PBPERLCMD -V:installvendorlib`"; echo $installvendorlib)
|
---|
[1341] | 5 | %define srcname PBPKG
|
---|
| 6 |
|
---|
| 7 | Summary: PBSUMMARY
|
---|
| 8 | Summary(fr): Project Builder Make Boot Media permet de créer des media amorçables à façon
|
---|
| 9 |
|
---|
| 10 | Name: PBPKG
|
---|
| 11 | Version: PBVER
|
---|
| 12 | Release: PBTAGPBSUF
|
---|
| 13 | License: PBLIC
|
---|
| 14 | Group: PBGRP
|
---|
| 15 | Url: PBURL
|
---|
| 16 | Source: PBREPO/PBSRC
|
---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
|
---|
[1654] | 18 | PBBUILDARCH: noarch
|
---|
[1431] | 19 | Requires: perl >= 5.8.4,perl-ProjectBuilder,PBDEP
|
---|
[1832] | 20 | PBBUILDDEP
|
---|
[1341] | 21 |
|
---|
| 22 | %description
|
---|
| 23 | PBDESC
|
---|
| 24 |
|
---|
| 25 | %description -l fr
|
---|
| 26 | Project Builder Make Boot Media permet de créer des media amorçables à façon
|
---|
| 27 |
|
---|
| 28 | %prep
|
---|
[2100] | 29 | %setup -q -n %{srcname}-%{version}PBEXTDIR
|
---|
[1341] | 30 |
|
---|
| 31 | %build
|
---|
[1654] | 32 | PBPERLCMD Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR
|
---|
[1341] | 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 | %clean
|
---|
| 42 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
| 43 |
|
---|
| 44 | %files
|
---|
| 45 | %defattr(-,root,root)
|
---|
| 46 | %doc NEWS AUTHORS
|
---|
| 47 | %doc INSTALL COPYING README
|
---|
| 48 |
|
---|
[1342] | 49 | #%{perlvendorlib}/*
|
---|
[1341] | 50 | %{_bindir}/*
|
---|
[1342] | 51 | #%{_sysconfdir}/%{name}
|
---|
[1341] | 52 | %{_mandir}/man1/*
|
---|
[1342] | 53 | #%{_mandir}/man3/*
|
---|
[1341] | 54 |
|
---|
| 55 | %changelog
|
---|
| 56 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.