Blame SPECS/perl-Sub-Exporter-Progressive.spec

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