Last change
on this file since 2546 was 1831, checked in by Bruno Cornec, 11 years ago |
- Fix sues/opensuse/sles build where rpm-build package dep is only available recently
|
File size:
1.3 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): Project Builder ou pb produit des paquets pour diverses distributions
|
---|
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.6.2,perl-DateManip,perl-ProjectBuilder,perl-File-MimeInfo,PBDEP
|
---|
20 | PBBUILDDEP
|
---|
21 |
|
---|
22 | %description
|
---|
23 | PBDESC
|
---|
24 |
|
---|
25 | %description -l fr
|
---|
26 | Project Builder ou pb est un programme pour produire des paquets pour
|
---|
27 | diverses distributions.
|
---|
28 | Il réalise cela en minimisant la duplication des informations requises
|
---|
29 | et par un jeu de fichiers de configuration très simples.
|
---|
30 |
|
---|
31 | %prep
|
---|
32 | %setup -q
|
---|
33 |
|
---|
34 | %build
|
---|
35 | PBPERLCMD Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR
|
---|
36 | make
|
---|
37 |
|
---|
38 | %install
|
---|
39 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
40 | make DESTDIR=${RPM_BUILD_ROOT} install
|
---|
41 | find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f
|
---|
42 | find ${RPM_BUILD_ROOT} -type d -depth | xargs rmdir --ignore-fail-on-non-empty
|
---|
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.