source: projects/specs/branches/6/p/perl-Crypt-PasswdMD5/perl-Crypt-PasswdMD5-vl.spec @ 3206

Revision 3206, 2.2 KB checked in by iwaim, 13 years ago (diff)

perl-Crypt-PasswdMD5

Line 
1Name:           perl-Crypt-PasswdMD5
2Version:        1.3
3Release:        6%{?_dist_release}
4Summary:        Provides interoperable MD5-based crypt() functions
5License:        GPL+ or Artistic
6Group:          Development/Libraries
7URL:            http://search.cpan.org/dist/Crypt-PasswdMD5/
8Source0:        http://search.cpan.org/CPAN/authors/id/L/LU/LUISMUNOZ/Crypt-PasswdMD5-%{version}.tar.gz
9BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
10
11%if "%{?_dist_release}" == "vl4"
12Requires:       perl = %(rpm -q --qf '%%{epoch}:%%{version}' perl)
13%else
14Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
15%endif
16BuildArch:      noarch
17BuildRequires:  perl(ExtUtils::MakeMaker)
18BuildRequires:  %{_bindir}/iconv
19
20Vendor: Project Vine
21Distribution: Vine Linux
22
23%description
24This 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
33make %{?_smp_mflags}
34
35%install
36rm -rf $RPM_BUILD_ROOT
37make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
38find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
39find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
40chmod -R u+w $RPM_BUILD_ROOT/*
41
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%check
47make 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
Note: See TracBrowser for help on using the repository browser.