perl-Authen-Captcha-vl.spec 1.7 KB

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