perl-Authen-Captcha/perl-Authen-Captcha.spec

69 lines
2.1 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Authen-Captcha
Version: 1.024
Release: 1mamba
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 <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: http://search.cpan.org/CPAN/authors/id/U/UN/UNRTST/Authen-Captcha-%{version}.tar.gz
License: GPL
Requires: perl >= %perl_major_ver
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-GD
BuildRequires: perl-String-Random
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl-String-Random
%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
* Mon Jan 10 2022 Automatic Build System <autodist@mambasoft.it> 1.024-1mamba
- automatic version update by autodist
* Fri Aug 30 2013 Automatic Build System <autodist@mambasoft.it> 1.023-4mamba
- automatic rebuild by autodist
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.023-3mamba
- automatic rebuild by autodist
* Wed Jun 25 2008 Tiziana Ferro <tiziana.ferro@email.it> 1.023-2mamba
- update Vendor, Distribution, buildrequirements list
* Mon Mar 19 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.023-1qilnx
- package created by autospec