[521] | 1 | %define real_name Authen-Captcha |
---|
| 2 | |
---|
| 3 | Summary: a Perl extension for creating captchas |
---|
| 4 | Summary(ja): CAPTCHA(tm) を Perl で扱うための Module |
---|
| 5 | Name: perl-Authen-Captcha |
---|
[9167] | 6 | Version: 1.024 |
---|
| 7 | Release: 1%{?_dist_release} |
---|
[521] | 8 | License: distributable |
---|
| 9 | Group: Development/Libraries |
---|
[9167] | 10 | URL: http://search.cpan.org/~lkundrak/Authen-Captcha/ |
---|
[521] | 11 | |
---|
[9167] | 12 | Source0: http://search.cpan.org/CPAN/authors/id/L/LK/LKUNDRAK/%{real_name}-%{version}.tar.gz |
---|
| 13 | |
---|
[521] | 14 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 15 | BuildArch: noarch |
---|
| 16 | BuildRequires: perl >= 5.8.0 |
---|
[9167] | 17 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 18 | BuildRequires: perl(GD) |
---|
| 19 | BuildRequires: perl(String::Random) |
---|
| 20 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
[521] | 21 | |
---|
| 22 | %description |
---|
| 23 | Perl extension for creating captcha's |
---|
| 24 | to verify the human element in transactions. |
---|
| 25 | |
---|
| 26 | %description -l ja |
---|
| 27 | CAPTCHA(tm) を Perl で扱うための Module |
---|
| 28 | |
---|
| 29 | %prep |
---|
| 30 | %setup -q -n %{real_name}-%{version} |
---|
| 31 | |
---|
| 32 | %build |
---|
| 33 | perl Makefile.PL INSTALLDIRS=vendor |
---|
| 34 | make |
---|
| 35 | |
---|
| 36 | %install |
---|
| 37 | rm -rf %{buildroot} |
---|
| 38 | make pure_install DESTDIR=%{buildroot} |
---|
| 39 | |
---|
| 40 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
| 41 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
| 42 | grep -v ^%{_mandir} | |
---|
| 43 | grep -v perllocal.pod | |
---|
| 44 | grep -v "\.packlist" > %{name}.files |
---|
| 45 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
| 46 | echo "ERROR: EMPTY FILE LIST" |
---|
| 47 | exit -1 |
---|
| 48 | fi |
---|
| 49 | |
---|
| 50 | %clean |
---|
| 51 | rm -rf %{buildroot} |
---|
| 52 | |
---|
| 53 | %check |
---|
| 54 | make test |
---|
| 55 | |
---|
| 56 | %files -f %{name}.files |
---|
| 57 | %defattr(-,root,root) |
---|
| 58 | %doc Changes MANIFEST README license.txt |
---|
| 59 | %dir %{perl_vendorlib}/Authen/Captcha |
---|
| 60 | %{_mandir}/*/* |
---|
| 61 | |
---|
| 62 | %changelog |
---|
[9167] | 63 | * Fri Dec 19 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.024-1 |
---|
| 64 | - updated to 1.024 |
---|
| 65 | - added BR: perl(String::Random) |
---|
| 66 | |
---|
[3736] | 67 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.023-2 |
---|
| 68 | - rebuild with perl-5.12.3 |
---|
| 69 | |
---|
[521] | 70 | * Wed Mar 11 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.023-1 |
---|
| 71 | - applied new versioning policy |
---|
| 72 | - spec in UTF-8 |
---|
| 73 | - changed Group to Development/Libraries |
---|
| 74 | - installed perl modules to vendor_perl directory |
---|
| 75 | |
---|
| 76 | * Wed Jul 26 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.023-0vl1 |
---|
| 77 | - for VineSeed (plus) |
---|
| 78 | |
---|
| 79 | * Tue Jul 11 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.023-0vl0 |
---|
| 80 | - initial package for VinePlus |
---|