| Revision 1059,
1.3 KB
checked in by bruno, 3 years ago
(diff) |
r3905@wsip-70-165-197-185: bruno | 2010-06-19 20:55:52 +0200
- devel version of mondorescue now builds correctly
|
| Line | |
|---|
| 1 | # |
|---|
| 2 | # $Id$ |
|---|
| 3 | # |
|---|
| 4 | %define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib) |
|---|
| 5 | %define srcname PBPKG |
|---|
| 6 | |
|---|
| 7 | Summary: PBSUMMARY |
|---|
| 8 | Summary(fr): Une bibliotheque de fonction de bas niveau pour le projet MondoRescue |
|---|
| 9 | |
|---|
| 10 | Name: PBREALPKG |
|---|
| 11 | Version: PBVER |
|---|
| 12 | Release: PBTAGPBSUF |
|---|
| 13 | License: PBLIC |
|---|
| 14 | Group: PBGRP |
|---|
| 15 | Url: PBURL |
|---|
| 16 | Source: PBREPO/PBSRC |
|---|
| 17 | BuildRoot: %{_tmppath}/%{srcname}-%{version}-%{release}-root-%(id -u -n) |
|---|
| 18 | BuildArch: noarch |
|---|
| 19 | Requires: perl >= 5.8.4, PBDEP |
|---|
| 20 | |
|---|
| 21 | %description |
|---|
| 22 | PBDESC |
|---|
| 23 | |
|---|
| 24 | %description -l fr |
|---|
| 25 | Une bibliotheque de fonction de bas niveau pour le projet MondoRescue |
|---|
| 26 | |
|---|
| 27 | %prep |
|---|
| 28 | %setup -q -n %{srcname}-%{version} |
|---|
| 29 | |
|---|
| 30 | %build |
|---|
| 31 | %{__perl} Makefile.PL PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR CONFDIR=%{_sysconfdir} CACHEDIR=%{_var}/cache TARGET=%{_exec_prefix} |
|---|
| 32 | make %{?_smp_mflags} |
|---|
| 33 | |
|---|
| 34 | %install |
|---|
| 35 | rm -rf $RPM_BUILD_ROOT |
|---|
| 36 | make DESTDIR=$RPM_BUILD_ROOT install |
|---|
| 37 | find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f |
|---|
| 38 | find ${RPM_BUILD_ROOT} -type d -depth | xargs rmdir --ignore-fail-on-non-empty |
|---|
| 39 | |
|---|
| 40 | %check |
|---|
| 41 | make test |
|---|
| 42 | |
|---|
| 43 | %clean |
|---|
| 44 | %{__rm} -rf $RPM_BUILD_ROOT |
|---|
| 45 | |
|---|
| 46 | %files |
|---|
| 47 | %defattr(-,root,root,-) |
|---|
| 48 | %config(noreplace) %{_sysconfdir}/PBPROJ |
|---|
| 49 | %doc ChangeLog INSTALL COPYING README NEWS AUTHORS |
|---|
| 50 | |
|---|
| 51 | %{_bindir}/* |
|---|
| 52 | %{_mandir}/man1/* |
|---|
| 53 | %{perlvendorlib}/* |
|---|
| 54 | %{_mandir}/man3/* |
|---|
| 55 | %{_mandir}/man5/* |
|---|
| 56 | #%{_datadir}/PBPROJ |
|---|
| 57 | #%{_var}/cache/PBPROJ |
|---|
| 58 | |
|---|
| 59 | |
|---|
| 60 | %changelog |
|---|
| 61 | PBLOG |
|---|
Note: See
TracBrowser
for help on using the repository browser.