From 9d0db0d783f2f97aee9a765b483cd7fcb15774d9 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 06 2020 15:32:36 +0000 Subject: import perl-Package-Generator-1.106-12.module+el8.3.0+6718+7f269185 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2de8c9f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Package-Generator-1.106.tar.gz diff --git a/.perl-Package-Generator.metadata b/.perl-Package-Generator.metadata new file mode 100644 index 0000000..883c157 --- /dev/null +++ b/.perl-Package-Generator.metadata @@ -0,0 +1 @@ +2ecf481963deef04bd61af0e46175567b3263548 SOURCES/Package-Generator-1.106.tar.gz diff --git a/SOURCES/Package-Generator-1.106-old-Test::More.patch b/SOURCES/Package-Generator-1.106-old-Test::More.patch new file mode 100644 index 0000000..4952541 --- /dev/null +++ b/SOURCES/Package-Generator-1.106-old-Test::More.patch @@ -0,0 +1,52 @@ +--- t/000-report-versions-tiny.t ++++ t/000-report-versions-tiny.t +@@ -1,12 +1,6 @@ + use strict; + use warnings; +-use Test::More 0.88; +-# This is a relatively nice way to avoid Test::NoWarnings breaking our +-# expectations by adding extra tests, without using no_plan. It also helps +-# avoid any other test module that feels introducing random tests, or even +-# test plans, is a nice idea. +-our $success = 0; +-END { $success && done_testing; } ++use Test::More tests => 1; + + # List our own version used to generate this + my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.10\n"; +@@ -52,7 +46,7 @@ eval { $v .= pmver('Carp','any version') + eval { $v .= pmver('ExtUtils::MakeMaker','6.30') }; + eval { $v .= pmver('Scalar::Util','any version') }; + eval { $v .= pmver('Symbol','any version') }; +-eval { $v .= pmver('Test::More','0.96') }; ++eval { $v .= pmver('Test::More','0.47') }; + eval { $v .= pmver('strict','any version') }; + eval { $v .= pmver('warnings','any version') }; + +@@ -68,7 +62,6 @@ EOT + + diag($v); + ok(1, "we really didn't test anything, just reporting data"); +-$success = 1; + + # Work around another nasty module on CPAN. :/ + no warnings 'once'; +--- xt/release/changes_has_content.t ++++ xt/release/changes_has_content.t +@@ -2,7 +2,6 @@ + + use Test::More tests => 2; + +-note 'Checking Changes'; + my $changes_file = 'Changes'; + my $newver = '1.106'; + my $trial_token = '-TRIAL'; +@@ -14,8 +13,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 diff --git a/SPECS/perl-Package-Generator.spec b/SPECS/perl-Package-Generator.spec new file mode 100644 index 0000000..d6284f8 --- /dev/null +++ b/SPECS/perl-Package-Generator.spec @@ -0,0 +1,200 @@ +# We need to patch the test suite if we have an old version of Test::More +%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0) +# Run extra test +%if ! (0%{?rhel}) +%bcond_without perl_Package_Generator_enables_extra_test +%else +%bcond_with perl_Package_Generator_enables_extra_test +%endif + +Name: perl-Package-Generator +Version: 1.106 +Release: 12%{?dist} +Summary: Generate new packages quickly and easily +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Package-Generator/ +Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Package-Generator-%{version}.tar.gz +Patch1: Package-Generator-1.106-old-Test::More.patch +BuildArch: noarch +# Module Build +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 +# Module +BuildRequires: perl(Carp) +BuildRequires: perl(Scalar::Util) +# Test Suite +BuildRequires: perl(Params::Util) >= 0.11 +BuildRequires: perl(Test::More) >= 0.47 +%if %{with perl_Package_Generator_enables_extra_test} +# Extra Tests +BuildRequires: perl(Test::Pod) +%endif +# Runtime +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +This module lets you quickly and easily construct new packages. It gives +them unused names and sets up their package data, if provided. + +%prep +%setup -q -n Package-Generator-%{version} + +# We need to patch the test suite if we have an old version 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 -exec rm -f {} \; +%{_fixperms} %{buildroot} + +%check +make test +%if %{with perl_Package_Generator_enables_extra_test} +make test TEST_FILES="$(echo $(find xt/ -name '*.t'))" +%endif + +%files +%doc Changes LICENSE README +%{perl_vendorlib}/Package/ +%{_mandir}/man3/Package::Generator.3pm* +%{_mandir}/man3/Package::Reaper.3pm* + +%changelog +* Fri Mar 29 2019 Jitka Plesnikova - 1.106-12 +- Rebuild with enable hardening (bug #1636329) + +* Thu Feb 08 2018 Fedora Release Engineering - 1.106-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.106-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jun 04 2017 Jitka Plesnikova - 1.106-9 +- Perl 5.26 rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.106-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sun May 15 2016 Jitka Plesnikova - 1.106-7 +- Perl 5.24 rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.106-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 1.106-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri Jun 05 2015 Jitka Plesnikova - 1.106-4 +- Perl 5.22 rebuild + +* Wed Aug 27 2014 Jitka Plesnikova - 1.106-3 +- Perl 5.20 rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.106-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Dec 29 2013 Paul Howarth - 1.106-1 +- Update to 1.106 + - Update github links + - Typo fix +- Update patch for building with Test::More < 0.88 + +* Sun Aug 04 2013 Fedora Release Engineering - 1.105-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Jul 18 2013 Petr Pisar - 1.105-2 +- Perl 5.18 rebuild + +* Mon Jul 8 2013 Paul Howarth - 1.105-1 +- Update to 1.105 + - Repackage, update bug tracker + - Drop pod tests +- Add patch to support building with Test::More < 0.88 +- Classify buildreqs by usage +- Explicitly run the extra tests + +* Thu Feb 14 2013 Fedora Release Engineering - 0.103-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Aug 24 2012 Paul Howarth - 0.103-14 +- Drop EPEL-4 support +- Drop %%defattr, redundant since rpm 4.4 +- Don't need to remove empty directories from the buildroot +- BR: perl(File::Spec) + +* Tue Aug 14 2012 Petr Pisar - 0.103-13 +- Specify all dependencies +- Package LICENSE + +* Fri Jul 20 2012 Fedora Release Engineering - 0.103-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jul 10 2012 Petr Pisar - 0.103-11 +- Perl 5.16 re-rebuild of bootstrapped packages + +* Tue Jun 12 2012 Petr Pisar - 0.103-10 +- Perl 5.16 rebuild + +* Tue Feb 7 2012 Paul Howarth - 0.103-9 +- Don't BR: perl(Test::Perl::Critic) if we're bootstrapping + +* Wed Feb 1 2012 Paul Howarth - 0.103-8 +- Run Perl::Critic test in %%check too +- BR: perl(Test::Perl::Critic) +- BR: perl(Carp) and perl(Symbol), which might be dual-lived +- Use DESTDIR rather than PERL_INSTALL_ROOT +- Drop version requirement for perl(ExtUtils::MakeMaker); older versions work + without problems, e.g. version 6.17 on EL-4 +- Make %%files list more explicit +- Don't use macros for commands +- Use tabs + +* Fri Jan 13 2012 Fedora Release Engineering - 0.103-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Jun 20 2011 Marcela Mašláňová - 0.103-6 +- Perl mass rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 0.103-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Dec 21 2010 Marcela Maslanova - 0.103-4 +- Rebuild to fix problems with vendorarch/lib (#661697) + +* Tue May 04 2010 Marcela Maslanova - 0.103-3 +- Mass rebuild with perl-5.12.0 + +* Mon Dec 7 2009 Stepan Kasal - 0.103-2 +- Rebuild against perl 5.10.1 + +* Tue Aug 11 2009 Chris Weyl - 0.103-1 +- Auto-update to 0.103 (by cpan-spec-update 0.01) +- Added a new br on perl(ExtUtils::MakeMaker) (version 6.42) + +* Sun Jul 26 2009 Fedora Release Engineering - 0.102-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 0.102-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Feb 27 2008 Tom "spot" Callaway - 0.102-2 +- Rebuild for perl 5.10 (again) + +* Thu Jan 24 2008 Tom "spot" Callaway - 0.102-1 +- Rebuild for new perl +- Update to 0.102 +- Fix license tag + +* Wed Sep 06 2006 Chris Weyl - 0.100-2 +- Bump + +* Tue Sep 05 2006 Chris Weyl - 0.100-1 +- Specfile autogenerated by cpanspec 1.69.1