Fix FTBFS when perl is not in the SRPM build root
This commit is contained in:
parent
9d40c7582f
commit
b241a0e2d4
@ -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 <paul@city-fan.org> - 0.28-12
|
||||
- Fix FTBFS when perl is not in the SRPM build root
|
||||
|
||||
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-11
|
||||
- Perl 5.24 rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user