Last change
on this file since 2138 was 1061, checked in by Bruno Cornec, 14 years ago |
r3909@localhost: bruno | 2010-06-22 03:26:31 +0200
mrmini now provides libs
|
File size:
1.2 KB
|
Line | |
---|
1 | #
|
---|
2 | # $Id$
|
---|
3 | #
|
---|
4 | %define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
|
---|
5 |
|
---|
6 | Summary: PBSUMMARY
|
---|
7 | Name: PBPKG
|
---|
8 | Version: PBVER
|
---|
9 | Release: PBTAGPBSUF
|
---|
10 | License: PBLIC
|
---|
11 | Group: PBGRP
|
---|
12 | Url: PBURL
|
---|
13 | Source: PBREPO/PBSRC
|
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
|
---|
15 | BuildArch: noarch
|
---|
16 | Requires: perl >= 5.8.4,perl-ProjectBuilder,perl-MondoRescue,PBDEP
|
---|
17 | BuildRequires: perl-MondoRescue
|
---|
18 |
|
---|
19 | %description
|
---|
20 | PBDESC
|
---|
21 |
|
---|
22 | %prep
|
---|
23 | %setup -q
|
---|
24 |
|
---|
25 | %build
|
---|
26 | %{__perl} Makefile.PL PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR
|
---|
27 | make %{?_smp_mflags}
|
---|
28 |
|
---|
29 | %install
|
---|
30 | rm -rf $RPM_BUILD_ROOT
|
---|
31 | make DESTDIR=$RPM_BUILD_ROOT install
|
---|
32 | find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f
|
---|
33 | find ${RPM_BUILD_ROOT} -type d -depth | xargs rmdir --ignore-fail-on-non-empty
|
---|
34 |
|
---|
35 | %check
|
---|
36 | make test
|
---|
37 |
|
---|
38 | %clean
|
---|
39 | rm -rf $RPM_BUILD_ROOT
|
---|
40 |
|
---|
41 | %files
|
---|
42 | %defattr(-,root,root,-)
|
---|
43 | %config(noreplace) %{_sysconfdir}/PBPROJ/%{name}.conf.dist
|
---|
44 | %doc ChangeLog INSTALL COPYING README README.* NEWS
|
---|
45 | %{_sysconfdir}/PBPROJ/%{name}.conf.dist.md5
|
---|
46 | %{_mandir}/man1/*
|
---|
47 | %{_mandir}/man3/*
|
---|
48 | %{_mandir}/man5/*
|
---|
49 | %{_bindir}/*
|
---|
50 | #%{_libdir}/%{name}
|
---|
51 | %{perlvendorlib}/*
|
---|
52 | #%{_var}/cache/%{name}
|
---|
53 | #%{_datadir}/%{name}
|
---|
54 |
|
---|
55 | %changelog
|
---|
56 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.