Check for distribution instead of perl version

perl is not available in SRPM build root.
This commit is contained in:
Petr Písař 2016-07-21 10:58:15 +02:00
parent f5aba6ea40
commit 848885154d

View File

@ -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 <ppisar@redhat.com> - 0.12-4
- Check for distribution instead of perl version
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-3
- Perl 5.24 rebuild