[perl-Package-Generator] Drop EPEL-4 support

Paul Howarth pghmcfc at fedoraproject.org
Fri Aug 24 12:02:19 UTC 2012


commit c384bcd8930608777b76df8b44a30d7765bcf52d
Author: Paul Howarth <paul at city-fan.org>
Date:   Fri Aug 24 13:01:40 2012 +0100

    Drop EPEL-4 support
    
    - Drop EPEL-4 support
    - Drop %defattr, redundant since rpm 4.4
    - Don't need to remove empty directories from the buildroot
    - BR: perl(File::Spec)

 perl-Package-Generator.spec |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/perl-Package-Generator.spec b/perl-Package-Generator.spec
index 21cb00f..355f807 100644
--- a/perl-Package-Generator.spec
+++ b/perl-Package-Generator.spec
@@ -1,6 +1,6 @@
 Name:		perl-Package-Generator
 Version:	0.103
-Release:	13%{?dist}
+Release:	14%{?dist}
 Summary:	Generate new packages quickly and easily
 License:	GPL+ or Artistic
 Group:		Development/Libraries
@@ -12,6 +12,7 @@ BuildRequires:	perl(Carp)
 BuildRequires:	perl(Cwd)
 BuildRequires:	perl(ExtUtils::MakeMaker)
 BuildRequires:	perl(File::Path)
+BuildRequires:	perl(File::Spec)
 BuildRequires:	perl(Params::Util)
 BuildRequires:	perl(Scalar::Util)
 BuildRequires:	perl(Symbol)
@@ -19,8 +20,7 @@ BuildRequires:	perl(Test::More)
 # Test::Perl::Critic -> Perl::Critic -> Exception::Class -> Test::EOL ->
 #   Pod::Coverage::TrustPod -> Pod::Eventual -> Mixin::Linewise ->
 #   Sub::Exporter -> Package::Generator
-# Test::Perl::Critic not available in EPEL-4
-%if "%{rhel}" != "4" && 0%{!?perl_bootstrap:1}
+%if 0%{!?perl_bootstrap:1}
 BuildRequires:	perl(Test::Perl::Critic)
 %endif
 BuildRequires:	perl(Test::Pod)
@@ -42,7 +42,6 @@ make %{?_smp_mflags}
 rm -rf %{buildroot}
 make pure_install DESTDIR=%{buildroot}
 find %{buildroot} -type f -name .packlist -exec rm -f {} \;
-find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
 %{_fixperms} %{buildroot}
 
 %check
@@ -52,13 +51,18 @@ make test %{!?perl_bootstrap:PERL_TEST_CRITIC=1}
 rm -rf %{buildroot}
 
 %files
-%defattr(-,root,root,-)
 %doc Changes LICENSE README
 %{perl_vendorlib}/Package/
 %{_mandir}/man3/Package::Generator.3pm*
 %{_mandir}/man3/Package::Reaper.3pm*
 
 %changelog
+* Fri Aug 24 2012 Paul Howarth <paul at city-fan.org> - 0.103-14
+- Drop EPEL-4 support
+- Drop %%defattr, redundant since rpm 4.4
+- Don't need to remove empty directories from the buildroot
+- BR: perl(File::Spec)
+
 * Tue Aug 14 2012 Petr Pisar <ppisar at redhat.com> - 0.103-13
 - Specify all dependencies
 - Package LICENSE



More information about the perl-devel mailing list