%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Bundle-Slash Version: 2.52 Release: 3mamba Summary: Bundle::Slash - Bundle functions for the Slash(dot) web intrerface Group: Development/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Aleph0 URL: http://slashcode.com/ Source: http://www.cpan.org/modules/by-module/Bundle/Bundle-Slash-%{version}.tar.gz License: GPL Requires: perl >= %perl_major_ver BuildRequires: perl-devel >= %perl_major_ver BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Bundle functions for the Slash(dot) web intrerface %prep %setup -q -n Bundle-Slash-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make %make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall_perl packlist=`find %{buildroot} -name .packlist` [ -z "$packlist" ] && exit 1 || cat $packlist | \ sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ sort -u > .packlist && rm $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}" rm -f .packlist %files -f .packlist %defattr(-,root,root) %changelog * Tue Nov 13 2012 Silvan Calarco 2.52-3mamba - perl 5.16 mass rebuild * Mon Nov 03 2008 Silvan Calarco 2.52-2mamba - automatic rebuild by autodist * Mon Nov 26 2007 Aleph0 2.52-1mamba - update to 2.52 * Fri Oct 22 2004 Alessandro Ramazzina 2.35-1qilnx - package created by autospec (rebuilt after SRPM loss) * Tue Sep 16 2003 Silvan Calarco 2.32-1qilnx - First build