[perl-Parse-CPAN-Meta] Don't BR: CPAN::Meta & CPAN::Meta::Requirements when bootstrapping

Paul Howarth pghmcfc at fedoraproject.org
Tue Apr 8 09:57:44 UTC 2014


commit 1c3fb38f9ae4659400ea55d2c34f6ffd96b5695d
Author: Paul Howarth <paul at city-fan.org>
Date:   Tue Apr 8 10:57:18 2014 +0100

    Don't BR: CPAN::Meta & CPAN::Meta::Requirements when bootstrapping

 perl-Parse-CPAN-Meta.spec |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/perl-Parse-CPAN-Meta.spec b/perl-Parse-CPAN-Meta.spec
index dc58537..64539d2 100644
--- a/perl-Parse-CPAN-Meta.spec
+++ b/perl-Parse-CPAN-Meta.spec
@@ -2,7 +2,7 @@ Name:           perl-Parse-CPAN-Meta
 # dual-lifed module needs to match the epoch in perl.spec
 Epoch:          1
 Version:        1.4414
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Parse META.yml and META.json CPAN meta-data files
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -11,8 +11,11 @@ Source0:        http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Parse-CPAN-Meta-%{v
 BuildArch:      noarch
 BuildRequires:  perl(Carp)
 BuildRequires:  perl(CPAN::Meta::YAML) >= 0.011
+# CPAN::Meta needs Parse::CPAN::Meta
+%if 0%{!?perl_bootstrap:1}
 BuildRequires:  perl(CPAN::Meta)
 BuildRequires:  perl(CPAN::Meta::Requirements)
+%endif
 BuildRequires:  perl(Encode)
 BuildRequires:  perl(Exporter)
 BuildRequires:  perl(ExtUtils::MakeMaker)
@@ -48,7 +51,6 @@ make %{?_smp_mflags}
 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}/*
 
@@ -61,6 +63,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Tue Apr  8 2014 Paul Howarth <paul at city-fan.org> - 1:1.4414-2
+- Don't BR: CPAN::Meta & CPAN::Meta::Requirements when bootstrapping
+
 * Wed Mar 12 2014 Ralf Corsépius <corsepiu at fedoraproject.org> - 1:1.4414-1
 - Upstream update.
 - Reflect upstream R:/BR:-changes.



More information about the perl-devel mailing list