Compare commits

..

No commits in common. 'i10cs' and 'c9' have entirely different histories.
i10cs ... c9

2
.gitignore vendored

@ -1 +1 @@
SOURCES/Sub-Exporter-0.991.tar.gz
SOURCES/Sub-Exporter-0.987.tar.gz

@ -1 +1 @@
0ac76d3d10bbebd74f726de073ffd42623a3c9c6 SOURCES/Sub-Exporter-0.991.tar.gz
cbe2baead99a36bbd1ca1f34a3d4699fc88bade2 SOURCES/Sub-Exporter-0.987.tar.gz

@ -1,3 +1,6 @@
# 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
@ -6,10 +9,10 @@
%endif
Name: perl-Sub-Exporter
Version: 0.991
Release: 7%{?dist}
Version: 0.987
Release: 27%{?dist}
Summary: Sophisticated exporter for custom-built routines
License: GPL-1.0-or-later OR Artistic-1.0-Perl
License: GPL+ or Artistic
URL: https://metacpan.org/release/Sub-Exporter
Source0: https://cpan.metacpan.org/modules/by-module/Sub/Sub-Exporter-%{version}.tar.gz
BuildArch: noarch
@ -19,33 +22,29 @@ BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.12.0
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.78
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
# 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.96
# Optional tests
BuildRequires: perl(CPAN::Meta) >= 2.120900
BuildRequires: perl(Test::More) >= 0.94
# Extra tests
%if %{with perl_Sub_Exporter_enables_extra_test}
BuildRequires: perl(Encode)
BuildRequires: perl(Test::Pod) >= 1.41
%endif
# Dependencies
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Package::Generator)
# Don't want doc-file provides or dependencies
@ -53,10 +52,6 @@ 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.
@ -64,15 +59,6 @@ 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}
@ -80,11 +66,13 @@ with "%{_libexecdir}/%{name}/test".
find t/ -type f -exec \
perl -MExtUtils::MakeMaker -e 'ExtUtils::MM_Unix->fixin(qw{{}})' \;
# 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
# 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
%build
perl Makefile.PL INSTALLDIRS=vendor
@ -94,14 +82,6 @@ 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
@ -122,71 +102,13 @@ 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
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.991-7
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Fri Oct 25 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
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.987-27
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.987-26
- Perl 5.34 rebuild
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.987-26
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.987-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

Loading…
Cancel
Save