|
|
|
@ -1,6 +1,3 @@
|
|
|
|
|
# Provides/Requires filtering is different from rpm 4.9 onwards
|
|
|
|
|
%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)
|
|
|
|
|
|
|
|
|
|
# Run extra test
|
|
|
|
|
%if ! (0%{?rhel})
|
|
|
|
|
%bcond_without perl_Sub_Exporter_enables_extra_test
|
|
|
|
@ -9,10 +6,10 @@
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: perl-Sub-Exporter
|
|
|
|
|
Version: 0.987
|
|
|
|
|
Release: 27%{?dist}
|
|
|
|
|
Version: 0.991
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: Sophisticated exporter for custom-built routines
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
|
URL: https://metacpan.org/release/Sub-Exporter
|
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/Sub/Sub-Exporter-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -22,29 +19,33 @@ BuildRequires: findutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
|
|
|
|
BuildRequires: perl(:VERSION) >= 5.12.0
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.78
|
|
|
|
|
# Module
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(Data::OptList) >= 0.1
|
|
|
|
|
BuildRequires: perl(Package::Generator)
|
|
|
|
|
BuildRequires: perl(Params::Util) >= 0.14
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(Sub::Install) >= 0.92
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
# Test suite
|
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
|
BuildRequires: perl(blib)
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
BuildRequires: perl(IO::Handle)
|
|
|
|
|
BuildRequires: perl(IPC::Open3)
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(subs)
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.94
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
|
|
|
# Optional tests
|
|
|
|
|
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
|
|
|
|
# Extra tests
|
|
|
|
|
%if %{with perl_Sub_Exporter_enables_extra_test}
|
|
|
|
|
BuildRequires: perl(Encode)
|
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.41
|
|
|
|
|
%endif
|
|
|
|
|
# Runtime
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
# Dependencies
|
|
|
|
|
Requires: perl(Package::Generator)
|
|
|
|
|
|
|
|
|
|
# Don't want doc-file provides or dependencies
|
|
|
|
@ -52,6 +53,10 @@ Requires: perl(Package::Generator)
|
|
|
|
|
%global __provides_exclude_from ^%{our_docdir}/
|
|
|
|
|
%global __requires_exclude_from ^%{our_docdir}/
|
|
|
|
|
|
|
|
|
|
# Remove private test modules
|
|
|
|
|
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Test::SubExporter::(Faux|GroupGen)\\)$
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Sub::Exporter provides a sophisticated alternative to Exporter.pm. It allows
|
|
|
|
|
for renaming, currying/sub-generation, and other cool stuff.
|
|
|
|
@ -59,6 +64,15 @@ for renaming, currying/sub-generation, and other cool stuff.
|
|
|
|
|
ACHTUNG! If you're not familiar with Exporter or exporting, read
|
|
|
|
|
Sub::Exporter::Tutorial first!
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Sub-Exporter-%{version}
|
|
|
|
|
|
|
|
|
@ -66,13 +80,11 @@ Sub::Exporter::Tutorial first!
|
|
|
|
|
find t/ -type f -exec \
|
|
|
|
|
perl -MExtUtils::MakeMaker -e 'ExtUtils::MM_Unix->fixin(qw{{}})' \;
|
|
|
|
|
|
|
|
|
|
# Filter bogus provides/requires if we don't have rpm ≥ 4.9
|
|
|
|
|
%if ! %{rpm49}
|
|
|
|
|
%global provfilt /bin/sh -c "%{__perl_provides} | grep -Ev '^perl[(]Test::SubExporter.*[)]'"
|
|
|
|
|
%global __perl_provides %{provfilt}
|
|
|
|
|
%global reqfilt /bin/sh -c "%{__perl_requires} | grep -Ev '^perl[(](base|Test::SubExporter.*)[)]'"
|
|
|
|
|
%global __perl_requires %{reqfilt}
|
|
|
|
|
%endif
|
|
|
|
|
# Help generators to recognize Perl scripts
|
|
|
|
|
for F in t/*.t; do
|
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
|
|
|
|
chmod +x "$F"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
@ -82,6 +94,14 @@ make %{?_smp_mflags}
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
# Install tests
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
|
EOF
|
|
|
|
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
@ -102,13 +122,67 @@ make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
|
|
|
|
|
%{_mandir}/man3/Sub::Exporter::Tutorial.3*
|
|
|
|
|
%{_mandir}/man3/Sub::Exporter::Util.3*
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.987-27
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.991-6
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Mon Aug 26 2024 Jitka Plesnikova <jplesnik@redhat.com> - 0.991-6
|
|
|
|
|
- Fix filters of dependencies
|
|
|
|
|
|
|
|
|
|
* Wed Aug 21 2024 Michal Josef Špaček <mspacek@redhat.com> - 0.991-5
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.991-4
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.991-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.991-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Nov 24 2023 Paul Howarth <paul@city-fan.org> - 0.991-1
|
|
|
|
|
- Update to 0.991
|
|
|
|
|
- Make the requirement for perl v5.12.0 explicit; previously, it was only
|
|
|
|
|
implicit because of prerequisites
|
|
|
|
|
|
|
|
|
|
* Sat Jul 22 2023 Paul Howarth <paul@city-fan.org> - 0.990-1
|
|
|
|
|
- Update to 0.990
|
|
|
|
|
- Fixes to keep working in v5.39 (GH#17, GH#18)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.989-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.989-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 1 2023 Paul Howarth <paul@city-fan.org> - 0.989-1
|
|
|
|
|
- Update to 0.989
|
|
|
|
|
- Update author contact info
|
|
|
|
|
- Use SPDX-format license tag
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.988-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.988-4
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.988-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.988-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 21 2021 Paul Howarth <paul@city-fan.org> - 0.988-1
|
|
|
|
|
- Update to 0.988
|
|
|
|
|
- Update author contact info
|
|
|
|
|
- Add perl support section to docs
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.987-26
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.987-26
|
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.987-25
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|