1 |
vip-ire |
1.1 |
%define auto %{perl_vendorarch}/auto |
2 |
|
|
%define archlib %{perl_vendorarch} |
3 |
|
|
%define _use_internal_dependency_generator 1 |
4 |
|
|
|
5 |
|
|
Name: perl-Crypt-Cracklib |
6 |
|
|
Version: 1.7 |
7 |
|
|
Release: 2%{?dist} |
8 |
|
|
Summary: Crypt-Cracklib - Perl interface to Alec Muffett's Cracklib |
9 |
|
|
|
10 |
|
|
Group: Development/Libraries |
11 |
|
|
License: GPL+ or Artistic |
12 |
|
|
URL: http://search.cpan.org/dist/Crypt-Cracklib/ |
13 |
|
|
Source0: http://search.cpan.org/CPAN/authors/id/D/DA/DANIEL/Crypt-Cracklib-1.7.tar.gz |
14 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
15 |
|
|
|
16 |
|
|
BuildRequires: perl(ExtUtils::MakeMaker) |
17 |
|
|
BuildRequires: cracklib-devel |
18 |
|
|
BuildRequires: cracklib-dicts |
19 |
|
|
BuildRequires: perl-Test-Pod |
20 |
|
|
BuildRequires: perl-Test-Pod-Coverage |
21 |
|
|
|
22 |
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
23 |
|
|
Patch0: automake.patch |
24 |
|
|
|
25 |
|
|
%description |
26 |
|
|
This module providers interaction with the system cracklib libraries. |
27 |
|
|
|
28 |
|
|
%prep |
29 |
|
|
%setup -q -n Crypt-Cracklib-%{version} |
30 |
|
|
%patch0 -p0 -b .automake |
31 |
|
|
|
32 |
|
|
%build |
33 |
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor |
34 |
|
|
make %{?_smp_mflags} |
35 |
|
|
|
36 |
|
|
%check |
37 |
|
|
make test |
38 |
|
|
|
39 |
|
|
%install |
40 |
|
|
rm -rf $RPM_BUILD_ROOT |
41 |
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
42 |
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
43 |
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} ';' 2>/dev/null |
44 |
|
|
%{_fixperms} $RPM_BUILD_ROOT/* |
45 |
|
|
find $RPM_BUILD_ROOT -name Cracklib.bs -exec rm -f {} ';' |
46 |
|
|
|
47 |
|
|
mkdir -p -m0700 $RPM_BUILD_ROOT%{_defaultdocdir}/perl-Crypt-Cracklib-%{version} |
48 |
|
|
install -m 0644 Changes $RPM_BUILD_ROOT%{_defaultdocdir}/perl-Crypt-Cracklib-%{version}/Changes |
49 |
|
|
install -m 0644 README $RPM_BUILD_ROOT%{_defaultdocdir}/perl-Crypt-Cracklib-%{version}/README |
50 |
|
|
|
51 |
|
|
%clean |
52 |
|
|
rm -rf $RPM_BUILD_ROOT |
53 |
|
|
|
54 |
|
|
%files |
55 |
|
|
%defattr(-,root,root,-) |
56 |
|
|
%dir %{auto}/Crypt |
57 |
|
|
%dir %{auto}/Crypt/Cracklib |
58 |
|
|
%{archlib}/Crypt/Cracklib.pm |
59 |
|
|
%{auto}/Crypt/Cracklib/* |
60 |
|
|
%{_mandir}/man3/*.3* |
61 |
|
|
%doc Changes README |
62 |
|
|
|
63 |
|
|
%changelog |
64 |
|
|
* Mon Mar 14 2016 Daniel Berteaud <daniel@firewall-services.com> 1.7-2 |
65 |
|
|
- Remove fedora and el5 specific conditions |
66 |
|
|
- Add cracklib-dicts to the buildreqs so it builds on el7 |
67 |
|
|
* Sun Feb 5 2011 Carl Thompson <fedora@red-dragon.com> 1.7-1 |
68 |
|
|
- upgraded to version 1.7 |
69 |
|
|
- added patch to remove AutoMake functions of perl so its |
70 |
|
|
- dependant on packages |
71 |
|
|
- updated spec to work with fedora and epel builds |
72 |
|
|
- updated spec to deal with perl module install paths |
73 |
|
|
* Wed Jul 28 2010 Carl Thompson <fedora@red-dragon.com> 1.5-3 |
74 |
|
|
- update files section for cleaner docs list |
75 |
|
|
- removed epoch |
76 |
|
|
- added Crypt as a directory owned by package |
77 |
|
|
* Tue Jul 27 2010 Carl Thompson <fedora@red-dragon.com> 1:1.5-2 |
78 |
|
|
- added check section to spec |
79 |
|
|
- removed BUILD_ROOT check in install and clean |
80 |
|
|
- included the README and Changes files to the installation |
81 |
|
|
- re enabled the internal dependancy checks |
82 |
|
|
* Tue Jul 20 2010 Carl Thompson <fedora@red-dragon.com> 1:1.5-1 |
83 |
|
|
- update to 1.5 |
84 |
|
|
* Sat Jul 17 2010 Carl Thompson <fedora@red-dragon.com> 1:1.4-1 |
85 |
|
|
- initial build |
86 |
|
|
|