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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 104b68fab87516e14cb6ab90154e50b56f794864
Author: Petr Písař <ppisar@xxxxxxxxxx>
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@xxxxxxxxxx> - 0.70-2
+- Do not build-require Module::Install::AutoLicense on RHEL >= 7
+
 * Mon Jun 10 2013 Petr Pisar <ppisar@xxxxxxxxxx> 0.70-1
 - Specfile autogenerated by cpanspec 1.78.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux