perl-Authen-Captcha-vl.spec 2.1 KB

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