source:
ProjectBuilder/projects/mondorescue/pbconf/devel/mrmini/rpm/mrmini.spec@
2028
Last change on this file since 2028 was 1061, checked in by , 14 years ago | |
---|---|
File size: 1.2 KB |
Rev | Line | |
---|---|---|
[384] | 1 | # |
[1054] | 2 | # $Id$ |
[384] | 3 | # |
[689] | 4 | %define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib) |
5 | ||
[959] | 6 | Summary: PBSUMMARY |
[384] | 7 | Name: PBPKG |
8 | Version: PBVER | |
9 | Release: PBTAGPBSUF | |
[488] | 10 | License: PBLIC |
[384] | 11 | Group: PBGRP |
[488] | 12 | Url: PBURL |
[429] | 13 | Source: PBREPO/PBSRC |
[384] | 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n) |
[689] | 15 | BuildArch: noarch |
[1055] | 16 | Requires: perl >= 5.8.4,perl-ProjectBuilder,perl-MondoRescue,PBDEP |
[1059] | 17 | BuildRequires: perl-MondoRescue |
[384] | 18 | |
19 | %description | |
[959] | 20 | PBDESC |
[384] | 21 | |
22 | %prep | |
23 | %setup -q | |
24 | ||
25 | %build | |
[1059] | 26 | %{__perl} Makefile.PL PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR |
[689] | 27 | make %{?_smp_mflags} |
[384] | 28 | |
29 | %install | |
[689] | 30 | rm -rf $RPM_BUILD_ROOT |
31 | make DESTDIR=$RPM_BUILD_ROOT install | |
[959] | 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 | |
[384] | 34 | |
[689] | 35 | %check |
36 | make test | |
37 | ||
[384] | 38 | %clean |
[488] | 39 | rm -rf $RPM_BUILD_ROOT |
[384] | 40 | |
41 | %files | |
[959] | 42 | %defattr(-,root,root,-) |
[1059] | 43 | %config(noreplace) %{_sysconfdir}/PBPROJ/%{name}.conf.dist |
[689] | 44 | %doc ChangeLog INSTALL COPYING README README.* NEWS |
[1059] | 45 | %{_sysconfdir}/PBPROJ/%{name}.conf.dist.md5 |
[689] | 46 | %{_mandir}/man1/* |
[1061] | 47 | %{_mandir}/man3/* |
[1059] | 48 | %{_mandir}/man5/* |
[689] | 49 | %{_bindir}/* |
[1055] | 50 | #%{_libdir}/%{name} |
[1061] | 51 | %{perlvendorlib}/* |
[1055] | 52 | #%{_var}/cache/%{name} |
53 | #%{_datadir}/%{name} | |
[384] | 54 | |
55 | %changelog | |
56 | PBLOG |
Note:
See TracBrowser
for help on using the repository browser.