Last change
on this file since 2460 was 2293, checked in by Bruno Cornec, 7 years ago |
Add pb-server packaging support (preliminary work for RPM)
|
File size:
1.1 KB
|
Rev | Line | |
---|
[2293] | 1 | #
|
---|
| 2 | # $Id$
|
---|
| 3 | #
|
---|
| 4 | %define perlvendorlib %(eval "`PBPERLCMD -V:installvendorlib`"; echo $installvendorlib)
|
---|
| 5 | %define srcname PBPKG
|
---|
| 6 |
|
---|
| 7 | Summary: PBSUMMARY
|
---|
| 8 |
|
---|
| 9 | Name: PBREALPKG
|
---|
| 10 | Version: PBVER
|
---|
| 11 | Release: PBTAGPBSUF
|
---|
| 12 | License: PBLIC
|
---|
| 13 | Group: PBGRP
|
---|
| 14 | Url: PBURL
|
---|
| 15 | Source: PBREPO/PBSRC
|
---|
| 16 | BuildRoot: %{_tmppath}/%{srcname}-%{version}-%{release}-root-%(id -u -n)
|
---|
| 17 | PBBUILDARCH: noarch
|
---|
| 18 | Requires: perl >= 5.6.2,PBDEP
|
---|
| 19 | PBBUILDDEP
|
---|
| 20 |
|
---|
| 21 | %description
|
---|
| 22 | PBDESC
|
---|
| 23 |
|
---|
| 24 | %prep
|
---|
| 25 | %setup -q -n %{srcname}-%{version}PBEXTDIR
|
---|
| 26 |
|
---|
| 27 | %build
|
---|
| 28 | PBPERLCMD Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR SYSCONFDIR=%{_sysconfdir}/pb CONFDIR=%{_datadir}/pb MANDIR=%{_mandir}
|
---|
| 29 | make %{?_smp_mflags}
|
---|
| 30 |
|
---|
| 31 | %install
|
---|
| 32 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
| 33 | make DESTDIR=${RPM_BUILD_ROOT} install
|
---|
| 34 | find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f
|
---|
| 35 | find ${RPM_BUILD_ROOT} -type d -depth | xargs rmdir --ignore-fail-on-non-empty
|
---|
| 36 |
|
---|
| 37 | PBMKTEST
|
---|
| 38 |
|
---|
| 39 | %clean
|
---|
| 40 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
| 41 |
|
---|
| 42 | %files
|
---|
| 43 | %defattr(-,root,root,-)
|
---|
| 44 | %doc NEWS AUTHORS
|
---|
| 45 | %doc COPYING README
|
---|
| 46 |
|
---|
| 47 | %{perlvendorlib}/*
|
---|
| 48 | %{_bindir}/*
|
---|
| 49 | %{_mandir}/man1/*
|
---|
| 50 | #%{_mandir}/man3/*
|
---|
| 51 | #%{_mandir}/man5/*
|
---|
| 52 |
|
---|
| 53 | %changelog
|
---|
| 54 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.