Last change
on this file since 2358 was 1491, checked in by Bruno Cornec, 12 years ago |
- Improve cb dependencies for rpm
|
File size:
1.2 KB
|
Line | |
---|
1 | #
|
---|
2 | # $Id$
|
---|
3 | #
|
---|
4 | %define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
|
---|
5 |
|
---|
6 | Summary: PBSUMMARY
|
---|
7 |
|
---|
8 | Name: PBREALPKG
|
---|
9 | Version: PBVER
|
---|
10 | Release: PBTAGPBSUF
|
---|
11 | License: PBLIC
|
---|
12 | Group: PBGRP
|
---|
13 | Url: PBURL
|
---|
14 | Source: PBREPO/PBSRC
|
---|
15 | #PBPATCHSRC
|
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
|
---|
17 | BuildArch: noarch
|
---|
18 | Requires: perl >= 5.8.4,perl-ProjectBuilder,perl-Data-Dumper,perl-Net-SSH2,perl-Archive-Tar,perl-DBI,perl-DBD-SQLite
|
---|
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 CONFDIR=%{_sysconfdir}/cb MANDIR=%{_mandir}
|
---|
28 | make
|
---|
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 | %clean
|
---|
37 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
38 |
|
---|
39 | %files
|
---|
40 | %defattr(-,root,root)
|
---|
41 | %doc AUTHORS INSTALL COPYING README
|
---|
42 |
|
---|
43 | %{perlvendorlib}/*
|
---|
44 | %{_bindir}/*
|
---|
45 | %{_sysconfdir}/cb
|
---|
46 | %{_mandir}/man1/*
|
---|
47 | %{_mandir}/man3/*
|
---|
48 | %{_mandir}/man5/*
|
---|
49 |
|
---|
50 | %changelog
|
---|
51 | PBLOG
|
---|
52 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.