# 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}.frs 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