Last change
on this file since 2521 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.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): Project Builder Make Boot Media permet de créer des media amorçables à façon
|
---|
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,PBDEP
|
---|
20 | PBBUILDDEP
|
---|
21 |
|
---|
22 | %description
|
---|
23 | PBDESC
|
---|
24 |
|
---|
25 | %description -l fr
|
---|
26 | Project Builder Make Boot Media permet de créer des media amorçables à façon
|
---|
27 |
|
---|
28 | %prep
|
---|
29 | %setup -q
|
---|
30 |
|
---|
31 | %build
|
---|
32 | PBPERLCMD 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 | %clean
|
---|
42 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
43 |
|
---|
44 | %files
|
---|
45 | %defattr(-,root,root)
|
---|
46 | %doc NEWS AUTHORS
|
---|
47 | %doc INSTALL COPYING README
|
---|
48 |
|
---|
49 | #%{perlvendorlib}/*
|
---|
50 | %{_bindir}/*
|
---|
51 | #%{_sysconfdir}/%{name}
|
---|
52 | %{_mandir}/man1/*
|
---|
53 | #%{_mandir}/man3/*
|
---|
54 |
|
---|
55 | %changelog
|
---|
56 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.