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