From 47b59dca5ff5f0d1817c94a4237a040ea5443c80 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Fri, 22 Jul 2016 12:33:50 +0200
Subject: Use distribution instead of perl version to control build-requires

There is no perl in the SRPM build root.
---
 perl-MRO-Compat.spec | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/perl-MRO-Compat.spec b/perl-MRO-Compat.spec
index 9b9c7d0..4e6f4ca 100644
--- a/perl-MRO-Compat.spec
+++ b/perl-MRO-Compat.spec
@@ -1,9 +1,13 @@
 # MRO is part of the Perl core since 5.9.5
-%global mro_in_core %(perl -e 'print $] > 5.009005 ? 1 : 0;')
+%if 0%{?rhel} && (0%{?rhel} < 6)
+%global mro_in_core 0
+%else
+%global mro_in_core 1
+%endif
 
 Name:          perl-MRO-Compat
 Version:       0.12
-Release:       11%{?dist}
+Release:       12%{?dist}
 Summary:       Mro::* interface compatibility for Perls < 5.9.5
 License:       GPL+ or Artistic
 Group:         Development/Libraries
@@ -75,6 +79,9 @@ rm -rf %{buildroot}
 %{_mandir}/man3/MRO::Compat.3pm*
 
 %changelog
+* Fri Jul 22 2016 Petr Pisar <ppi...@redhat.com> - 0.12-12
+- Use distribution instead of perl version to control build-requires
+
 * Sun May 15 2016 Jitka Plesnikova <jples...@redhat.com> - 0.12-11
 - Perl 5.24 rebuild
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-MRO-Compat.git/commit/?h=master&id=47b59dca5ff5f0d1817c94a4237a040ea5443c80
--
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

Reply via email to