|
|
71f68e |
# We need to patch the test suite if we have old versions of Test::More
|
|
|
71f68e |
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
|
|
|
71f68e |
|
|
|
71f68e |
Name: perl-Sub-Exporter-Progressive
|
|
|
71f68e |
Version: 0.001013
|
|
|
71f68e |
Release: 5%{?dist}
|
|
|
71f68e |
Summary: Only use Sub::Exporter if you need it
|
|
|
71f68e |
Group: Development/Libraries
|
|
|
71f68e |
License: GPL+ or Artistic
|
|
|
71f68e |
URL: http://search.cpan.org/dist/Sub-Exporter-Progressive/
|
|
|
71f68e |
Source0: http://search.cpan.org/CPAN/authors/id/F/FR/FREW/Sub-Exporter-Progressive-%{version}.tar.gz
|
|
|
71f68e |
Patch1: Sub-Exporter-Progressive-0.001013-old-Test::More.patch
|
|
|
71f68e |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
|
|
71f68e |
BuildArch: noarch
|
|
|
71f68e |
# =============== Module Build ======================
|
|
|
71f68e |
BuildRequires: coreutils
|
|
|
71f68e |
BuildRequires: findutils
|
|
|
71f68e |
BuildRequires: make
|
|
|
71f68e |
BuildRequires: perl-interpreter
|
|
|
71f68e |
BuildRequires: perl-generators
|
|
|
71f68e |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
71f68e |
# =============== Module Runtime ====================
|
|
|
71f68e |
BuildRequires: perl(Carp)
|
|
|
71f68e |
BuildRequires: perl(Exporter) >= 5.58
|
|
|
71f68e |
BuildRequires: perl(strict)
|
|
|
71f68e |
BuildRequires: perl(Sub::Exporter)
|
|
|
71f68e |
BuildRequires: perl(warnings)
|
|
|
71f68e |
# =============== Test Suite ========================
|
|
|
71f68e |
BuildRequires: perl(constant)
|
|
|
71f68e |
BuildRequires: perl(lib)
|
|
|
71f68e |
BuildRequires: perl(Test::More)
|
|
|
71f68e |
# =============== Module Runtime ====================
|
|
|
71f68e |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
71f68e |
Requires: perl(Carp)
|
|
|
71f68e |
Requires: perl(Exporter) >= 5.58
|
|
|
71f68e |
Requires: perl(Sub::Exporter)
|
|
|
71f68e |
|
|
|
71f68e |
%description
|
|
|
71f68e |
Sub::Exporter is an incredibly powerful module, but with that power comes
|
|
|
71f68e |
great responsibility, er- as well as some runtime penalties. This module is a
|
|
|
71f68e |
Sub::Exporter wrapper that will let your users just use Exporter if all they
|
|
|
71f68e |
are doing is picking exports, but use Sub::Exporter if your users try to use
|
|
|
71f68e |
Sub::Exporter's more advanced features, like renaming exports, if they try to
|
|
|
71f68e |
use them.
|
|
|
71f68e |
|
|
|
71f68e |
Note that this module will export @EXPORT and @EXPORT_OK package variables for
|
|
|
71f68e |
Exporter to work. Additionally, if your package uses advanced Sub::Exporter
|
|
|
71f68e |
features like currying, this module will only ever use Sub::Exporter, so you
|
|
|
71f68e |
might as well use it directly.
|
|
|
71f68e |
|
|
|
71f68e |
%prep
|
|
|
71f68e |
%setup -q -n Sub-Exporter-Progressive-%{version}
|
|
|
71f68e |
|
|
|
71f68e |
# We need to patch the test suite if we have old versions of Test::More
|
|
|
71f68e |
%if %{old_test_more}
|
|
|
71f68e |
%patch1
|
|
|
71f68e |
%endif
|
|
|
71f68e |
|
|
|
71f68e |
%build
|
|
|
71f68e |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
71f68e |
make %{?_smp_mflags}
|
|
|
71f68e |
|
|
|
71f68e |
%install
|
|
|
71f68e |
rm -rf %{buildroot}
|
|
|
71f68e |
make pure_install DESTDIR=%{buildroot}
|
|
|
71f68e |
find %{buildroot} -type f -name .packlist -delete
|
|
|
71f68e |
%{_fixperms} -c %{buildroot}
|
|
|
71f68e |
|
|
|
71f68e |
%check
|
|
|
71f68e |
make test
|
|
|
71f68e |
|
|
|
71f68e |
%clean
|
|
|
71f68e |
rm -rf %{buildroot}
|
|
|
71f68e |
|
|
|
71f68e |
%files
|
|
|
71f68e |
%if 0%{?_licensedir:1}
|
|
|
71f68e |
%license LICENSE
|
|
|
71f68e |
%else
|
|
|
71f68e |
%doc LICENSE
|
|
|
71f68e |
%endif
|
|
|
71f68e |
%doc Changes README
|
|
|
71f68e |
%{perl_vendorlib}/Sub/
|
|
|
71f68e |
%{_mandir}/man3/Sub::Exporter::Progressive.3*
|
|
|
71f68e |
|
|
|
71f68e |
%changelog
|
|
|
71f68e |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.001013-5
|
|
|
71f68e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
71f68e |
|
|
|
71f68e |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.001013-4
|
|
|
71f68e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
71f68e |
|
|
|
71f68e |
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.001013-3
|
|
|
71f68e |
- Perl 5.26 rebuild
|
|
|
71f68e |
|
|
|
71f68e |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.001013-2
|
|
|
71f68e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
71f68e |
|
|
|
71f68e |
* Sat Oct 22 2016 Paul Howarth <paul@city-fan.org> - 0.001013-1
|
|
|
71f68e |
- Update to 0.001013
|
|
|
71f68e |
- Avoid possible warnings about special variables only being used once
|
|
|
71f68e |
- Update old Test::More patch
|
|
|
71f68e |
|
|
|
71f68e |
* Wed Aug 24 2016 Paul Howarth <paul@city-fan.org> - 0.001012-1
|
|
|
71f68e |
- Update to 0.001012
|
|
|
71f68e |
- Many small performance improvements
|
|
|
71f68e |
- BR: perl-generators
|
|
|
71f68e |
- Simplify find command using -delete
|
|
|
71f68e |
- Update old Test::More patch
|
|
|
71f68e |
- Package new LICENSE file
|
|
|
71f68e |
|
|
|
71f68e |
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.001011-7
|
|
|
71f68e |
- Perl 5.24 rebuild
|
|
|
71f68e |
|
|
|
71f68e |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.001011-6
|
|
|
71f68e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
71f68e |
|
|
|
71f68e |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.001011-5
|
|
|
71f68e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
71f68e |
|
|
|
71f68e |
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.001011-4
|
|
|
71f68e |
- Perl 5.22 rebuild
|
|
|
71f68e |
|
|
|
71f68e |
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.001011-3
|
|
|
71f68e |
- Perl 5.20 rebuild
|
|
|
71f68e |
|
|
|
71f68e |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.001011-2
|
|
|
71f68e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
71f68e |
|
|
|
71f68e |
* Mon Oct 28 2013 Paul Howarth <paul@city-fan.org> - 0.001011-1
|
|
|
71f68e |
- Update to 0.001011
|
|
|
71f68e |
- Fix in global destruction
|
|
|
71f68e |
- Fix SYNOPSIS
|
|
|
71f68e |
- Fix duplicate word in DESCRIPTION (CPAN RT#86072)
|
|
|
71f68e |
|
|
|
71f68e |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.001010-3
|
|
|
71f68e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
71f68e |
|
|
|
71f68e |
* Sun Jul 21 2013 Petr Pisar <ppisar@redhat.com> - 0.001010-2
|
|
|
71f68e |
- Perl 5.18 rebuild
|
|
|
71f68e |
|
|
|
71f68e |
* Wed Mar 27 2013 Paul Howarth <paul@city-fan.org> - 0.001010-1
|
|
|
71f68e |
- Update to 0.001010
|
|
|
71f68e |
- Fix module name in Makefile.PL (CPAN RT#83932)
|
|
|
71f68e |
- Work around Exporter.pm not installable on perl < 5.8.0
|
|
|
71f68e |
- Update old Test::More patch
|
|
|
71f68e |
|
|
|
71f68e |
* Wed Mar 13 2013 Paul Howarth <paul@city-fan.org> - 0.001009-1
|
|
|
71f68e |
- Update to 0.001009
|
|
|
71f68e |
- Disallow version names in random parts of the import list for consistency
|
|
|
71f68e |
with Sub::Exporter (CPAN RT#83491)
|
|
|
71f68e |
- Update old Test::More patch, and apply if we have Test::More < 0.88
|
|
|
71f68e |
|
|
|
71f68e |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.001008-2
|
|
|
71f68e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
71f68e |
|
|
|
71f68e |
* Tue Jan 22 2013 Paul Howarth <paul@city-fan.org> - 0.001008-1
|
|
|
71f68e |
- Update to 0.001008
|
|
|
71f68e |
- Rewrite -tag to :tag for Exporter.pm
|
|
|
71f68e |
- Fix prereqs
|
|
|
71f68e |
- Update old Test::More patch, and apply if we have Test::More < 0.96
|
|
|
71f68e |
- Bump perl(Exporter) version requirement to 5.58
|
|
|
71f68e |
|
|
|
71f68e |
* Mon Aug 27 2012 Paul Howarth <paul@city-fan.org> - 0.001006-1
|
|
|
71f68e |
- Update to 0.001006
|
|
|
71f68e |
- Handle ':all' correctly
|
|
|
71f68e |
- Update old Test::More patch
|
|
|
71f68e |
- Drop redundant buildreq perl(Test::Pod)
|
|
|
71f68e |
|
|
|
71f68e |
* Sat Aug 25 2012 Paul Howarth <paul@city-fan.org> - 0.001005-1
|
|
|
71f68e |
- Update to 0.001005
|
|
|
71f68e |
- Add support for tags
|
|
|
71f68e |
- Warn if defaults are not in exports
|
|
|
71f68e |
- Add explicit dependency on Test::More 0.89
|
|
|
71f68e |
- This release by LEONT -> update source URL
|
|
|
71f68e |
- Update old Test::More patch
|
|
|
71f68e |
|
|
|
71f68e |
* Thu Aug 9 2012 Paul Howarth <paul@city-fan.org> - 0.001004-1
|
|
|
71f68e |
- Update to 0.001004 (fix skipping when Sub::Exporter isn't installed)
|
|
|
71f68e |
- This release by MSTROUT -> update source URL
|
|
|
71f68e |
- No LICENSE file in this release
|
|
|
71f68e |
- Update old Test::More patch
|
|
|
71f68e |
|
|
|
71f68e |
* Wed Aug 1 2012 Paul Howarth <paul@city-fan.org> - 0.001003-1
|
|
|
71f68e |
- Update to 0.001003 (remove warning if there are no defaults)
|
|
|
71f68e |
|
|
|
71f68e |
* Wed Aug 1 2012 Paul Howarth <paul@city-fan.org> - 0.001002-2
|
|
|
71f68e |
- Sanitize for Fedora submission
|
|
|
71f68e |
|
|
|
71f68e |
* Wed Aug 1 2012 Paul Howarth <paul@city-fan.org> - 0.001002-1
|
|
|
71f68e |
- Initial RPM build
|