From 122a7e396a3e073cc3ff2af57c36240d5edab146 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 25 Oct 2024 18:04:35 +0300 Subject: [PATCH] import perl-Sub-Exporter-0.991-6.el10 --- .gitignore | 1 + .perl-Sub-Exporter.metadata | 1 + SPECS/perl-Sub-Exporter.spec | 375 +++++++++++++++++++++++++++++++++++ 3 files changed, 377 insertions(+) create mode 100644 .gitignore create mode 100644 .perl-Sub-Exporter.metadata create mode 100644 SPECS/perl-Sub-Exporter.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..633b349 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Sub-Exporter-0.991.tar.gz diff --git a/.perl-Sub-Exporter.metadata b/.perl-Sub-Exporter.metadata new file mode 100644 index 0000000..fd66e89 --- /dev/null +++ b/.perl-Sub-Exporter.metadata @@ -0,0 +1 @@ +0ac76d3d10bbebd74f726de073ffd42623a3c9c6 SOURCES/Sub-Exporter-0.991.tar.gz diff --git a/SPECS/perl-Sub-Exporter.spec b/SPECS/perl-Sub-Exporter.spec new file mode 100644 index 0000000..3028a85 --- /dev/null +++ b/SPECS/perl-Sub-Exporter.spec @@ -0,0 +1,375 @@ +# Run extra test +%if ! (0%{?rhel}) +%bcond_without perl_Sub_Exporter_enables_extra_test +%else +%bcond_with perl_Sub_Exporter_enables_extra_test +%endif + +Name: perl-Sub-Exporter +Version: 0.991 +Release: 6%{?dist} +Summary: Sophisticated exporter for custom-built routines +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 +# Build +BuildRequires: coreutils +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 +# 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(lib) +BuildRequires: perl(subs) +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 +# Dependencies +Requires: perl(Package::Generator) + +# Don't want doc-file provides or dependencies +%global our_docdir %{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} +%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. + +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} + +# Fix shellbangs +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 + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +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 +%if %{with perl_Sub_Exporter_enables_extra_test} +make test TEST_FILES="$(echo $(find xt/ -name '*.t'))" +%endif + +%files +%doc Changes README t/ +%dir %{perl_vendorlib}/Sub/ +%dir %{perl_vendorlib}/Sub/Exporter/ +%{perl_vendorlib}/Sub/Exporter.pm +%{perl_vendorlib}/Sub/Exporter/Util.pm +%doc %{perl_vendorlib}/Sub/Exporter/Cookbook.pod +%doc %{perl_vendorlib}/Sub/Exporter/Tutorial.pod +%{_mandir}/man3/Sub::Exporter.3* +%{_mandir}/man3/Sub::Exporter::Cookbook.3* +%{_mandir}/man3/Sub::Exporter::Tutorial.3* +%{_mandir}/man3/Sub::Exporter::Util.3* + +%files tests +%{_libexecdir}/%{name} + +%changelog +* Fri Oct 25 2024 MSVSphere Packaging Team - 0.991-6 +- Rebuilt for MSVSphere 10 + +* Mon Aug 26 2024 Jitka Plesnikova - 0.991-6 +- Fix filters of dependencies + +* Wed Aug 21 2024 Michal Josef Špaček - 0.991-5 +- Package tests + +* Mon Jun 24 2024 Troy Dawson - 0.991-4 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 0.991-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 0.991-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Nov 24 2023 Paul Howarth - 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 - 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 - 0.989-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jan 20 2023 Fedora Release Engineering - 0.989-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sun Jan 1 2023 Paul Howarth - 0.989-1 +- Update to 0.989 + - Update author contact info +- Use SPDX-format license tag + +* Fri Jul 22 2022 Fedora Release Engineering - 0.988-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue May 31 2022 Jitka Plesnikova - 0.988-4 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.988-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 0.988-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon Jun 21 2021 Paul Howarth - 0.988-1 +- Update to 0.988 + - Update author contact info + - Add perl support section to docs + +* Fri May 21 2021 Jitka Plesnikova - 0.987-26 +- Perl 5.34 rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.987-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 0.987-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jun 23 2020 Jitka Plesnikova - 0.987-23 +- Perl 5.32 rebuild + +* Tue Mar 10 2020 Paul Howarth - 0.987-22 +- BR: perl(blib) for t/00-compile.t +- Use author-independent source URL + +* Thu Jan 30 2020 Fedora Release Engineering - 0.987-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 0.987-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri May 31 2019 Jitka Plesnikova - 0.987-19 +- Perl 5.30 rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.987-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 0.987-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 28 2018 Jitka Plesnikova - 0.987-16 +- Perl 5.28 rebuild + +* Thu Apr 12 2018 Paul Howarth - 0.987-15 +- Drop some support for older distributions + - Drop BuildRoot: and Group: tags + - Drop explicit buildroot cleaning in %%install section + - Drop explicit %%clean section + - Drop workarounds for building with Test::More < 0.94 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.987-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.987-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jun 04 2017 Jitka Plesnikova - 0.987-12 +- Perl 5.26 rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.987-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Jul 22 2016 Petr Pisar - 0.987-10 +- Adjust RPM version detection to SRPM build root without perl + +* Sun May 15 2016 Jitka Plesnikova - 0.987-9 +- Perl 5.24 rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 0.987-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jan 7 2016 Paul Howarth - 0.987-7 +- Don't use %%define + +* Thu Jun 18 2015 Fedora Release Engineering - 0.987-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri Jun 05 2015 Jitka Plesnikova - 0.987-5 +- Perl 5.22 rebuild + +* Fri Jan 16 2015 Petr Pisar - 0.987-4 +- Do not hard-code interpreter name + +* Wed Aug 27 2014 Jitka Plesnikova - 0.987-3 +- Perl 5.20 rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.987-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Oct 19 2013 Paul Howarth - 0.987-1 +- Update to 0.987 (update bugtracker metadata) +- Update patches as needed + +* Sun Aug 04 2013 Fedora Release Engineering - 0.986-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 31 2013 Paul Howarth - 0.986-3 +- Handle filtering of provides/requires from unversioned doc-dirs from F-20 + +* Sun Jul 21 2013 Petr Pisar - 0.986-2 +- Perl 5.18 rebuild + +* Sat Jun 15 2013 Paul Howarth - 0.986-1 +- Update to 0.986 (typo fixes in docs) +- Use metacpan URLs + +* Thu Feb 21 2013 Paul Howarth - 0.985-1 +- Update to 0.985 (documentation fixes) +- Add patch to support building with Test::More < 0.88 +- Run the extra tests too +- BR: perl(File::Find) and perl(File::Temp) for test suite +- BR: perl(Test::Pod) for the extra tests + +* Thu Feb 14 2013 Fedora Release Engineering - 0.984-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Mon Oct 29 2012 Petr Pisar - 0.984-4 +- Specify all dependencies + +* Fri Jul 20 2012 Fedora Release Engineering - 0.984-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed Jun 13 2012 Petr Pisar - 0.984-2 +- Perl 5.16 rebuild + +* Tue Jun 5 2012 Paul Howarth - 0.984-1 +- Update to 0.984 (documentation fixes) +- Add filters for provides/requires from the test suite +- BR: perl(base) and perl(Exporter) for the test suite + +* Sun Mar 18 2012 Paul Howarth - 0.982-11 +- Drop %%defattr, redundant since rpm 4.4 + +* Sat Mar 3 2012 Paul Howarth - 0.982-10 +- Explicitly require perl(Package::Generator) +- Make %%files list more explicit +- Mark POD files as %%doc +- Use DESTDIR rather than PERL_INSTALL_ROOT +- Don't need to remove empty directories from buildroot +- Don't use macros for commands +- Use tabs + +* Fri Jan 13 2012 Fedora Release Engineering - 0.982-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Jun 29 2011 Marcela Mašláňová - 0.982-8 +- Perl mass rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 0.982-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Dec 22 2010 Marcela Maslanova - 0.982-6 +- Rebuild to fix problems with vendorarch/lib (#661697) + +* Thu May 06 2010 Marcela Maslanova - 0.982-5 +- Mass rebuild with perl-5.12.0 + +* Mon Dec 7 2009 Stepan Kasal - 0.982-4 +- Rebuild against perl 5.10.1 + +* Sun Jul 26 2009 Fedora Release Engineering - 0.982-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 0.982-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Feb 11 2009 Chris Weyl - 0.982-1 +- Update to 0.982 + +* Sun Oct 26 2008 Chris Weyl - 0.981-1 +- Update to 0.981 + +* Thu Oct 23 2008 Chris Weyl - 0.980-1 +- Update to 0.980 + +* Mon Jun 30 2008 Chris Weyl - 0.979-1 +- Update to 0.979 +- Drop BR's on: perl(Test::Pod::Coverage), perl(Test::Pod) + +* Wed Feb 27 2008 Tom "spot" Callaway - 0.978-2 +- Rebuild for perl 5.10 (again) + +* Thu Jan 24 2008 Tom "spot" Callaway - 0.978-1 +- Update to 0.978 +- Fix license tag +- Rebuild for new perl + +* Thu Aug 09 2007 Chris Weyl - 0.975-1 +- Update to 0.975 + +* Fri Jun 01 2007 Chris Weyl - 0.974-1 +- Update to 0.974 + +* Sat Dec 09 2006 Chris Weyl - 0.972-1 +- Update to 0.972 + +* Thu Sep 07 2006 Chris Weyl - 0.970-2 +- Bump + +* Sat Sep 02 2006 Chris Weyl - 0.970-1 +- Specfile autogenerated by cpanspec 1.69.1