[perl-Test-YAML-Valid/el5/master] EPEL 4/5 compatibility fixes
Paul Howarth
pghmcfc at fedoraproject.org
Thu Mar 24 20:49:42 UTC 2011
commit 3aa0a883bc3f46ae86d5819a227cc73a6d1fd53c
Author: Paul Howarth <paul at city-fan.org>
Date: Thu Mar 24 20:48:19 2011 +0000
EPEL 4/5 compatibility fixes
- Add support for EPEL 4/5 builds by dropping buildreq perl(YAML::XS) there
- Drop buildreq perl(CPAN) and use Makefile.PL --skipdeps instead
- Drop explicit dependency on optional perl(YAML::Syck) backend; other optional
backends such as perl(YAML::Tiny) and perl(YAML::XS) aren't explicitly
required either
perl-Test-YAML-Valid.spec | 35 ++++++++++++++++++++++-------------
1 files changed, 22 insertions(+), 13 deletions(-)
---
diff --git a/perl-Test-YAML-Valid.spec b/perl-Test-YAML-Valid.spec
index 44133ef..be5d443 100644
--- a/perl-Test-YAML-Valid.spec
+++ b/perl-Test-YAML-Valid.spec
@@ -1,6 +1,6 @@
Name: perl-Test-YAML-Valid
Version: 0.04
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Lets you test the validity of YAML files in unit tests
License: GPL+ or Artistic
Group: Development/Libraries
@@ -9,19 +9,21 @@ Source0: http://www.cpan.org/authors/id/J/JR/JROCKWAY/Test-YAML-Valid-%{v
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
-BuildRequires: perl(YAML) >= 0.60
-BuildRequires: perl(YAML::XS)
-BuildRequires: perl(YAML::Tiny)
-BuildRequires: perl(YAML::Syck)
-BuildRequires: perl(Test::Pod)
-BuildRequires: perl(Test::Pod::Coverage)
-BuildRequires: perl(CPAN)
-BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Builder::Tester)
+BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::Pod)
+BuildRequires: perl(Test::Pod::Coverage)
+BuildRequires: perl(YAML) >= 0.60
+BuildRequires: perl(YAML::Syck)
+BuildRequires: perl(YAML::Tiny)
+# YAML::LibYAML not in EPEL 4/5
+%if "%{?rhel}" != "4" && "%{?rhel}" != "5"
+BuildRequires: perl(YAML::XS)
+%endif
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-Requires: perl(YAML)
-Requires: perl(YAML::Syck)
+# Default backend; can also optionally use YAML::Syck, YAML::Tiny, or YAML::XS
+Requires: perl(YAML) >= 0.60
%description
Lets you test the validity of YAML files inside your
@@ -31,7 +33,7 @@ Lets you test the validity of YAML files inside your
%setup -q -n Test-YAML-Valid-%{version}
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__perl} Makefile.PL --skipdeps INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
@@ -56,9 +58,16 @@ rm -rf $RPM_BUILD_ROOT
%dir %{perl_vendorlib}/Test/
%dir %{perl_vendorlib}/Test/YAML/
%{perl_vendorlib}/Test/YAML/Valid.pm
-%{_mandir}/man3/*3pm*
+%{_mandir}/man3/Test::YAML::Valid.3pm*
%changelog
+* Wed Mar 16 2011 Paul Howarth <paul at city-fan.org> - 0.04-5
+- Add support for EPEL 4/5 builds by dropping buildreq perl(YAML::XS) there
+- Drop buildreq perl(CPAN) and use Makefile.PL --skipdeps instead
+- Drop explicit dependency on optional perl(YAML::Syck) backend; other optional
+ backends such as perl(YAML::Tiny) and perl(YAML::XS) aren't explicitly
+ required either
+
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.04-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
More information about the perl-devel
mailing list