perl-Apache-Htpasswd-vl.spec 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Name: perl-Apache-Htpasswd
  2. Version: 1.8
  3. Release: 1%{?_dist_release}
  4. Summary: Manage Unix crypt-style password file
  5. Group: Development/Libraries
  6. License: GPL+ or Artistic
  7. URL: http://search.cpan.org/dist/Apache-Htpasswd/
  8. Source0: http://search.cpan.org/CPAN/authors/id/K/KM/KMELTZ/Apache-Htpasswd-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. BuildArch: noarch
  11. BuildRequires: perl(ExtUtils::MakeMaker)
  12. BuildRequires: perl(Crypt::PasswdMD5)
  13. BuildRequires: perl(Digest::SHA1)
  14. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  15. %description
  16. This module comes with a set of methods to use with htaccess password files.
  17. These files (and htaccess) are used to do Basic Authentication on a web server.
  18. The passwords file is a flat-file with login name and their associated
  19. encrypted password. You can use this for non-Apache files if you wish, but it
  20. was written specifically for .htaccess style files.
  21. %prep
  22. %setup -q -n Apache-Htpasswd-%{version}
  23. %build
  24. %{__perl} Makefile.PL INSTALLDIRS=vendor
  25. make %{?_smp_mflags}
  26. %install
  27. rm -rf %{buildroot}
  28. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  29. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  30. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
  31. chmod -R u+w %{buildroot}/*
  32. %check
  33. make test
  34. %clean
  35. rm -rf %{buildroot}
  36. %files
  37. %defattr(-,root,root,-)
  38. %doc README
  39. %{perl_vendorlib}/*
  40. %{_mandir}/man3/*.3*
  41. %changelog
  42. * Fri Mar 03 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.8-1
  43. - initial build for Vine Linux
  44. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-9
  45. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  46. * Sun Jun 19 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.8-8
  47. - Perl mass rebuild
  48. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-7
  49. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  50. * Tue Dec 14 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.8-6
  51. - 661697 rebuild for fixing problems with vendorach/lib
  52. * Thu Apr 29 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.8-5
  53. - Mass rebuild with perl-5.12.0
  54. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.8-4
  55. - rebuild against perl 5.10.1
  56. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-3
  57. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  58. * Fri Mar 13 2009 Xavier Bachelot <xavier@bachelot.org> - 1.8-2
  59. - Use %%{version} macro in Source0.
  60. - Spelling fix in Description.
  61. * Tue Feb 12 2008 Xavier Bachelot <xavier@bachelot.org> - 1.8-1
  62. - Initial build.