source: projects/specs/trunk/p/perl-Crypt-PasswdMD5/perl-Crypt-PasswdMD5-vl.spec @ 521

Revision 521, 2.0 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

Line 
1Name:           perl-Crypt-PasswdMD5
2Version:        1.3
3Release:        5%{?_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
20%description
21This 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
30make %{?_smp_mflags}
31
32%install
33rm -rf $RPM_BUILD_ROOT
34make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
35find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
36find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
37chmod -R u+w $RPM_BUILD_ROOT/*
38
39
40%clean
41rm -rf $RPM_BUILD_ROOT
42
43%check
44make 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
Note: See TracBrowser for help on using the repository browser.