diff --git a/perl-Devel-GlobalDestruction.spec b/perl-Devel-GlobalDestruction.spec index 9b6969c..585e1c3 100644 --- a/perl-Devel-GlobalDestruction.spec +++ b/perl-Devel-GlobalDestruction.spec @@ -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 - 0.13-7 +- Use distribution instead of perl version to control build-time dependencies + * Sun May 15 2016 Jitka Plesnikova - 0.13-6 - Perl 5.24 rebuild