Last change
on this file since 2202 was 1832, checked in by Bruno Cornec, 11 years ago |
- Port lastest build modifications for suse distros to the devel branch
|
File size:
1.2 KB
|
Line | |
---|
1 | #
|
---|
2 | # $Id$
|
---|
3 | #
|
---|
4 | %define perlvendorlib %(eval "`PBPERLCMD -V:installvendorlib`"; echo $installvendorlib)
|
---|
5 | %define srcname PBPKG
|
---|
6 |
|
---|
7 | Summary: PBSUMMARY
|
---|
8 | Summary(fr): Outil similaire à debootstrap pour une distribution RPM.
|
---|
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 | PBBUILDARCH: noarch
|
---|
19 | Requires: perl >= 5.8.4,perl-ProjectBuilder,perl-libwww-perl,wget,PBDEP
|
---|
20 | PBBUILDDEP
|
---|
21 |
|
---|
22 | %description
|
---|
23 | PBDESC
|
---|
24 |
|
---|
25 | %description -l fr
|
---|
26 | La commande rpmbootstrap crée un environnement chrooté pour la distribution
|
---|
27 | RPM concernée.
|
---|
28 | Il est similaire à debootstrap pour les distributions .deb
|
---|
29 |
|
---|
30 | %prep
|
---|
31 | %setup -q
|
---|
32 |
|
---|
33 | %build
|
---|
34 | PBPERLCMD Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR
|
---|
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 |
|
---|
43 | PBMKTEST
|
---|
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 |
|
---|
53 | #%{perlvendorlib}/*
|
---|
54 | %{_bindir}/*
|
---|
55 | %{_mandir}/man1/*
|
---|
56 | #%{_mandir}/man3/*
|
---|
57 |
|
---|
58 | %changelog
|
---|
59 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.