From 71f68e9f9304d63094971e4bf3398076406e8dd9 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jan 15 2023 11:23:43 +0000 Subject: import perl-Sub-Exporter-Progressive-0.001013-5.el8 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4150cc1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Sub-Exporter-Progressive-0.001013.tar.gz diff --git a/.perl-Sub-Exporter-Progressive.metadata b/.perl-Sub-Exporter-Progressive.metadata new file mode 100644 index 0000000..20b8004 --- /dev/null +++ b/.perl-Sub-Exporter-Progressive.metadata @@ -0,0 +1 @@ +4ee0cf333cfb482f71f052ccdd3a3bcefaa291f7 SOURCES/Sub-Exporter-Progressive-0.001013.tar.gz diff --git a/SOURCES/Sub-Exporter-Progressive-0.001013-old-Test::More.patch b/SOURCES/Sub-Exporter-Progressive-0.001013-old-Test::More.patch new file mode 100644 index 0000000..f083a9f --- /dev/null +++ b/SOURCES/Sub-Exporter-Progressive-0.001013-old-Test::More.patch @@ -0,0 +1,137 @@ +--- Makefile.PL ++++ Makefile.PL +@@ -17,7 +17,7 @@ my %WriteMakefileArgs = ( + "NAME" => "Sub::Exporter::Progressive", + "PREREQ_PM" => {}, + "TEST_REQUIRES" => { +- "Test::More" => "0.88" ++ "Test::More" => "0.47" + }, + "VERSION" => "0.001013", + "test" => { +@@ -27,7 +27,7 @@ my %WriteMakefileArgs = ( + + + my %FallbackPrereqs = ( +- "Test::More" => "0.88" ++ "Test::More" => "0.47" + ); + + +--- t/all.t ++++ t/all.t +@@ -2,7 +2,7 @@ + use strict; + use warnings; + +-use Test::More; ++use Test::More tests => 6; + use lib 't/lib'; + use A::JunkAll; + +@@ -17,5 +17,3 @@ use A::JunkAll ':all'; + ok(main->can('junk1'), 'sub exported'); + ok(main->can('junk2'), 'sub exported'); + ok(! $INC{'Sub/Exporter.pm'}, 'Sub::Exporter not loaded'); +- +-done_testing; +--- t/basic.t ++++ t/basic.t +@@ -2,11 +2,9 @@ + use strict; + use warnings; + +-use Test::More; ++use Test::More tests => 2; + use lib 't/lib'; + use A::Junk 'junk1'; + + ok(main->can('junk1'), 'requested sub exported'); + ok(! $INC{'Sub/Exporter.pm'}, 'Sub::Exporter not loaded'); +- +-done_testing; +--- t/default.t ++++ t/default.t +@@ -2,11 +2,9 @@ + use strict; + use warnings; + +-use Test::More; ++use Test::More tests => 2; + use lib 't/lib'; + use A::Junk; + + ok(main->can('junk2'), 'sub exported'); + ok(! $INC{'Sub/Exporter.pm'}, 'Sub::Exporter not loaded'); +- +-done_testing; +--- t/release-changes_has_content.t ++++ t/release-changes_has_content.t +@@ -10,7 +10,6 @@ BEGIN { + + use Test::More tests => 2; + +-note 'Checking Changes'; + my $changes_file = 'Changes'; + my $newver = '0.001013'; + my $trial_token = '-TRIAL'; +@@ -22,8 +21,6 @@ SKIP: { + ok(_get_changes($newver), "$changes_file has content for $newver"); + } + +-done_testing; +- + # _get_changes copied and adapted from Dist::Zilla::Plugin::Git::Commit + # by Jerome Quelin + sub _get_changes +--- t/sex.t ++++ t/sex.t +@@ -2,7 +2,7 @@ + use strict; + use warnings; + +-use Test::More; ++use Test::More tests => 2; + BEGIN { + plan skip_all => 'Sub::Exporter not installed' + unless eval { require Sub::Exporter }; +@@ -13,5 +13,3 @@ use A::Junk 'junk1' => { -as => 'junk' } + + ok(main->can('junk'), 'sub renamed with Sub::Exporter'); + ok($INC{'Sub/Exporter.pm'}, 'Sub::Exporter loaded'); +- +-done_testing; +--- t/tags.t ++++ t/tags.t +@@ -1,7 +1,7 @@ + use strict; + use warnings; + +-use Test::More; ++use Test::More tests => 44; + use Carp; + use lib 't/lib'; + use A::Junk ':other'; +@@ -64,5 +64,3 @@ SKIP: { + check_tag('bar -default', [qw/foo bar/], [qw/baz/]); + } + +-done_testing; +- +--- t/version-check.t ++++ t/version-check.t +@@ -1,7 +1,7 @@ + + use strict; + use warnings; +-use Test::More; ++use Test::More tests => 5; + + BEGIN { + package AAA; +@@ -38,5 +38,3 @@ ok(eval('use AAA 1; 1'), 'perl built-in + ); + } + +-done_testing; +- diff --git a/SPECS/perl-Sub-Exporter-Progressive.spec b/SPECS/perl-Sub-Exporter-Progressive.spec new file mode 100644 index 0000000..b922943 --- /dev/null +++ b/SPECS/perl-Sub-Exporter-Progressive.spec @@ -0,0 +1,190 @@ +# We need to patch the test suite if we have old versions of Test::More +%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0) + +Name: perl-Sub-Exporter-Progressive +Version: 0.001013 +Release: 5%{?dist} +Summary: Only use Sub::Exporter if you need it +Group: Development/Libraries +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Sub-Exporter-Progressive/ +Source0: http://search.cpan.org/CPAN/authors/id/F/FR/FREW/Sub-Exporter-Progressive-%{version}.tar.gz +Patch1: Sub-Exporter-Progressive-0.001013-old-Test::More.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +BuildArch: noarch +# =============== Module Build ====================== +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +# =============== Module Runtime ==================== +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) >= 5.58 +BuildRequires: perl(strict) +BuildRequires: perl(Sub::Exporter) +BuildRequires: perl(warnings) +# =============== Test Suite ======================== +BuildRequires: perl(constant) +BuildRequires: perl(lib) +BuildRequires: perl(Test::More) +# =============== Module Runtime ==================== +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Carp) +Requires: perl(Exporter) >= 5.58 +Requires: perl(Sub::Exporter) + +%description +Sub::Exporter is an incredibly powerful module, but with that power comes +great responsibility, er- as well as some runtime penalties. This module is a +Sub::Exporter wrapper that will let your users just use Exporter if all they +are doing is picking exports, but use Sub::Exporter if your users try to use +Sub::Exporter's more advanced features, like renaming exports, if they try to +use them. + +Note that this module will export @EXPORT and @EXPORT_OK package variables for +Exporter to work. Additionally, if your package uses advanced Sub::Exporter +features like currying, this module will only ever use Sub::Exporter, so you +might as well use it directly. + +%prep +%setup -q -n Sub-Exporter-Progressive-%{version} + +# We need to patch the test suite if we have old versions of Test::More +%if %{old_test_more} +%patch1 +%endif + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -delete +%{_fixperms} -c %{buildroot} + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%if 0%{?_licensedir:1} +%license LICENSE +%else +%doc LICENSE +%endif +%doc Changes README +%{perl_vendorlib}/Sub/ +%{_mandir}/man3/Sub::Exporter::Progressive.3* + +%changelog +* Fri Feb 09 2018 Fedora Release Engineering - 0.001013-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.001013-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jun 04 2017 Jitka Plesnikova - 0.001013-3 +- Perl 5.26 rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.001013-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sat Oct 22 2016 Paul Howarth - 0.001013-1 +- Update to 0.001013 + - Avoid possible warnings about special variables only being used once +- Update old Test::More patch + +* Wed Aug 24 2016 Paul Howarth - 0.001012-1 +- Update to 0.001012 + - Many small performance improvements +- BR: perl-generators +- Simplify find command using -delete +- Update old Test::More patch +- Package new LICENSE file + +* Sun May 15 2016 Jitka Plesnikova - 0.001011-7 +- Perl 5.24 rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 0.001011-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 0.001011-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri Jun 05 2015 Jitka Plesnikova - 0.001011-4 +- Perl 5.22 rebuild + +* Wed Aug 27 2014 Jitka Plesnikova - 0.001011-3 +- Perl 5.20 rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.001011-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon Oct 28 2013 Paul Howarth - 0.001011-1 +- Update to 0.001011 + - Fix in global destruction + - Fix SYNOPSIS + - Fix duplicate word in DESCRIPTION (CPAN RT#86072) + +* Sun Aug 04 2013 Fedora Release Engineering - 0.001010-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sun Jul 21 2013 Petr Pisar - 0.001010-2 +- Perl 5.18 rebuild + +* Wed Mar 27 2013 Paul Howarth - 0.001010-1 +- Update to 0.001010 + - Fix module name in Makefile.PL (CPAN RT#83932) + - Work around Exporter.pm not installable on perl < 5.8.0 +- Update old Test::More patch + +* Wed Mar 13 2013 Paul Howarth - 0.001009-1 +- Update to 0.001009 + - Disallow version names in random parts of the import list for consistency + with Sub::Exporter (CPAN RT#83491) +- Update old Test::More patch, and apply if we have Test::More < 0.88 + +* Thu Feb 14 2013 Fedora Release Engineering - 0.001008-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Jan 22 2013 Paul Howarth - 0.001008-1 +- Update to 0.001008 + - Rewrite -tag to :tag for Exporter.pm + - Fix prereqs +- Update old Test::More patch, and apply if we have Test::More < 0.96 +- Bump perl(Exporter) version requirement to 5.58 + +* Mon Aug 27 2012 Paul Howarth - 0.001006-1 +- Update to 0.001006 + - Handle ':all' correctly +- Update old Test::More patch +- Drop redundant buildreq perl(Test::Pod) + +* Sat Aug 25 2012 Paul Howarth - 0.001005-1 +- Update to 0.001005 + - Add support for tags + - Warn if defaults are not in exports + - Add explicit dependency on Test::More 0.89 +- This release by LEONT -> update source URL +- Update old Test::More patch + +* Thu Aug 9 2012 Paul Howarth - 0.001004-1 +- Update to 0.001004 (fix skipping when Sub::Exporter isn't installed) +- This release by MSTROUT -> update source URL +- No LICENSE file in this release +- Update old Test::More patch + +* Wed Aug 1 2012 Paul Howarth - 0.001003-1 +- Update to 0.001003 (remove warning if there are no defaults) + +* Wed Aug 1 2012 Paul Howarth - 0.001002-2 +- Sanitize for Fedora submission + +* Wed Aug 1 2012 Paul Howarth - 0.001002-1 +- Initial RPM build