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
|
Line | |
---|
1 | #
|
---|
2 | # $Id: mindi.spec 1866 2008-01-16 15:29:04Z bruno $
|
---|
3 | #
|
---|
4 | %define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
|
---|
5 |
|
---|
6 | Summary: PBSUMMARY
|
---|
7 | Name: PBPKG
|
---|
8 | Version: PBVER
|
---|
9 | Release: PBTAGPBSUF
|
---|
10 | License: PBLIC
|
---|
11 | Group: PBGRP
|
---|
12 | Url: PBURL
|
---|
13 | Source: PBREPO/PBSRC
|
---|
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)
|
---|
17 | BuildArch: noarch
|
---|
18 | Requires: perl >= 5.8.4,perl-ProjectBuilder,PBDEP
|
---|
19 |
|
---|
20 | %description
|
---|
21 | PBDESC
|
---|
22 |
|
---|
23 | %prep
|
---|
24 | %setup -q
|
---|
25 |
|
---|
26 | %build
|
---|
27 | %{__perl} Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR
|
---|
28 | make %{?_smp_mflags}
|
---|
29 |
|
---|
30 | %install
|
---|
31 | rm -rf $RPM_BUILD_ROOT
|
---|
32 | make DESTDIR=$RPM_BUILD_ROOT install
|
---|
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
|
---|
35 |
|
---|
36 | # Finalyse instalation
|
---|
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"
|
---|
42 | ./post-install.sh
|
---|
43 |
|
---|
44 | %check
|
---|
45 | make test
|
---|
46 |
|
---|
47 | %clean
|
---|
48 | rm -rf $RPM_BUILD_ROOT
|
---|
49 |
|
---|
50 | %files
|
---|
51 | %defattr(-,root,root,-)
|
---|
52 | %config(noreplace) %{_sysconfdir}/%{name}
|
---|
53 | %doc ChangeLog INSTALL COPYING README README.* NEWS
|
---|
54 | %{_mandir}/man1/*
|
---|
55 | #%{_mandir}/man3/*
|
---|
56 | %{_bindir}/*
|
---|
57 | %{_libdir}/%{name}
|
---|
58 | #%{perlvendorlib}/*
|
---|
59 | %{_var}/cache/%{name}
|
---|
60 | %{_datadir}/%{name}
|
---|
61 |
|
---|
62 | %changelog
|
---|
63 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.