Last change
on this file since 2073 was 1826, checked in by Bruno Cornec, 11 years ago |
- Revert previous modification which wasn't the root cause
|
File size:
1.4 KB
|
Rev | Line | |
---|
[1804] | 1 | #
|
---|
| 2 | # $Id$
|
---|
| 3 | #
|
---|
| 4 | %define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
|
---|
| 5 | %define srcname PBPKG
|
---|
| 6 |
|
---|
| 7 | Summary: PBSUMMARY
|
---|
[1809] | 8 | Summary(fr): Une bibliothèque de fonction de bas niveau pour le projet MondoRescue
|
---|
[1804] | 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
|
---|
[1809] | 19 | Requires: perl >= 5.6.2,perl-ProjectBuilder,PBDEP
|
---|
[1804] | 20 | BuildRequires: PBBUILDDEP
|
---|
| 21 |
|
---|
| 22 | %description
|
---|
| 23 | PBDESC
|
---|
| 24 |
|
---|
[1809] | 25 | %description -lfr
|
---|
| 26 | Une bibliothèque de fonction de bas niveau pour le projet MondoRescue
|
---|
[1804] | 27 |
|
---|
| 28 | %prep
|
---|
| 29 | %setup -q -n %{srcname}-%{version}
|
---|
| 30 |
|
---|
| 31 | %build
|
---|
| 32 | %{__perl} Makefile.PL PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR CONFDIR=%{_sysconfdir} CACHEDIR=%{_var}/cache TARGET=%{_exec_prefix}
|
---|
| 33 | make %{?_smp_mflags}
|
---|
| 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 | %check
|
---|
| 42 | make test
|
---|
| 43 |
|
---|
| 44 | %clean
|
---|
| 45 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
| 46 |
|
---|
| 47 | %files
|
---|
| 48 | %defattr(-,root,root,-)
|
---|
| 49 | %config(noreplace) %{_sysconfdir}/PBPROJ
|
---|
| 50 | %doc ChangeLog INSTALL COPYING README NEWS AUTHORS
|
---|
| 51 |
|
---|
| 52 | %{_bindir}/*
|
---|
| 53 | %{_mandir}/man1/*
|
---|
| 54 | %{perlvendorlib}/*
|
---|
| 55 | %{_mandir}/man3/*
|
---|
| 56 | %{_mandir}/man5/*
|
---|
| 57 | #%{_datadir}/PBPROJ
|
---|
| 58 | #%{_var}/cache/PBPROJ
|
---|
| 59 |
|
---|
| 60 | %changelog
|
---|
| 61 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.