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