%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Authen-Captcha Version: 1.023 Release: 4mamba Summary: Authen::Captcha - Perl extension for creating captcha's to verify the human element in transactions. Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/U/UN/UNRTST/Authen-Captcha-%{version}.tar.gz License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root Requires: perl >= %perl_major_ver ## AUTOBUILDREQ-BEGIN BuildRequires: perl-devel >= %perl_major_ver BuildRequires: perl-GD ## AUTOBUILDREQ-END %description Authen::Captha - A Perl extension for creating captcha's to verify the human element in transactions. %prep %setup -q -n Authen-Captcha-%{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 * Fri Aug 30 2013 Automatic Build System 1.023-4mamba - automatic rebuild by autodist * Wed Nov 05 2008 Silvan Calarco 1.023-3mamba - automatic rebuild by autodist * Wed Jun 25 2008 Tiziana Ferro 1.023-2mamba - update Vendor, Distribution, buildrequirements list * Mon Mar 19 2007 Silvan Calarco 1.023-1qilnx - package created by autospec