# # $Id$ # %define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib) %define srcname PBPKG Summary: PBSUMMARY Summary(fr): Module Perl pour le support de divers OS (Linux/Solaris/...) Name: PBREALPKG Version: PBVER Release: PBTAGPBSUF License: GPL Group: PBGRP Url: http://trac.project-builder.org Source: PBREPO/PBSRC BuildRoot: %{_tmppath}/%{srcname}-%{version}-%{release}-root-%(id -u -n) BuildArch: noarch Requires: perl >= 5.8.4, PBDEP %description PBDESC %description -l fr PBREALPKG est un ensemble de fonctions pour aider à développer des projets perl et à traiter de diverses distributions Linux. %prep %setup -q -n %{srcname}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR CONFDIR=%{_sysconfdir}/pb make %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) %doc NEWS AUTHORS %doc INSTALL COPYING README %config(noreplace) %{_sysconfdir}/pb %{perlvendorlib}/* %{_bindir}/* #%{_mandir}/man1/* %{_mandir}/man3/* %changelog PBLOG