commit 3abd8fe243a23f7eb4ba31a88f808d003f933675 Author: MSVSphere Packaging Team Date: Fri Oct 25 17:38:47 2024 +0300 import perl-Class-Method-Modifiers-2.15-6.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2b76edf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Class-Method-Modifiers-2.15.tar.gz diff --git a/.perl-Class-Method-Modifiers.metadata b/.perl-Class-Method-Modifiers.metadata new file mode 100644 index 0000000..97cd981 --- /dev/null +++ b/.perl-Class-Method-Modifiers.metadata @@ -0,0 +1 @@ +119e7790d9677ab5e0ef876ae9ed49c663a1126e SOURCES/Class-Method-Modifiers-2.15.tar.gz diff --git a/SPECS/perl-Class-Method-Modifiers.spec b/SPECS/perl-Class-Method-Modifiers.spec new file mode 100644 index 0000000..2ec4d69 --- /dev/null +++ b/SPECS/perl-Class-Method-Modifiers.spec @@ -0,0 +1,358 @@ +# Run optional tests +%if ! (0%{?rhel}) +%{bcond_without perl_Class_Method_Modifiers_enables_optional_test} +%else +%{bcond_with perl_Class_Method_Modifiers_enables_optional_test} +%endif + +Name: perl-Class-Method-Modifiers +Summary: Provides Moose-like method modifiers +Version: 2.15 +Release: 6%{?dist} +License: GPL-1.0-or-later OR Artistic-1.0-Perl +URL: https://metacpan.org/release/Class-Method-Modifiers +Source0: https://cpan.metacpan.org/modules/by-module/Class/Class-Method-Modifiers-%{version}.tar.gz +BuildArch: noarch +# Module Build +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Module Runtime +BuildRequires: perl(B) +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +# Test Suite +BuildRequires: perl(File::Spec) +BuildRequires: perl(if) +BuildRequires: perl(Test::More) >= 0.88 +# Optional Test Requirements +%if %{with perl_Class_Method_Modifiers_enables_optional_test} +BuildRequires: perl(CPAN::Meta) >= 2.120900 +%endif +# Runtime +Requires: perl(B) +Requires: perl(Carp) + +# Avoid doc-file dependencies +%{?perl_default_filter} + +%description +Method modifiers are a powerful feature from the CLOS (Common Lisp Object +System) world. + +In its most basic form, a method modifier is just a method that calls +'$self->SUPER::foo(@_)'. I for one have trouble remembering that exact +invocation, so my classes seldom re-dispatch to their base classes. Very +bad! + +'Class::Method::Modifiers' provides three modifiers: 'before', 'around', +and 'after'. 'before' and 'after' are run just before and after the method +they modify, but can not really affect that original method. 'around' is +run in place of the original method, with a hook to easily call that +original method. See the 'MODIFIERS' section for more details on how the +particular modifiers work. + +%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 Class-Method-Modifiers-%{version} +# 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 +unset AUTHOR_TESTING +cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" +EOF +chmod +x %{buildroot}%{_libexecdir}/%{name}/test + +%check +make test + +%files +%license LICENSE +%doc Changes CONTRIBUTING README t/ +%{perl_vendorlib}/Class/ +%{_mandir}/man3/Class::Method::Modifiers.3* + +%files tests +%{_libexecdir}/%{name} + +%changelog +* Fri Oct 25 2024 MSVSphere Packaging Team - 2.15-6 +- Rebuilt for MSVSphere 10 + +* Thu Jun 27 2024 Jitka Plesnikova - 2.15-6 +- Package tests + +* Mon Jun 24 2024 Troy Dawson - 2.15-5 +- Bump release for June 2024 mass rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 2.15-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 2.15-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 2.15-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Mar 6 2023 Paul Howarth - 2.15-1 +- Update to 2.15 (rhbz#2175585) + - Localize $SIG{__DIE__} before calling eval (CPAN RT#146848) + +* Fri Jan 20 2023 Fedora Release Engineering - 2.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Jan 17 2023 Paul Howarth - 2.14-1 +- Update to 2.14 (rhbz#2161420) + - Remove Test::Fatal and Test::Needs from test prereqs (GH#7, GH#8) +- Use SPDX-format license tag + +* Fri Jul 22 2022 Fedora Release Engineering - 2.13-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jun 03 2022 Jitka Plesnikova - 2.13-12 +- Perl 5.36 re-rebuild of bootstrapped packages + +* Tue May 31 2022 Jitka Plesnikova - 2.13-11 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 2.13-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 2.13-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon May 24 2021 Jitka Plesnikova - 2.13-8 +- Perl 5.34 re-rebuild of bootstrapped packages + +* Fri May 21 2021 Jitka Plesnikova - 2.13-7 +- Perl 5.34 rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 2.13-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 2.13-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jun 26 2020 Jitka Plesnikova - 2.13-4 +- Perl 5.32 re-rebuild of bootstrapped packages + +* Tue Jun 23 2020 Jitka Plesnikova - 2.13-3 +- Perl 5.32 rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 2.13-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Aug 12 2019 Paul Howarth - 2.13-1 +- Update to 2.13 + - Bypass prototypes when testing for lvalue attribute + - Fixed a class name in tests to avoid conflicting with a core module + +* Fri Jul 26 2019 Fedora Release Engineering - 2.12-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Jun 02 2019 Jitka Plesnikova - 2.12-14 +- Perl 5.30 re-rebuild of bootstrapped packages + +* Fri May 31 2019 Jitka Plesnikova - 2.12-13 +- Perl 5.30 rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 2.12-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 2.12-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sat Jun 30 2018 Jitka Plesnikova - 2.12-10 +- Perl 5.28 re-rebuild of bootstrapped packages + +* Thu Jun 28 2018 Jitka Plesnikova - 2.12-9 +- Perl 5.28 rebuild + +* Thu Feb 08 2018 Fedora Release Engineering - 2.12-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 2.12-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Jun 07 2017 Jitka Plesnikova - 2.12-6 +- Perl 5.26 re-rebuild of bootstrapped packages + +* Mon Jun 05 2017 Jitka Plesnikova - 2.12-5 +- Perl 5.26 rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 2.12-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed May 18 2016 Jitka Plesnikova - 2.12-3 +- Perl 5.24 re-rebuild of bootstrapped packages + +* Sun May 15 2016 Jitka Plesnikova - 2.12-2 +- Perl 5.24 rebuild + +* Sat Mar 05 2016 Petr Šabata - 2.12-1 +- 2.12 bump, documentation fixes +- %%license is now supported in EPEL too + +* Thu Feb 04 2016 Fedora Release Engineering - 2.11-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 2.11-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Jun 10 2015 Jitka Plesnikova - 2.11-5 +- Perl 5.22 re-rebuild of bootstrapped packages + +* Sat Jun 06 2015 Jitka Plesnikova - 2.11-4 +- Perl 5.22 rebuild + +* Sun Sep 07 2014 Jitka Plesnikova - 2.11-3 +- Perl 5.20 re-rebuild of bootstrapped packages + +* Fri Sep 05 2014 Jitka Plesnikova - 2.11-2 +- Perl 5.20 rebuild + +* Thu Sep 4 2014 Paul Howarth - 2.11-1 +- Update to 2.11 + - Add documentation for modifying multiple methods at once (GitHub #2) +- Use %%license where possible + +* Fri Aug 29 2014 Jitka Plesnikova - 2.10-3 +- Perl 5.20 rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 2.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Mar 16 2014 Paul Howarth - 2.10-1 +- Update to 2.10 + - Remove erroneous perl 5.8 requirement + - Support for handling lvalue methods + - Convert to building with Dist::Zilla + - Repository migrated to the github moose organization + - Refresh configure_requires checking in generated Makefile.PL + - New CONTRIBUTING file + - Updated tests: + - Compile test now only runs for authors + - Check-deps test replaced by information-only report-prereqs test +- Drop obsoletes/provides for old tests sub-package +- Drop redundant Group tag +- Classify buildreqs by usage +- Make %%files list more explicit + +* Sat Aug 03 2013 Fedora Release Engineering - 2.03-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Aug 02 2013 Petr Pisar - 2.03-2 +- Perl 5.18 rebuild + +* Fri Feb 15 2013 Iain Arnell 2.03-1 +- update to latest upstream version + +* Thu Feb 14 2013 Fedora Release Engineering - 2.00-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Jan 05 2013 Iain Arnell 2.00-1 +- update to latest upstream version + +* Sun Oct 28 2012 Iain Arnell 1.12-1 +- update to latest upstream version + +* Sat Oct 27 2012 Iain Arnell 1.10-1 +- update to latest upstream version + +* Fri Jul 20 2012 Fedora Release Engineering - 1.09-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jun 22 2012 Petr Pisar - 1.09-2 +- Perl 5.16 rebuild + +* Tue Apr 03 2012 Iain Arnell 1.09-1 +- update to latest upstream version + +* Sun Jan 22 2012 Iain Arnell 1.08-3 +- drop tests subpackage; move tests to main package documentation + +* Tue Jan 17 2012 Iain Arnell - 1.08-2 +- rebuilt again for F17 mass rebuild + +* Fri Jan 13 2012 Iain Arnell 1.08-1 +- update to latest upstream version + +* Fri Jan 13 2012 Fedora Release Engineering - 1.07-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Jun 21 2011 Marcela Mašláňová - 1.07-2 +- Perl mass rebuild + +* Sun Mar 13 2011 Iain Arnell 1.07-1 +- update to latest upstream version +- clean up spec for modern rpmbuild + +* Tue Feb 08 2011 Fedora Release Engineering - 1.05-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Dec 15 2010 Marcela Maslanova - 1.05-3 +- 661697 rebuild for fixing problems with vendorach/lib + +* Fri Apr 30 2010 Marcela Maslanova - 1.05-2 +- Mass rebuild with perl-5.12.0 + +* Mon Mar 01 2010 Chris Weyl 1.05-1 +- update by Fedora::App::MaintainerTools 0.004 +- PERL_INSTALL_ROOT => DESTDIR + +* Fri Dec 4 2009 Stepan Kasal - 1.04-2 +- rebuild against perl 5.10.1 + +* Fri Jul 31 2009 Chris Weyl 1.04-1 +- auto-update to 1.04 (by cpan-spec-update 0.01) + +* Sat Jul 25 2009 Fedora Release Engineering - 1.02-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Mon Jun 08 2009 Chris Weyl 1.02-1 +- auto-update to 1.02 (by cpan-spec-update 0.01) +- altered br on perl(ExtUtils::MakeMaker) (0 => 6.42) + +* Thu Feb 26 2009 Fedora Release Engineering - 1.01-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Sep 08 2008 Chris Weyl 1.01-3 +- remove MM version qualifier (F-8's is older) + +* Mon Sep 08 2008 Chris Weyl 1.01-2 +- bump + +* Sat Sep 06 2008 Chris Weyl 1.01-1 +- initial Fedora packaging +- generated with cpan2dist (CPANPLUS::Dist::Fedora version 0.0.1)