Last change
on this file since 1036 was 959, checked in by Bruno Cornec, 15 years ago |
r3574@localhost: bruno | 2010-01-08 00:15:56 +0100
Working on a first set of built packages for mondorescue (mr and mindi)
|
File size:
1.4 KB
|
Rev | Line | |
---|
[384] | 1 | #
|
---|
| 2 | # $Id: mindi.spec 1866 2008-01-16 15:29:04Z bruno $
|
---|
| 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 | # Not yet possible as busybox is a binary that should go alongside
|
---|
| 15 | # BuildArch: noarch
|
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
|
---|
[689] | 17 | BuildArch: noarch
|
---|
[959] | 18 | Requires: perl >= 5.8.4,perl-ProjectBuilder,PBDEP
|
---|
[384] | 19 |
|
---|
| 20 | %description
|
---|
[959] | 21 | PBDESC
|
---|
[384] | 22 |
|
---|
| 23 | %prep
|
---|
| 24 | %setup -q
|
---|
| 25 |
|
---|
| 26 | %build
|
---|
[689] | 27 | %{__perl} Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR
|
---|
| 28 | make %{?_smp_mflags}
|
---|
[384] | 29 |
|
---|
| 30 | %install
|
---|
[689] | 31 | rm -rf $RPM_BUILD_ROOT
|
---|
| 32 | make DESTDIR=$RPM_BUILD_ROOT install
|
---|
[959] | 33 | find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f
|
---|
| 34 | find ${RPM_BUILD_ROOT} -type d -depth | xargs rmdir --ignore-fail-on-non-empty
|
---|
[384] | 35 |
|
---|
[689] | 36 | # Finalyse instalation
|
---|
[384] | 37 | export HEAD=${RPM_BUILD_ROOT}
|
---|
| 38 | export PREFIX=%{_exec_prefix}
|
---|
| 39 | export CONFDIR=%{_sysconfdir}
|
---|
| 40 | export CACHEDIR=%{_var}/cache/%{name}
|
---|
| 41 | export PKGBUILDMINDI="true"
|
---|
[689] | 42 | ./post-install.sh
|
---|
[384] | 43 |
|
---|
[689] | 44 | %check
|
---|
| 45 | make test
|
---|
| 46 |
|
---|
[384] | 47 | %clean
|
---|
[488] | 48 | rm -rf $RPM_BUILD_ROOT
|
---|
[384] | 49 |
|
---|
| 50 | %files
|
---|
[959] | 51 | %defattr(-,root,root,-)
|
---|
[384] | 52 | %config(noreplace) %{_sysconfdir}/%{name}
|
---|
[689] | 53 | %doc ChangeLog INSTALL COPYING README README.* NEWS
|
---|
| 54 | %{_mandir}/man1/*
|
---|
[959] | 55 | #%{_mandir}/man3/*
|
---|
[689] | 56 | %{_bindir}/*
|
---|
[384] | 57 | %{_libdir}/%{name}
|
---|
[959] | 58 | #%{perlvendorlib}/*
|
---|
[384] | 59 | %{_var}/cache/%{name}
|
---|
[959] | 60 | %{_datadir}/%{name}
|
---|
[384] | 61 |
|
---|
| 62 | %changelog
|
---|
| 63 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.