%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Pod-POM Version: 0.17 Release: 5mamba Summary: Pod-POM module for Perl Group: Development/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.cpan.org Source: http://www.cpan.org/authors/id/A/AB/ABW/Pod-POM-%{version}.tar.gz License: GPL BuildRoot: %{_tmppath}/perl-root Requires: perl >= %perl_major_ver ## AUTOBUILDREQ-BEGIN BuildRequires: perl-devel >= %perl_major_ver ## AUTOBUILDREQ-END %description Pod-POM module for Perl. %prep %setup -q -n Pod-POM-%{version} %build perl Makefile.PL %make %ifnarch arm %make test %endif %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %make pure_install DESTDIR=%{buildroot} packlist=`find %{buildroot} -name .packlist` [[ -z "$packlist" ]] && exit 1 || cat $packlist | \ sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ sort -u > .packlist && rm -f $packlist strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` for dir in `find %{buildroot} -type d | grep $strid`; do echo "%dir ${dir#%buildroot}" >> .packlist done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files -f .packlist %defattr(-,root,root) %changelog * Sun Jul 01 2012 Silvan Calarco 0.17-5mamba - specfile and maintainer updated * Wed Nov 05 2008 Silvan Calarco 0.17-4mamba - automatic rebuild by autodist * Wed Jun 25 2008 Tiziana Ferro 0.17-3mamba - update make macros in specfile - update Vendor, Distribution, mantainer * Tue Feb 01 2005 Silvan Calarco 0.17-2qilnx - rebuilt to fix a dependency problem with apt * Mon Oct 25 2004 Alessandro Ramazzina 0.17-1qilnx - package created by autospec (rebuilt after SRPM loss) * Wed Sep 03 2003 Silvan Calarco 0.15-1qilnx - First build