perl-Crypt-PasswdMD5-vl.spec 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. Name: perl-Crypt-PasswdMD5
  2. Version: 1.3
  3. Release: 6%{?_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. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. %description
  21. This package provides MD5-based crypt() functions
  22. %prep
  23. %setup -q -n Crypt-PasswdMD5-%{version}
  24. %{_bindir}/iconv -f iso-8859-1 -t utf-8 -o PasswdMD5.pm.new PasswdMD5.pm && mv PasswdMD5.pm.new PasswdMD5.pm
  25. %{__sed} -i -e 's/ISO-8859-1/UTF-8/' PasswdMD5.pm
  26. %build
  27. %{__perl} Makefile.PL INSTALLDIRS=vendor
  28. make %{?_smp_mflags}
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  32. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  33. find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
  34. chmod -R u+w $RPM_BUILD_ROOT/*
  35. %clean
  36. rm -rf $RPM_BUILD_ROOT
  37. %check
  38. make test
  39. %files
  40. %defattr(-,root,root,-)
  41. %doc README
  42. %{perl_vendorlib}/Crypt
  43. %{_mandir}/man3/*
  44. %changelog
  45. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 1.3-6vl6
  46. - build with perl 5.12.3
  47. - add Vendor and Distribution tags
  48. * Tue Jul 08 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3-5
  49. - do not require perl(:MODULE_COMPAT_x.y.z) on Vine Linux 4.x
  50. * Sat May 31 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.3-4
  51. - initial build for Vine Linux
  52. * Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3-3.1
  53. - Rebuild for new perl
  54. * Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3-2.1
  55. - correct license tag
  56. - add BR: perl(ExtUtils::MakeMaker)
  57. * Tue Feb 27 2007 Mike McGrath <mmcgrath@redhat.com> - 1.3-2
  58. - Basic fixes (BZ 230228)
  59. * Tue Feb 27 2007 Mike McGrath <mmcgrath@redhat.com> - 1.3-1
  60. - Initial Packaging