Last change
on this file since 838 was 689, checked in by Bruno Cornec, 16 years ago |
- Begin de develop the mondorescue devel branch infrastructure to be able to build preliminary packages
|
File size:
1.2 KB
|
Rev | Line | |
---|
[384] | 1 | #
|
---|
[689] | 2 | # $Id$
|
---|
[384] | 3 | #
|
---|
[689] | 4 | %define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
|
---|
| 5 | %define srcname PBPKG
|
---|
[384] | 6 |
|
---|
[689] | 7 | Summary: PBDESC
|
---|
| 8 | Summary(fr): Une bibliotheque de fonction de bas niveau pour le projet MondoRescue
|
---|
[384] | 9 |
|
---|
[689] | 10 | Name: PBREALPKG
|
---|
[384] | 11 | Version: PBVER
|
---|
| 12 | Release: PBTAGPBSUF
|
---|
[488] | 13 | License: PBLIC
|
---|
[384] | 14 | Group: PBGRP
|
---|
[488] | 15 | Url: PBURL
|
---|
[429] | 16 | Source: PBREPO/PBSRC
|
---|
[689] | 17 | BuildRoot: %{_tmppath}/%{srcname}-%{version}-%{release}-root-%(id -u -n)
|
---|
| 18 | BuildArch: noarch
|
---|
| 19 | Requires: perl >= 5.8.4, PBDEP
|
---|
[384] | 20 |
|
---|
| 21 | %description
|
---|
[689] | 22 | PBDESC
|
---|
[384] | 23 |
|
---|
| 24 | %description -l fr
|
---|
[689] | 25 | Une bibliotheque de fonction de bas niveau pour le projet MondoRescue
|
---|
[384] | 26 |
|
---|
| 27 | %prep
|
---|
[689] | 28 | %setup -q -n %{srcname}-%{version}
|
---|
[384] | 29 |
|
---|
| 30 | %build
|
---|
[689] | 31 | %{__perl} Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR
|
---|
| 32 | make %{?_smp_mflags}
|
---|
[384] | 33 |
|
---|
| 34 | %install
|
---|
[488] | 35 | rm -rf $RPM_BUILD_ROOT
|
---|
[384] | 36 | make DESTDIR=$RPM_BUILD_ROOT install
|
---|
[689] | 37 | mkdir -p $RPM_BUILD_ROOT/%{_datadir}/PBPROJ
|
---|
| 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
|
---|
[384] | 40 |
|
---|
[689] | 41 | %check
|
---|
| 42 | make test
|
---|
| 43 |
|
---|
[384] | 44 | %clean
|
---|
[689] | 45 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
[384] | 46 |
|
---|
| 47 | %files
|
---|
| 48 | %defattr(-,root,root)
|
---|
[689] | 49 | %doc NEWS AUTHORS
|
---|
| 50 | %doc INSTALL COPYING README
|
---|
[384] | 51 |
|
---|
[689] | 52 | %{perlvendorlib}/*
|
---|
| 53 | %{_mandir}/man3/*
|
---|
| 54 | %{_datadir}/PBPROJ
|
---|
[384] | 55 |
|
---|
| 56 | %changelog
|
---|
| 57 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.