Last change
on this file since 1124 was 981, checked in by Bruno Cornec, 15 years ago |
- Adds some notes for package signing
- Fix syntax for rpmbootstrap + build process
|
File size:
1.2 KB
|
Rev | Line | |
---|
[972] | 1 | #
|
---|
| 2 | # $Id$
|
---|
| 3 | #
|
---|
| 4 | %define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
|
---|
| 5 | %define srcname PBPKG
|
---|
| 6 |
|
---|
| 7 | Summary: PBSUMMARY
|
---|
[979] | 8 | Summary(fr): rpmbootstrap crée un environnement chrooté pour la distribution concernée
|
---|
[972] | 9 |
|
---|
| 10 | Name: PBPKG
|
---|
| 11 | Version: PBVER
|
---|
| 12 | Release: PBTAGPBSUF
|
---|
| 13 | License: GPL
|
---|
| 14 | Group: PBGRP
|
---|
| 15 | Url: PBURL
|
---|
| 16 | Source: PBREPO/PBSRC
|
---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
|
---|
| 18 | BuildArch: noarch
|
---|
| 19 | Requires: perl >= 5.8.4,perl-ProjectBuilder,perl-libwww-perl,PBDEP
|
---|
| 20 |
|
---|
| 21 | %description
|
---|
| 22 | PBDESC
|
---|
| 23 |
|
---|
| 24 | %description -l fr
|
---|
[979] | 25 | rpmbootstrap crée un environnement chrooté pour la distribution concernée
|
---|
[972] | 26 | Il est similaire à debootstrap pour les distributions .deb
|
---|
| 27 |
|
---|
| 28 | %prep
|
---|
| 29 | %setup -q
|
---|
| 30 |
|
---|
| 31 | %build
|
---|
| 32 | %{__perl} Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR
|
---|
| 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 |
|
---|
[981] | 52 | #%{perlvendorlib}/*
|
---|
[972] | 53 | %{_bindir}/*
|
---|
| 54 | %{_mandir}/man1/*
|
---|
[981] | 55 | #%{_mandir}/man3/*
|
---|
[972] | 56 |
|
---|
| 57 | %changelog
|
---|
| 58 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.