fc07af
# Provides/Requires filtering is different from rpm 4.9 onwards
fc07af
%global rpm49 %(rpm --version | perl -p -e 's/^.* (\\d+)\\.(\\d+).*/sprintf("%d.%03d",$1,$2) ge 4.009 ? 1 : 0/e' 2>/dev/null || echo 0)
fc07af
fc07af
# Run extra test
fc07af
%if ! (0%{?rhel})
fc07af
%bcond_without perl_Sub_Exporter_enables_extra_test
fc07af
%else
fc07af
%bcond_with perl_Sub_Exporter_enables_extra_test
fc07af
%endif
fc07af
fc07af
Name:		perl-Sub-Exporter
fc07af
Version:	0.987
fc07af
Release:	15%{?dist}
fc07af
Summary:	Sophisticated exporter for custom-built routines
fc07af
License:	GPL+ or Artistic
fc07af
URL:		https://metacpan.org/release/Sub-Exporter
fc07af
Source0:	http://cpan.metacpan.org/authors/id/R/RJ/RJBS/Sub-Exporter-%{version}.tar.gz
fc07af
BuildArch:	noarch
fc07af
# Build
fc07af
BuildRequires:	coreutils
fc07af
BuildRequires:	findutils
fc07af
BuildRequires:	make
fc07af
BuildRequires:	perl-generators
fc07af
BuildRequires:	perl-interpreter
fc07af
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.30
fc07af
# Module
fc07af
BuildRequires:	perl(Carp)
fc07af
BuildRequires:	perl(Data::OptList) >= 0.1
fc07af
BuildRequires:	perl(Package::Generator)
fc07af
BuildRequires:	perl(Params::Util) >= 0.14
fc07af
BuildRequires:	perl(Sub::Install) >= 0.92
fc07af
# Test suite
fc07af
BuildRequires:	perl(base)
fc07af
BuildRequires:	perl(Exporter)
fc07af
BuildRequires:	perl(File::Spec)
fc07af
BuildRequires:	perl(IO::Handle)
fc07af
BuildRequires:	perl(IPC::Open3)
fc07af
BuildRequires:	perl(lib)
fc07af
BuildRequires:	perl(subs)
fc07af
BuildRequires:	perl(Test::More) >= 0.94
fc07af
# Extra tests
fc07af
%if %{with perl_Sub_Exporter_enables_extra_test}
fc07af
BuildRequires:	perl(Test::Pod) >= 1.41
fc07af
%endif
fc07af
# Runtime
fc07af
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
fc07af
Requires:	perl(Package::Generator)
fc07af
fc07af
# Don't want doc-file provides or dependencies
fc07af
%global our_docdir %{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
fc07af
%global __provides_exclude_from ^%{our_docdir}/
fc07af
%global __requires_exclude_from ^%{our_docdir}/
fc07af
fc07af
%description
fc07af
Sub::Exporter provides a sophisticated alternative to Exporter.pm. It allows
fc07af
for renaming, currying/sub-generation, and other cool stuff.
fc07af
fc07af
ACHTUNG! If you're not familiar with Exporter or exporting, read
fc07af
Sub::Exporter::Tutorial first!
fc07af
fc07af
%prep
fc07af
%setup -q -n Sub-Exporter-%{version}
fc07af
fc07af
# Fix shellbangs
fc07af
find t/ -type f -exec \
fc07af
	perl -MExtUtils::MakeMaker -e 'ExtUtils::MM_Unix->fixin(qw{{}})' \;
fc07af
fc07af
# Filter bogus provides/requires if we don't have rpm ≥ 4.9
fc07af
%if ! %{rpm49}
fc07af
%global provfilt /bin/sh -c "%{__perl_provides} | grep -Ev '^perl[(]Test::SubExporter.*[)]'"
fc07af
%global __perl_provides %{provfilt}
fc07af
%global reqfilt /bin/sh -c "%{__perl_requires} | grep -Ev '^perl[(](base|Test::SubExporter.*)[)]'"
fc07af
%global __perl_requires %{reqfilt}
fc07af
%endif
fc07af
fc07af
%build
fc07af
perl Makefile.PL INSTALLDIRS=vendor
fc07af
make %{?_smp_mflags}
fc07af
fc07af
%install
fc07af
make pure_install DESTDIR=%{buildroot}
fc07af
find %{buildroot} -type f -name .packlist -delete
fc07af
%{_fixperms} -c %{buildroot}
fc07af
fc07af
%check
fc07af
make test
fc07af
%if %{with perl_Sub_Exporter_enables_extra_test}
fc07af
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
fc07af
%endif
fc07af
fc07af
%files
fc07af
%doc Changes README t/
fc07af
%dir %{perl_vendorlib}/Sub/
fc07af
%dir %{perl_vendorlib}/Sub/Exporter/
fc07af
%{perl_vendorlib}/Sub/Exporter.pm
fc07af
%{perl_vendorlib}/Sub/Exporter/Util.pm
fc07af
%doc %{perl_vendorlib}/Sub/Exporter/Cookbook.pod
fc07af
%doc %{perl_vendorlib}/Sub/Exporter/Tutorial.pod
fc07af
%{_mandir}/man3/Sub::Exporter.3*
fc07af
%{_mandir}/man3/Sub::Exporter::Cookbook.3*
fc07af
%{_mandir}/man3/Sub::Exporter::Tutorial.3*
fc07af
%{_mandir}/man3/Sub::Exporter::Util.3*
fc07af
fc07af
%changelog
fc07af
* Thu Apr 12 2018 Paul Howarth <paul@city-fan.org> - 0.987-15
fc07af
- Drop some support for older distributions
fc07af
  - Drop BuildRoot: and Group: tags
fc07af
  - Drop explicit buildroot cleaning in %%install section
fc07af
  - Drop explicit %%clean section
fc07af
  - Drop workarounds for building with Test::More < 0.94
fc07af
fc07af
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.987-14
fc07af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fc07af
fc07af
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.987-13
fc07af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fc07af
fc07af
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.987-12
fc07af
- Perl 5.26 rebuild
fc07af
fc07af
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.987-11
fc07af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fc07af
fc07af
* Fri Jul 22 2016 Petr Pisar <ppisar@redhat.com> - 0.987-10
fc07af
- Adjust RPM version detection to SRPM build root without perl
fc07af
fc07af
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.987-9
fc07af
- Perl 5.24 rebuild
fc07af
fc07af
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.987-8
fc07af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fc07af
fc07af
* Thu Jan  7 2016 Paul Howarth <paul@city-fan.org> - 0.987-7
fc07af
- Don't use %%define
fc07af
fc07af
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.987-6
fc07af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fc07af
fc07af
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.987-5
fc07af
- Perl 5.22 rebuild
fc07af
fc07af
* Fri Jan 16 2015 Petr Pisar <ppisar@redhat.com> - 0.987-4
fc07af
- Do not hard-code interpreter name
fc07af
fc07af
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.987-3
fc07af
- Perl 5.20 rebuild
fc07af
fc07af
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.987-2
fc07af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
fc07af
fc07af
* Sat Oct 19 2013 Paul Howarth <paul@city-fan.org> - 0.987-1
fc07af
- Update to 0.987 (update bugtracker metadata)
fc07af
- Update patches as needed
fc07af
fc07af
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.986-4
fc07af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fc07af
fc07af
* Wed Jul 31 2013 Paul Howarth <paul@city-fan.org> - 0.986-3
fc07af
- Handle filtering of provides/requires from unversioned doc-dirs from F-20
fc07af
fc07af
* Sun Jul 21 2013 Petr Pisar <ppisar@redhat.com> - 0.986-2
fc07af
- Perl 5.18 rebuild
fc07af
fc07af
* Sat Jun 15 2013 Paul Howarth <paul@city-fan.org> - 0.986-1
fc07af
- Update to 0.986 (typo fixes in docs)
fc07af
- Use metacpan URLs
fc07af
fc07af
* Thu Feb 21 2013 Paul Howarth <paul@city-fan.org> - 0.985-1
fc07af
- Update to 0.985 (documentation fixes)
fc07af
- Add patch to support building with Test::More < 0.88
fc07af
- Run the extra tests too
fc07af
- BR: perl(File::Find) and perl(File::Temp) for test suite
fc07af
- BR: perl(Test::Pod) for the extra tests
fc07af
fc07af
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.984-5
fc07af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fc07af
fc07af
* Mon Oct 29 2012 Petr Pisar <ppisar@redhat.com> - 0.984-4
fc07af
- Specify all dependencies
fc07af
fc07af
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.984-3
fc07af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fc07af
fc07af
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 0.984-2
fc07af
- Perl 5.16 rebuild
fc07af
fc07af
* Tue Jun  5 2012 Paul Howarth <paul@city-fan.org> - 0.984-1
fc07af
- Update to 0.984 (documentation fixes)
fc07af
- Add filters for provides/requires from the test suite
fc07af
- BR: perl(base) and perl(Exporter) for the test suite
fc07af
fc07af
* Sun Mar 18 2012 Paul Howarth <paul@city-fan.org> - 0.982-11
fc07af
- Drop %%defattr, redundant since rpm 4.4
fc07af
fc07af
* Sat Mar  3 2012 Paul Howarth <paul@city-fan.org> - 0.982-10
fc07af
- Explicitly require perl(Package::Generator)
fc07af
- Make %%files list more explicit
fc07af
- Mark POD files as %%doc
fc07af
- Use DESTDIR rather than PERL_INSTALL_ROOT
fc07af
- Don't need to remove empty directories from buildroot
fc07af
- Don't use macros for commands
fc07af
- Use tabs
fc07af
fc07af
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.982-9
fc07af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fc07af
fc07af
* Wed Jun 29 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.982-8
fc07af
- Perl mass rebuild
fc07af
fc07af
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.982-7
fc07af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fc07af
fc07af
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.982-6
fc07af
- Rebuild to fix problems with vendorarch/lib (#661697)
fc07af
fc07af
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.982-5
fc07af
- Mass rebuild with perl-5.12.0
fc07af
fc07af
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.982-4
fc07af
- Rebuild against perl 5.10.1
fc07af
fc07af
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.982-3
fc07af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fc07af
fc07af
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.982-2
fc07af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fc07af
fc07af
* Wed Feb 11 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.982-1
fc07af
- Update to 0.982
fc07af
fc07af
* Sun Oct 26 2008 Chris Weyl <cweyl@alumni.drew.edu> - 0.981-1
fc07af
- Update to 0.981
fc07af
fc07af
* Thu Oct 23 2008 Chris Weyl <cweyl@alumni.drew.edu> - 0.980-1
fc07af
- Update to 0.980
fc07af
fc07af
* Mon Jun 30 2008 Chris Weyl <cweyl@alumni.drew.edu> - 0.979-1
fc07af
- Update to 0.979
fc07af
- Drop BR's on: perl(Test::Pod::Coverage), perl(Test::Pod)
fc07af
fc07af
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.978-2
fc07af
- Rebuild for perl 5.10 (again)
fc07af
fc07af
* Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.978-1
fc07af
- Update to 0.978
fc07af
- Fix license tag
fc07af
- Rebuild for new perl
fc07af
fc07af
* Thu Aug 09 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.975-1
fc07af
- Update to 0.975
fc07af
fc07af
* Fri Jun 01 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.974-1
fc07af
- Update to 0.974
fc07af
fc07af
* Sat Dec 09 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.972-1
fc07af
- Update to 0.972
fc07af
fc07af
* Thu Sep 07 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.970-2
fc07af
- Bump
fc07af
fc07af
* Sat Sep 02 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.970-1
fc07af
- Specfile autogenerated by cpanspec 1.69.1