Last change
on this file since 1038 was 960, checked in by Bruno Cornec, 14 years ago |
r3575@localhost: bruno | 2010-01-08 01:11:52 +0100
Working devel packages for mondorescue
|
File size:
1.5 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 |
|
---|
[959] | 7 | Summary: PBSUMMARY
|
---|
[689] | 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 | 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
|
---|
[384] | 39 |
|
---|
[959] | 40 | # Finalyse instalation
|
---|
| 41 | export HEAD=${RPM_BUILD_ROOT}
|
---|
| 42 | export PREFIX=%{_exec_prefix}
|
---|
| 43 | export CONFDIR=%{_sysconfdir}
|
---|
[960] | 44 | export CACHEDIR=%{_var}/cache/PBPROJ
|
---|
[959] | 45 | export PERLDIR=%{perlvendorlib}
|
---|
[960] | 46 | ./post-install.sh
|
---|
[959] | 47 |
|
---|
[689] | 48 | %check
|
---|
| 49 | make test
|
---|
| 50 |
|
---|
[384] | 51 | %clean
|
---|
[689] | 52 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
[384] | 53 |
|
---|
| 54 | %files
|
---|
[960] | 55 | %defattr(-,root,root,-)
|
---|
| 56 | %config(noreplace) %{_sysconfdir}/PBPROJ
|
---|
| 57 | %doc ChangeLog INSTALL COPYING README NEWS AUTHORS
|
---|
[384] | 58 |
|
---|
[960] | 59 | %{_bindir}/*
|
---|
| 60 | %{_mandir}/man1/*
|
---|
[689] | 61 | %{perlvendorlib}/*
|
---|
| 62 | %{_mandir}/man3/*
|
---|
| 63 | %{_datadir}/PBPROJ
|
---|
[960] | 64 | %{_var}/cache/PBPROJ
|
---|
[384] | 65 |
|
---|
[960] | 66 |
|
---|
[384] | 67 | %changelog
|
---|
| 68 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.