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