From 848885154d266e61a8df05924109bd950119b36b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com> Date: Thu, 21 Jul 2016 10:58:15 +0200 Subject: Check for distribution instead of perl version
perl is not available in SRPM build root. --- perl-Sub-Identify.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/perl-Sub-Identify.spec b/perl-Sub-Identify.spec index 1fdb65a..5ca815d 100644 --- a/perl-Sub-Identify.spec +++ b/perl-Sub-Identify.spec @@ -1,6 +1,6 @@ Name: perl-Sub-Identify Version: 0.12 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Retrieve names of code references License: GPL+ or Artistic URL: http://search.cpan.org/dist/Sub-Identify/ @@ -20,7 +20,8 @@ BuildRequires: perl(Exporter) BuildRequires: perl(strict) BuildRequires: perl(XSLoader) # Test Suite -%if %(perl -e 'print $] >= 5.020 ? 1 : 0;') +# feature required with perl >= 5.020 +%if 0%{?fedora} >= 22 BuildRequires: perl(feature) %endif BuildRequires: perl(List::Util) @@ -65,6 +66,9 @@ make test %{_mandir}/man3/Sub::Identify.3* %changelog +* Thu Jul 21 2016 Petr Pisar <ppi...@redhat.com> - 0.12-4 +- Check for distribution instead of perl version + * Sun May 15 2016 Jitka Plesnikova <jples...@redhat.com> - 0.12-3 - Perl 5.24 rebuild -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-Sub-Identify.git/commit/?h=master&id=848885154d266e61a8df05924109bd950119b36b -- 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