perl-Crypt-PasswdMD5-vl.spec 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. Name: perl-Crypt-PasswdMD5
  2. Version: 1.3
  3. Release: 5%{?_dist_release}
  4. Summary: Provides interoperable MD5-based crypt() functions
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/Crypt-PasswdMD5/
  8. Source0: http://search.cpan.org/CPAN/authors/id/L/LU/LUISMUNOZ/Crypt-PasswdMD5-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. %if "%{?_dist_release}" == "vl4"
  11. Requires: perl = %(rpm -q --qf '%%{epoch}:%%{version}' perl)
  12. %else
  13. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  14. %endif
  15. BuildArch: noarch
  16. BuildRequires: perl(ExtUtils::MakeMaker)
  17. BuildRequires: %{_bindir}/iconv
  18. %description
  19. This package provides MD5-based crypt() functions
  20. %prep
  21. %setup -q -n Crypt-PasswdMD5-%{version}
  22. %{_bindir}/iconv -f iso-8859-1 -t utf-8 -o PasswdMD5.pm.new PasswdMD5.pm && mv PasswdMD5.pm.new PasswdMD5.pm
  23. %{__sed} -i -e 's/ISO-8859-1/UTF-8/' PasswdMD5.pm
  24. %build
  25. %{__perl} Makefile.PL INSTALLDIRS=vendor
  26. make %{?_smp_mflags}
  27. %install
  28. rm -rf $RPM_BUILD_ROOT
  29. make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  30. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  31. find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
  32. chmod -R u+w $RPM_BUILD_ROOT/*
  33. %clean
  34. rm -rf $RPM_BUILD_ROOT
  35. %check
  36. make test
  37. %files
  38. %defattr(-,root,root,-)
  39. %doc README
  40. %{perl_vendorlib}/Crypt
  41. %{_mandir}/man3/*
  42. %changelog
  43. * Tue Jul 08 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3-5
  44. - do not require perl(:MODULE_COMPAT_x.y.z) on Vine Linux 4.x
  45. * Sat May 31 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.3-4
  46. - initial build for Vine Linux
  47. * Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3-3.1
  48. - Rebuild for new perl
  49. * Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3-2.1
  50. - correct license tag
  51. - add BR: perl(ExtUtils::MakeMaker)
  52. * Tue Feb 27 2007 Mike McGrath <mmcgrath@redhat.com> - 1.3-2
  53. - Basic fixes (BZ 230228)
  54. * Tue Feb 27 2007 Mike McGrath <mmcgrath@redhat.com> - 1.3-1
  55. - Initial Packaging