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