Use distribution instead of perl version to control build-requires

There is no perl in the SRPM build root.
This commit is contained in:
Petr Písař 2016-07-22 12:33:50 +02:00
parent 5fb5df0a3c
commit 47b59dca5f

View File

@ -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 <ppisar@redhat.com> - 0.12-12
- Use distribution instead of perl version to control build-requires
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-11
- Perl 5.24 rebuild