Last change
on this file since 2250 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.4 KB
|
Line | |
---|
1 | #
|
---|
2 | # $Id$
|
---|
3 | #
|
---|
4 | %define perlvendorlib %(eval "`PBPERLCMD -V:installvendorlib`"; echo $installvendorlib)
|
---|
5 | %define srcname PBPKG
|
---|
6 |
|
---|
7 | Name: PBPKG
|
---|
8 | Version: PBVER
|
---|
9 | Release: PBTAGPBSUF
|
---|
10 | Summary: PBSUMMARY
|
---|
11 | Summary(fr): Project Builder ou pb produit des paquets pour diverses distributions
|
---|
12 | License: PBLIC
|
---|
13 | Group: PBGRP
|
---|
14 | Url: PBURL
|
---|
15 | Source: PBREPO/PBSRC
|
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
|
---|
17 | Requires: perl >= 5.6.2,perl-DateManip,perl-ProjectBuilder,perl-File-MimeInfo,PBDEP
|
---|
18 | PBBUILDARCH: noarch
|
---|
19 | PBBUILDDEP
|
---|
20 |
|
---|
21 | %description
|
---|
22 | PBDESC
|
---|
23 |
|
---|
24 | %description -l fr
|
---|
25 | Project Builder ou pb est un programme pour produire des paquets pour
|
---|
26 | diverses distributions.
|
---|
27 | Il réalise cela en minimisant la duplication des informations requises
|
---|
28 | et par un jeu de fichiers de configuration très simples.
|
---|
29 |
|
---|
30 | %prep
|
---|
31 | %setup -q -n %{srcname}-%{version}PBEXTDIR
|
---|
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 | %check
|
---|
44 | make test
|
---|
45 |
|
---|
46 | %clean
|
---|
47 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
48 |
|
---|
49 | %files
|
---|
50 | %defattr(-,root,root)
|
---|
51 | %doc NEWS AUTHORS COPYING README
|
---|
52 | %{perl_vendorlib}/ProjectBuilder/
|
---|
53 | %{_bindir}/pb*
|
---|
54 | %{_mandir}/man1/*
|
---|
55 | %{_mandir}/man3/*
|
---|
56 |
|
---|
57 | %changelog
|
---|
58 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.