From b241a0e2d4c80e2dddf0dfe851b19a2ab07910e5 Mon Sep 17 00:00:00 2001 From: Paul Howarth <p...@city-fan.org> Date: Thu, 21 Jul 2016 20:19:25 +0100 Subject: Fix FTBFS when perl is not in the SRPM build root
--- perl-Package-Stash-XS.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/perl-Package-Stash-XS.spec b/perl-Package-Stash-XS.spec index f30fddf..0947178 100644 --- a/perl-Package-Stash-XS.spec +++ b/perl-Package-Stash-XS.spec @@ -1,6 +1,6 @@ Name: perl-Package-Stash-XS Version: 0.28 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Faster and more correct implementation of the Package::Stash API Group: Development/Libraries License: GPL+ or Artistic @@ -16,8 +16,8 @@ BuildRequires: make BuildRequires: perl >= 3:5.8.1 %if "%{?rhel}" != "5" BuildRequires: perl-devel -BuildRequires: perl-generators %endif +BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 # Module Runtime BuildRequires: perl(strict) @@ -36,7 +36,7 @@ BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Requires) # Optional Tests -%if %(perl -e 'print $] >= 5.014 ? 1 : 0;') +%if 0%{?fedora} > 15 || 0%{?rhel} > 6 BuildRequires: perl(Package::Anon) %endif %if "%{?rhel}" != "5" @@ -79,7 +79,7 @@ make %{?_smp_mflags} rm -rf %{buildroot} make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -delete -find %{buildroot} -type f -name '*.bs' -a -empty -delete +find %{buildroot} -type f -name '*.bs' -empty -delete %{_fixperms} %{buildroot} %check @@ -105,6 +105,9 @@ rm -rf %{buildroot} %{_mandir}/man3/Package::Stash::XS.3* %changelog +* Thu Jul 21 2016 Paul Howarth <p...@city-fan.org> - 0.28-12 +- Fix FTBFS when perl is not in the SRPM build root + * Sun May 15 2016 Jitka Plesnikova <jples...@redhat.com> - 0.28-11 - Perl 5.24 rebuild -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-Package-Stash-XS.git/commit/?h=perl-Package-Stash-XS-0.28-12.fc25&id=b241a0e2d4c80e2dddf0dfe851b19a2ab07910e5 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@lists.fedoraproject.org https://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org