commit 219aa3af0ab4255325ad4ec768dfca9f7cb76238 Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Sun Mar 9 12:33:34 2014 +0000 Downgrade to 0.27 for compatibility with Moose 1.x in EPEL-6 - Drop tests sub-package for EPEL-6 import - Don't need to remove empty directories from the buildroot - Add patch to downgrade Test::More version requirement to 0.88 for EPEL-6 MooseX-Role-Parameterized-0.27-tm088.patch | 42 ++++++++++++++++++++++ perl-MooseX-Role-Parameterized.spec | 53 +++++++++------------------- sources | 2 +- 3 files changed, 60 insertions(+), 37 deletions(-) --- diff --git a/MooseX-Role-Parameterized-0.27-tm088.patch b/MooseX-Role-Parameterized-0.27-tm088.patch new file mode 100644 index 0000000..f31c219 --- /dev/null +++ b/MooseX-Role-Parameterized-0.27-tm088.patch @@ -0,0 +1,42 @@ +--- Makefile.PL ++++ Makefile.PL +@@ -11,7 +11,7 @@ githubmeta; + + requires 'Moose' => '0.78'; + test_requires 'Test::Moose'; +-test_requires 'Test::More' => '0.96'; ++test_requires 'Test::More' => '0.88'; + test_requires 'Test::Fatal'; + + manifest_skip; +--- META.yml ++++ META.yml +@@ -6,7 +6,7 @@ build_requires: + ExtUtils::MakeMaker: 6.42 + Test::Fatal: 0 + Test::Moose: 0 +- Test::More: 0.96 ++ Test::More: 0.88 + configure_requires: + ExtUtils::MakeMaker: 6.42 + distribution_type: module +--- t/002-role-block.t ++++ t/002-role-block.t +@@ -31,7 +31,7 @@ do { + + ok(MyPerson->meta->has_role_generator, "MyPerson has a role generator"); + +-subtest "generation of an anonymous role" => sub { ++{ + my $role = MyPerson->meta->generate_role( + parameters => { + default_age => 7, +@@ -55,7 +55,7 @@ subtest "generation of an anonymous role + is($birthday_method->package_name, $role->name, "package name"); + }; + +-subtest "generating a role with a provided name" => sub { ++{ + my $role = MyPerson->meta->generate_role( + package => 'RJBS::Was::Here', + parameters => { diff --git a/perl-MooseX-Role-Parameterized.spec b/perl-MooseX-Role-Parameterized.spec index ff798be..153657c 100644 --- a/perl-MooseX-Role-Parameterized.spec +++ b/perl-MooseX-Role-Parameterized.spec @@ -1,28 +1,24 @@ Name: perl-MooseX-Role-Parameterized Summary: Make your roles flexible through parameterization -Version: 1.00 -Release: 6%{?dist} +Version: 0.27 +Release: 2%{?dist} License: GPL+ or Artistic Group: Development/Libraries Source0: http://search.cpan.org/CPAN/authors/id/S/SA/SARTAK/MooseX-Role-Parameterized-%{version}.tar.gz +Patch0: MooseX-Role-Parameterized-0.27-tm088.patch URL: http://search.cpan.org/dist/MooseX-Role-Parameterized Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch BuildRequires: perl(Data::Dumper) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 -BuildRequires: perl(Moose) >= 2.0300 +BuildRequires: perl(Moose) >= 0.78 BuildRequires: perl(Storable) BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::Moose) -BuildRequires: perl(Test::More) >= 0.96 +BuildRequires: perl(Test::More) >= 0.88 -Requires: perl(Moose) >= 2.0300 - -# obsolete/provide old tests subpackage -# can be removed during F19 development cycle -Obsoletes: %{name}-tests < 1.00-3 -Provides: %{name}-tests = %{version}-%{release} +Requires: perl(Moose) >= 0.78 %{?perl_default_filter} @@ -48,6 +44,9 @@ Parameterized roles offer exactly this solution. %prep %setup -q -n MooseX-Role-Parameterized-%{version} +# Downgrade Test::More version rqeuirement to 0.88 for EPEL-6 +%patch0 + %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} @@ -55,39 +54,21 @@ make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' - -%{_fixperms} %{buildroot}/* +%{_fixperms} %{buildroot} %check make test %files -%doc Changes t/ -%{perl_vendorlib}/* +%doc Changes +%{perl_vendorlib}/MooseX/ %{_mandir}/man3/*.3* %changelog -* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.00-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.00-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Fri Jun 22 2012 Petr Pisar <ppisar@xxxxxxxxxx> - 1.00-4 -- Perl 5.16 rebuild - -* Sun Jan 22 2012 Iain Arnell <iarnell@xxxxxxxxx> 1.00-3 -- drop tests subpackage; move tests to main package documentation - -* Tue Jan 17 2012 Iain Arnell <iarnell@xxxxxxxxx> - 1.00-2 -- rebuilt again for F17 mass rebuild - -* Sat Jan 14 2012 Iain Arnell <iarnell@xxxxxxxxx> 1.00-1 -- update to latest upstream version - -* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.27-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild +* Sun Mar 9 2014 Paul Howarth <paul@xxxxxxxxxxxx> 0.27-2 +- drop tests sub-package for EPEL-6 import +- don't need to remove empty directories from the buildroot +- add patch to downgrade Test::More version requirement to 0.88 for EPEL-6 * Sat Oct 01 2011 Iain Arnell <iarnell@xxxxxxxxx> 0.27-1 - update to latest upstream version @@ -106,7 +87,7 @@ make test - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Dec 21 2010 Marcela Maslanova <mmaslano@xxxxxxxxxx> - 0.18-3 -- 661697 rebuild for fixing problems with vendorach/lib +- Rebuild to fix problems with vendorarch/lib (#661697) * Thu May 13 2010 Ralf Corsépius <corsepiu@xxxxxxxxxxxxxxxxx> 0.18-2 - perl-5.12.0 mass rebuild. diff --git a/sources b/sources index 7578d0d..539afba 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8afd9b244bf8b2f60ef18c2fd94d821a MooseX-Role-Parameterized-1.00.tar.gz +ff42187afa323a8fe7cba57ff78685de MooseX-Role-Parameterized-0.27.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel