[perl-CPANPLUS-Dist-Build] Do not build-require Module::Install::AutoLicense on RHEL >= 7

Petr Pisar ppisar at fedoraproject.org
Mon Jun 17 08:40:58 UTC 2013


commit 104b68fab87516e14cb6ab90154e50b56f794864
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Jun 17 10:40:20 2013 +0200

    Do not build-require Module::Install::AutoLicense on RHEL >= 7

 perl-CPANPLUS-Dist-Build.spec |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/perl-CPANPLUS-Dist-Build.spec b/perl-CPANPLUS-Dist-Build.spec
index a4d6f13..b23930b 100644
--- a/perl-CPANPLUS-Dist-Build.spec
+++ b/perl-CPANPLUS-Dist-Build.spec
@@ -1,6 +1,6 @@
 Name:           perl-CPANPLUS-Dist-Build
 Version:        0.70
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Module::Build extension for CPANPLUS
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -22,7 +22,9 @@ BuildRequires:  perl(vars)
 BuildRequires:  perl(warnings)
 %else
 BuildRequires:  perl(inc::Module::Install)
+%if !(0%{?rhel} >= 7)
 BuildRequires:  perl(Module::Install::AutoLicense)
+%endif
 # Module::Install::GithubMeta is optional and not usefull
 %endif
 BuildRequires:  perl(strict)
@@ -95,6 +97,9 @@ Module::Build-based perl modules by calling CPANPLUS::Dist methods.
 # is a core module.
 rm -r ./inc/*
 sed -i -e '/^\/inc\//d' MANIFEST
+%if 0%{?rhel} >= 7
+sed -i -e '/^auto_license\s/d' Makefile.PL
+%endif
 %endif
 
 %build
@@ -115,5 +120,8 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Mon Jun 17 2013 Petr Pisar <ppisar at redhat.com> - 0.70-2
+- Do not build-require Module::Install::AutoLicense on RHEL >= 7
+
 * Mon Jun 10 2013 Petr Pisar <ppisar at redhat.com> 0.70-1
 - Specfile autogenerated by cpanspec 1.78.


More information about the scm-commits mailing list