Restrict Test::Version optional test on RHEL to version 6 only

This commit is contained in:
Petr Písař 2012-10-11 16:55:58 +02:00
parent e14444c448
commit 4194ed1c64

View File

@ -3,7 +3,7 @@
Name: perl-CPAN-Meta-YAML
Version: 0.008
Release: 10%{?dist}
Release: 11%{?dist}
Summary: Read and write a subset of YAML for CPAN Meta files
License: GPL+ or Artistic
Group: Development/Libraries
@ -31,7 +31,8 @@ BuildRequires: perl(Test::CPAN::Meta)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Requires)
# RHEL ≤ 6 doesn't have a recent enough perl(version) for perl(Test::Version)
%if 0%{?fedora} || 0%{?rhel} > 6
# RHEL ≥ 7 does not have perl(Test::Version)
%if 0%{?fedora} || 0%{?rhel} == 6
BuildRequires: perl(Test::Version)
%endif
%endif
@ -75,6 +76,9 @@ rm -rf %{buildroot}
%{_mandir}/man3/CPAN::Meta::YAML.3pm*
%changelog
* Thu Oct 11 2012 Petr Pisar <ppisar@redhat.com> - 0.008-11
- Restrict Test::Version optional test on RHEL to version 6 only
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.008-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild