From 6524ba475dd5836d3917dca2e4a6c934869ce6ed Mon Sep 17 00:00:00 2001
From: Carl Thompson <fed...@red-dragon.com>
Date: Sun, 6 Feb 2011 19:36:04 -0600
Subject: updated to version 1.7 updated spec for all releases of fedora
 updated spec for epel 5 and epel 6

---
 perl-Crypt-Cracklib.spec | 49 +++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 38 insertions(+), 11 deletions(-)

diff --git a/perl-Crypt-Cracklib.spec b/perl-Crypt-Cracklib.spec
index 41f949e..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:        5%{?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,18 +75,18 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-,root,root,-)
 %dir %{auto}/Crypt
 %dir %{auto}/Crypt/Cracklib
-%{perl_vendorarch}/Crypt/Cracklib.pm
+%{archlib}/Crypt/Cracklib.pm
 %{auto}/Crypt/Cracklib/*
 %{_mandir}/man3/*.3*
 %doc Changes README
 
 %changelog
-* Thu Dec 16 2010 Carl Thompson <fed...@red-dragon.com> - 1.5-5
-- fixed a macro mismatch that wasn't caught in vendorarch/lib fix
-
-* Wed Dec 15 2010 Marcela Maslanova <mmasl...@redhat.com> - 1.5-4
-- 661697 rebuild for fixing problems with vendorach/lib
-
+* Sun Feb 5 2011 Carl Thompson <fed...@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 <fed...@red-dragon.com> 1.5-3
 - update files section for cleaner docs list
 - removed epoch
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Crypt-Cracklib.git/commit/?h=epel7&id=6524ba475dd5836d3917dca2e4a6c934869ce6ed
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to