Update to 0.006
- New upstream release 0.006: - Set back configure_requires prerequisite for ExtUtils::MakeMaker from 6.30 to 6.17 - BR: perl(Test::Requires) - BR: perl(Test::Spelling), perl(Pod::Wordlist::hanekomu) and aspell-en to enable the spell checker test - Drop patch for building with old ExtUtils::MakeMaker versions, no longer needed - Drop support for soon-to-be-EOL RHEL-4: - Drop %defattr, redundant since rpm 4.4 - Update patch for building with Test::More < 0.88
This commit is contained in:
parent
b5f9e3d6fb
commit
855874bb14
@ -1,11 +0,0 @@
|
||||
--- CPAN-Meta-YAML/Makefile.PL
|
||||
+++ CPAN-Meta-YAML/Makefile.PL
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
use 5.004;
|
||||
|
||||
-use ExtUtils::MakeMaker 6.30;
|
||||
+use ExtUtils::MakeMaker;
|
||||
|
||||
|
||||
|
@ -1,10 +0,0 @@
|
||||
--- CPAN-Meta-YAML-0.004/xt/release/test-version.t.orig 2011-09-06 14:42:59.000000000 +0100
|
||||
+++ CPAN-Meta-YAML-0.004/xt/release/test-version.t 2011-09-07 13:22:05.882101877 +0100
|
||||
@@ -8,5 +8,6 @@
|
||||
plan skip_all => "Test::Version 0.04 required for testing versions"
|
||||
if $@;
|
||||
|
||||
+plan tests => 1;
|
||||
+
|
||||
version_all_ok();
|
||||
-done_testing;
|
10
CPAN-Meta-YAML-0.006-old-Test::More.patch
Normal file
10
CPAN-Meta-YAML-0.006-old-Test::More.patch
Normal file
@ -0,0 +1,10 @@
|
||||
diff -up CPAN-Meta-YAML-0.006/xt/release/test-version.t.orig CPAN-Meta-YAML-0.006/xt/release/test-version.t
|
||||
--- CPAN-Meta-YAML-0.006/xt/release/test-version.t.orig 2012-02-07 01:51:53.000000000 +0000
|
||||
+++ CPAN-Meta-YAML-0.006/xt/release/test-version.t 2012-02-07 11:48:13.912695104 +0000
|
||||
@@ -8,5 +8,5 @@ use Test::Requires {
|
||||
'Test::Version' => 0.04,
|
||||
};
|
||||
|
||||
+plan tests => 2;
|
||||
version_all_ok;
|
||||
-done_testing;
|
@ -1,28 +1,28 @@
|
||||
# We don't really need ExtUtils::MakeMaker ≥ 6.30
|
||||
%global old_eumm %(perl -MExtUtils::MakeMaker -e 'print (($ExtUtils::MakeMaker::VERSION < 6.30) ? 1 : 0);' 2>/dev/null || echo 0)
|
||||
|
||||
# We need to patch the test suite if we have Test::More < 0.88
|
||||
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
|
||||
|
||||
Name: perl-CPAN-Meta-YAML
|
||||
Version: 0.005
|
||||
Release: 2%{?dist}
|
||||
Version: 0.006
|
||||
Release: 1%{?dist}
|
||||
Summary: Read and write a subset of YAML for CPAN Meta files
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/CPAN-Meta-YAML/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/CPAN-Meta-YAML-%{version}.tar.gz
|
||||
Patch0: CPAN-Meta-YAML-0.004-old-EU::MM.patch
|
||||
Patch1: CPAN-Meta-YAML-0.004-old-Test::More.patch
|
||||
Patch1: CPAN-Meta-YAML-0.006-old-Test::More.patch
|
||||
Patch2: CPAN-Meta-YAML-0.004-old-Scalar::Util.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(File::Spec)
|
||||
# Version 1.113620 needed for "UTF"
|
||||
BuildRequires: perl(Pod::Wordlist::hanekomu) >= 1.113620
|
||||
BuildRequires: perl(Test::CPAN::Meta)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Test::Pod)
|
||||
# RHEL <= 6 doesn't have a recent enough perl(version) for perl(Test::Version)
|
||||
BuildRequires: perl(Test::Requires)
|
||||
BuildRequires: perl(Test::Spelling), aspell-en
|
||||
# RHEL ≤ 6 doesn't have a recent enough perl(version) for perl(Test::Version)
|
||||
%if 0%{?fedora} || 0%{?rhel} > 6
|
||||
BuildRequires: perl(Test::Version)
|
||||
%endif
|
||||
@ -37,11 +37,6 @@ used for any other general YAML parsing or generation task.
|
||||
%prep
|
||||
%setup -q -n CPAN-Meta-YAML-%{version}
|
||||
|
||||
# We don't really need ExtUtils::MakeMaker ≥ 6.30
|
||||
%if %{old_eumm}
|
||||
%patch0 -p1
|
||||
%endif
|
||||
|
||||
# We need to patch the test suite if we have Test::More < 0.88
|
||||
%if %{old_test_more}
|
||||
%patch1 -p1
|
||||
@ -68,12 +63,24 @@ make test TEST_FILES="t/*.t xt/*/*.t"
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes LICENSE README
|
||||
%{perl_vendorlib}/CPAN/
|
||||
%{_mandir}/man3/CPAN::Meta::YAML.3pm*
|
||||
|
||||
%changelog
|
||||
* Tue Feb 7 2012 Paul Howarth <paul@city-fan.org> - 0.006-1
|
||||
- Update to 0.006:
|
||||
- Set back configure_requires prerequisite for ExtUtils::MakeMaker
|
||||
from 6.30 to 6.17
|
||||
- BR: perl(Test::Requires)
|
||||
- BR: perl(Test::Spelling), perl(Pod::Wordlist::hanekomu) and aspell-en to
|
||||
enable the spell checker test
|
||||
- Drop patch for building with old ExtUtils::MakeMaker versions, no longer
|
||||
needed
|
||||
- Drop support for soon-to-be-EOL RHEL-4:
|
||||
- Drop %%defattr, redundant since rpm 4.4
|
||||
- Update patch for building with Test::More < 0.88
|
||||
|
||||
* Tue Jan 10 2012 Paul Howarth <paul@city-fan.org> - 0.005-2
|
||||
- Fedora 17 mass rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user