# # $Id$ # %define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib) %define srcname PBPKG Summary: PBSUMMARY Summary(fr): Une bibliothèque de fonction de bas niveau pour le projet MondoRescue Name: PBREALPKG Version: PBVER Release: PBTAGPBSUF License: PBLIC Group: PBGRP Url: PBURL Source: PBREPO/PBSRC BuildRoot: %{_tmppath}/%{srcname}-%{version}-%{release}-root-%(id -u -n) BuildArch: noarch Requires: perl >= 5.6.2,perl-ProjectBuilder,perl-Net-IPv4Addr,PBDEP BuildRequires: PBBUILDDEP %description PBDESC %description -lfr Une bibliothèque de fonction de bas niveau pour le projet MondoRescue %prep %setup -q -n %{srcname}-%{version}PBEXTDIR %build %{__perl} Makefile.PL PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR CONFDIR=%{_sysconfdir} CACHEDIR=%{_var}/cache TARGET=%{_exec_prefix} make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f find ${RPM_BUILD_ROOT} -type d -depth | xargs rmdir --ignore-fail-on-non-empty %check make test %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %config(noreplace) %{_sysconfdir}/PBPROJ %doc ChangeLog INSTALL COPYING README NEWS AUTHORS %{_bindir}/* %{_mandir}/man1/* %{perlvendorlib}/* %{_mandir}/man3/* %{_mandir}/man5/* #%{_datadir}/PBPROJ #%{_var}/cache/PBPROJ %changelog PBLOG