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