Use distribution instead of perl version to control build-time dependencies

There is no perl in SRPM build root.
This commit is contained in:
Petr Písař 2016-07-22 13:33:51 +02:00
parent 1ca50aeb6b
commit 74ab14ddf7

View File

@ -1,9 +1,13 @@
# Want to use Devel::GlobalDestruction::XS with perl < 5.13.7
%global want_xs %(perl -e 'print (($] >= 5.013007) ? 0 : 1);')
%if 0%{?rhel} && (0%{?rhel} < 7)
%global want_xs 1
%else
%global want_xs 0
%endif
Name: perl-Devel-GlobalDestruction
Version: 0.13
Release: 6%{?dist}
Release: 7%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Summary: Expose PL_dirty, the flag that marks global destruction
@ -73,6 +77,9 @@ rm -rf %{buildroot}
%{_mandir}/man3/Devel::GlobalDestruction.3pm*
%changelog
* Fri Jul 22 2016 Petr Pisar <ppisar@redhat.com> - 0.13-7
- Use distribution instead of perl version to control build-time dependencies
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-6
- Perl 5.24 rebuild