From 50b77dcead16498931a3d9e0fbcae6b6f4e17847 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 09 2014 08:42:58 +0000 Subject: import perl516-perl-CPAN-Meta-YAML-0.010-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..694ddef --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/CPAN-Meta-YAML-0.010.tar.gz diff --git a/.perl516-perl-CPAN-Meta-YAML.metadata b/.perl516-perl-CPAN-Meta-YAML.metadata new file mode 100644 index 0000000..eccebac --- /dev/null +++ b/.perl516-perl-CPAN-Meta-YAML.metadata @@ -0,0 +1 @@ +e594e3cd2b371bac16d4186cde4187ef4b6d12b2 SOURCES/CPAN-Meta-YAML-0.010.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index ce46a88..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -\ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/CPAN-Meta-YAML-0.009-TM094.patch b/SOURCES/CPAN-Meta-YAML-0.009-TM094.patch new file mode 100644 index 0000000..0a4c425 --- /dev/null +++ b/SOURCES/CPAN-Meta-YAML-0.009-TM094.patch @@ -0,0 +1,16 @@ +--- t/00-compile.t ++++ t/00-compile.t +@@ -3,7 +3,7 @@ + + # this test was generated with Dist::Zilla::Plugin::Test::Compile 2.030 + +-use Test::More 0.94 tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0); ++use Test::More 0.47 tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0); + + + +@@ -41,4 +41,3 @@ + + is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING}; + +-BAIL_OUT("Compilation problems") if !Test::More->builder->is_passing; diff --git a/SOURCES/CPAN-Meta-YAML-0.009-old-Test::More.patch b/SOURCES/CPAN-Meta-YAML-0.009-old-Test::More.patch new file mode 100644 index 0000000..18add0e --- /dev/null +++ b/SOURCES/CPAN-Meta-YAML-0.009-old-Test::More.patch @@ -0,0 +1,10 @@ +--- xt/release/test-version.t ++++ xt/release/test-version.t +@@ -18,5 +18,5 @@ push @imports, $params + + Test::Version->import(@imports); + +-version_all_ok; +-done_testing; ++plan tests => 2; ++version_all_ok(); diff --git a/SPECS/perl-CPAN-Meta-YAML.spec b/SPECS/perl-CPAN-Meta-YAML.spec new file mode 100644 index 0000000..54a1b0b --- /dev/null +++ b/SPECS/perl-CPAN-Meta-YAML.spec @@ -0,0 +1,117 @@ +%{?scl:%scl_package perl-CPAN-Meta-YAML} +%{!?scl:%global pkg_name %{name}} + +Name: %{?scl_prefix}perl-CPAN-Meta-YAML +Version: 0.010 +Release: 3%{?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.009-TM094.patch +Patch1: CPAN-Meta-YAML-0.009-old-Test::More.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +BuildArch: noarch +BuildRequires: %{?scl_prefix}perl(Carp) +BuildRequires: %{?scl_prefix}perl(Exporter) +BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker) +BuildRequires: %{?scl_prefix}perl(File::Spec) +# Tests: +BuildRequires: %{?scl_prefix}perl(IO::Handle) +BuildRequires: %{?scl_prefix}perl(IPC::Open3) +BuildRequires: %{?scl_prefix}perl(File::Spec::Functions) +BuildRequires: %{?scl_prefix}perl(File::Temp) +BuildRequires: %{?scl_prefix}perl(Test::More) +BuildRequires: %{?scl_prefix}perl(YAML) +# Don't run extra tests when bootstrapping as many of those +# tests' dependencies build-require this package +%if 0%{?fedora} && 0%{!?perl_bootstrap:1} && ! ( 0%{?scl:1} ) +BuildRequires: %{?scl_prefix}perl(Test::CPAN::Meta) +BuildRequires: %{?scl_prefix}perl(Test::Pod) +BuildRequires: %{?scl_prefix}perl(Test::Requires) +BuildRequires: %{?scl_prefix}perl(Test::Version) +%endif +%{?scl:%global perl_version %(scl enable %{scl} 'eval "`perl -V:version`"; echo $version')} +%{!?scl:%global perl_version %(eval "`perl -V:version`"; echo $version)} +Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%{perl_version}) +Requires: %{?scl_prefix}perl(Carp) +Requires: %{?scl_prefix}perl(Exporter) + +# We need to patch the test suite if we have Test::More < 0.94 +%{?scl:%global quite_old_test_more %(scl enable %{scl} "perl -MTest::More -e 'print ((\\$Test::More::VERSION < 0.94) ? 1 : 0)'" 2>/dev/null || echo 0)} +%{!?scl:%global quite_old_test_more %(perl -MTest::More -e 'print ($Test::More::VERSION < 0.94 ? 1 : 0);' 2>/dev/null || echo 0)} +# We need to patch the test suite again if we have Test::More < 0.88 +%{?scl:%global old_test_more %(scl enable %{scl} "perl -MTest::More -e 'print ((\\$Test::More::VERSION < 0.88) ? 1 : 0)'" 2>/dev/null || echo 0)} +%{!?scl:%global old_test_more %(perl -MTest::More -e 'print ($Test::More::VERSION < 0.88 ? 1 : 0);' 2>/dev/null || echo 0)} + +%description +This module implements a subset of the YAML specification for use in reading +and writing CPAN metadata files like META.yml and MYMETA.yml. It should not be +used for any other general YAML parsing or generation task. + +%prep +%setup -q -n CPAN-Meta-YAML-%{version} + +# We need to patch the test suite if we have Test::More < 0.94 +%if 0%{quite_old_test_more} +%patch0 +%endif + +# We need to patch the test suite again if we have Test::More < 0.88 +%if 0%{old_test_more} +%patch1 +%endif + +%build +%{?scl:scl enable %{scl} "} +perl Makefile.PL INSTALLDIRS=vendor UNINST=0 +%{?scl:"} +%{?scl:scl enable %{scl} "} +make %{?_smp_mflags} +%{?scl:"} + +%install +rm -rf %{buildroot} +%{?scl:scl enable %{scl} "} +make pure_install DESTDIR=%{buildroot} +%{?scl:"} +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +%{_fixperms} %{buildroot} + +%check +%{?scl:scl enable %{scl} "} +make test +%{?scl:"} +%if 0%{?fedora} && 0%{!?perl_bootstrap:1} && ! ( 0%{?scl:1} ) +%{?scl:scl enable %{scl} '} +make test TEST_FILES="xt/*/*.t" +%{?scl:'} +%endif + +%clean +rm -rf %{buildroot} + +%files +%doc Changes LICENSE README +%{perl_vendorlib}/CPAN/ +%{_mandir}/man3/CPAN::Meta::YAML.3pm* + +%changelog +* Tue Feb 11 2014 Jitka Plesnikova - 0.010-3 +- Fixed getting of *old_test_more +- Resolves: rhbz#1063206 + +* Tue Feb 04 2014 Jitka Plesnikova - 0.010-2 +- Disable release tests +- Resolves: rhbz#1061038, rhbz#1063206 + +* Tue Nov 12 2013 Jitka Plesnikova - 0.010-1 +- 0.010 bump +- Update dependencies + +* Tue Jun 18 2013 Jitka Plesnikova - 0.008-2 +- Update a condition for BRs + +* Tue Feb 12 2013 Jitka Plesnikova - 0.008-1 +- Stack package - initial release