Last change
on this file since 1916 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.2 KB
|
Line | |
---|
1 | #
|
---|
2 | # $Id$
|
---|
3 | #
|
---|
4 | %define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
|
---|
5 | %define srcname PBPKG
|
---|
6 |
|
---|
7 | Summary: PBSUMMARY
|
---|
8 | Summary(fr): La cmde rpmbootstrap crée un chroot pour une distro RPM donnée
|
---|
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)
|
---|
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
|
---|
25 | La commande rpmbootstrap crée un environnement chrooté pour la distribution
|
---|
26 | RPM concernée.
|
---|
27 | Il est similaire à debootstrap pour les distributions .deb
|
---|
28 |
|
---|
29 | %prep
|
---|
30 | %setup -q
|
---|
31 |
|
---|
32 | %build
|
---|
33 | %{__perl} Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR
|
---|
34 | make
|
---|
35 |
|
---|
36 | %install
|
---|
37 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
38 | make DESTDIR=${RPM_BUILD_ROOT} install
|
---|
39 | find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f
|
---|
40 | find ${RPM_BUILD_ROOT} -type d -depth | xargs rmdir --ignore-fail-on-non-empty
|
---|
41 |
|
---|
42 | PBMKTEST
|
---|
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 |
|
---|
52 | #%{perlvendorlib}/*
|
---|
53 | %{_bindir}/*
|
---|
54 | %{_mandir}/man1/*
|
---|
55 | #%{_mandir}/man3/*
|
---|
56 |
|
---|
57 | %changelog
|
---|
58 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.