Last change
on this file since 2202 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.3 KB
|
Rev | Line | |
---|
[972] | 1 | #
|
---|
| 2 | # $Id$
|
---|
| 3 | #
|
---|
[1654] | 4 | %define perlvendorlib %(eval "`PBPERLCMD -V:installvendorlib`"; echo $installvendorlib)
|
---|
[972] | 5 | %define srcname PBPKG
|
---|
| 6 |
|
---|
| 7 | Summary: PBSUMMARY
|
---|
[1336] | 8 | Summary(fr): Outil similaire à debootstrap pour une distribution RPM.
|
---|
[972] | 9 |
|
---|
| 10 | Name: PBPKG
|
---|
| 11 | Version: PBVER
|
---|
| 12 | Release: PBTAGPBSUF
|
---|
[1150] | 13 | License: PBLIC
|
---|
[972] | 14 | Group: PBGRP
|
---|
| 15 | Url: PBURL
|
---|
| 16 | Source: PBREPO/PBSRC
|
---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
|
---|
[1654] | 18 | PBBUILDARCH: noarch
|
---|
[1310] | 19 | Requires: perl >= 5.8.4,perl-ProjectBuilder,perl-libwww-perl,wget,PBDEP
|
---|
[1832] | 20 | PBBUILDDEP
|
---|
[972] | 21 |
|
---|
| 22 | %description
|
---|
| 23 | PBDESC
|
---|
| 24 |
|
---|
| 25 | %description -l fr
|
---|
[1151] | 26 | La commande rpmbootstrap crée un environnement chrooté pour la distribution
|
---|
| 27 | RPM concernée.
|
---|
[972] | 28 | Il est similaire à debootstrap pour les distributions .deb
|
---|
| 29 |
|
---|
| 30 | %prep
|
---|
[2100] | 31 | %setup -q -n %{srcname}-%{version}PBEXTDIR
|
---|
[972] | 32 |
|
---|
| 33 | %build
|
---|
[1654] | 34 | PBPERLCMD Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR
|
---|
[972] | 35 | make
|
---|
| 36 |
|
---|
| 37 | %install
|
---|
| 38 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
| 39 | make DESTDIR=${RPM_BUILD_ROOT} install
|
---|
| 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
|
---|
| 42 |
|
---|
[1168] | 43 | PBMKTEST
|
---|
[972] | 44 |
|
---|
| 45 | %clean
|
---|
| 46 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
| 47 |
|
---|
| 48 | %files
|
---|
| 49 | %defattr(-,root,root)
|
---|
| 50 | %doc NEWS AUTHORS
|
---|
| 51 | %doc INSTALL COPYING README
|
---|
| 52 |
|
---|
[981] | 53 | #%{perlvendorlib}/*
|
---|
[972] | 54 | %{_bindir}/*
|
---|
| 55 | %{_mandir}/man1/*
|
---|
[981] | 56 | #%{_mandir}/man3/*
|
---|
[972] | 57 |
|
---|
| 58 | %changelog
|
---|
| 59 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.