From 74ab14ddf754a40e737c661ea894f0180096dc24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 22 Jul 2016 13:33:51 +0200 Subject: [PATCH] Use distribution instead of perl version to control build-time dependencies There is no perl in SRPM build root. --- perl-Devel-GlobalDestruction.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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