[perl-Crypt-Cracklib/f14/master] updated to version 1.7 updated spec to work with all current releases of fedora updated spec to work

Carl Thompson redragon at fedoraproject.org
Mon Feb 7 01:31:11 UTC 2011


commit 23c9e4b88d91317e193b83440bf21293e4ca1628
Author: Carl <redragon at gkar.home>
Date:   Sun Feb 6 19:30:38 2011 -0600

    updated to version 1.7
    updated spec to work with all current releases of fedora
    updated spec to work with epel5 and epel6

 perl-Crypt-Cracklib.spec |   43 ++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 38 insertions(+), 5 deletions(-)
---
diff --git a/perl-Crypt-Cracklib.spec b/perl-Crypt-Cracklib.spec
index fa71df3..4ac75f3 100644
--- a/perl-Crypt-Cracklib.spec
+++ b/perl-Crypt-Cracklib.spec
@@ -1,26 +1,53 @@
+%if 0%{?fedora} <=14
 %define auto %{perl_archlib}/auto
+%define archlib %{perl_archlib}
+%endif
+%if 0%{?fedora} >= 15
+%define auto %{perl_vendorarch}/auto
+%define archlib %{perl_vendorarch}
+%endif
+%if 0%{?rhel} <= 5
+%define auto %{perl_vendorarch}/auto
+%define archlib %{perl_vendorarch}
+%endif
+%if 0%{?rhel} >= 6
+%define auto %{perl_vendorarch}/auto
+%define archlib %{perl_vendorarch}
+%endif
 %define _use_internal_dependency_generator 1
 
 Name:           perl-Crypt-Cracklib
-Version:        1.5
-Release:        3%{?dist}
+Version:        1.7
+Release:        1%{?dist}
 Summary:        Crypt-Cracklib - Perl interface to Alec Muffett's Cracklib
 
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/Crypt-Cracklib/
-Source0:        http://search.cpan.org/CPAN/authors/id/D/DA/DANIEL/Crypt-Cracklib-1.5.tar.gz
+Source0:        http://search.cpan.org/CPAN/authors/id/D/DA/DANIEL/Crypt-Cracklib-1.7.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+%if 0%{?rhel} <= 5
+BuildRequires:  perl(ExtUtils::MakeMaker), cracklib, perl-Test-Pod, perl-Test-Pod-Coverage, perl-Pod-Coverage
+%endif
+
+%if 0%{?rhel} >= 6
+BuildRequires:  perl(ExtUtils::MakeMaker), cracklib-devel, perl-Test-Pod, perl-Test-Pod-Coverage
+%endif
+
+%if 0%{?fedora} >= 12
 BuildRequires:  perl(ExtUtils::MakeMaker), cracklib-devel, perl-Test-Pod, perl-Test-Pod-Coverage, perl-Test-Simple
+%endif
+
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Patch0: automake.patch
 
 %description
 This module providers interaction with the system cracklib libraries.
 
 %prep
-
 %setup -q -n Crypt-Cracklib-%{version}
+%patch0 -p0 -b .automake
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -48,12 +75,18 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-,root,root,-)
 %dir %{auto}/Crypt
 %dir %{auto}/Crypt/Cracklib
-%{perl_archlib}/Crypt/Cracklib.pm
+%{archlib}/Crypt/Cracklib.pm
 %{auto}/Crypt/Cracklib/*
 %{_mandir}/man3/*.3*
 %doc Changes README
 
 %changelog
+* Sun Feb 5 2011 Carl Thompson <fedora at red-dragon.com> 1.7-1
+- upgraded to version 1.7
+- added patch to remove AutoMake functions of perl so its
+- dependant on packages
+- updated spec to work with fedora and epel builds
+- updated spec to deal with perl module install paths
 * Wed Jul 28 2010 Carl Thompson <fedora at red-dragon.com> 1.5-3
 - update files section for cleaner docs list
 - removed epoch


More information about the scm-commits mailing list