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