|
|
0bd858 |
# Run optional tests
|
|
|
0bd858 |
%if ! (0%{?rhel})
|
|
|
0bd858 |
%{bcond_without perl_Class_Method_Modifiers_enables_optional_test}
|
|
|
0bd858 |
%else
|
|
|
0bd858 |
%{bcond_with perl_Class_Method_Modifiers_enables_optional_test}
|
|
|
0bd858 |
%endif
|
|
|
0bd858 |
|
|
|
0bd858 |
Name: perl-Class-Method-Modifiers
|
|
|
0bd858 |
Summary: Provides Moose-like method modifiers
|
|
|
0bd858 |
Version: 2.12
|
|
|
0bd858 |
Release: 8%{?dist}
|
|
|
0bd858 |
License: GPL+ or Artistic
|
|
|
0bd858 |
URL: http://search.cpan.org/dist/Class-Method-Modifiers
|
|
|
0bd858 |
Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Class-Method-Modifiers-%{version}.tar.gz
|
|
|
0bd858 |
BuildArch: noarch
|
|
|
0bd858 |
# Module Build
|
|
|
0bd858 |
BuildRequires: coreutils
|
|
|
0bd858 |
BuildRequires: findutils
|
|
|
0bd858 |
BuildRequires: make
|
|
|
0bd858 |
BuildRequires: perl-interpreter
|
|
|
0bd858 |
BuildRequires: perl-generators
|
|
|
0bd858 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
0bd858 |
BuildRequires: perl(strict)
|
|
|
0bd858 |
BuildRequires: perl(warnings)
|
|
|
0bd858 |
# Module Runtime
|
|
|
0bd858 |
BuildRequires: perl(B)
|
|
|
0bd858 |
BuildRequires: perl(base)
|
|
|
0bd858 |
BuildRequires: perl(Carp)
|
|
|
0bd858 |
BuildRequires: perl(Exporter)
|
|
|
0bd858 |
# Test Suite
|
|
|
0bd858 |
BuildRequires: perl(File::Spec)
|
|
|
0bd858 |
BuildRequires: perl(if)
|
|
|
0bd858 |
BuildRequires: perl(Test::Fatal)
|
|
|
0bd858 |
BuildRequires: perl(Test::More) >= 0.88
|
|
|
0bd858 |
BuildRequires: perl(Test::Requires)
|
|
|
0bd858 |
# Optional Test Requirements
|
|
|
0bd858 |
%if 0%{!?perl_bootstrap:1} && %{with perl_Class_Method_Modifiers_enables_optional_test}
|
|
|
0bd858 |
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
|
|
0bd858 |
BuildRequires: perl(Moose)
|
|
|
0bd858 |
%endif
|
|
|
0bd858 |
# Runtime
|
|
|
0bd858 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
0bd858 |
Requires: perl(B)
|
|
|
0bd858 |
Requires: perl(Carp)
|
|
|
0bd858 |
Requires: perl(Exporter)
|
|
|
0bd858 |
|
|
|
0bd858 |
# Avoid doc-file dependencies
|
|
|
0bd858 |
%{?perl_default_filter}
|
|
|
0bd858 |
|
|
|
0bd858 |
%description
|
|
|
0bd858 |
Method modifiers are a powerful feature from the CLOS (Common Lisp Object
|
|
|
0bd858 |
System) world.
|
|
|
0bd858 |
|
|
|
0bd858 |
In its most basic form, a method modifier is just a method that calls
|
|
|
0bd858 |
'$self->SUPER::foo(@_)'. I for one have trouble remembering that exact
|
|
|
0bd858 |
invocation, so my classes seldom re-dispatch to their base classes. Very
|
|
|
0bd858 |
bad!
|
|
|
0bd858 |
|
|
|
0bd858 |
'Class::Method::Modifiers' provides three modifiers: 'before', 'around',
|
|
|
0bd858 |
and 'after'. 'before' and 'after' are run just before and after the method
|
|
|
0bd858 |
they modify, but can not really affect that original method. 'around' is
|
|
|
0bd858 |
run in place of the original method, with a hook to easily call that
|
|
|
0bd858 |
original method. See the 'MODIFIERS' section for more details on how the
|
|
|
0bd858 |
particular modifiers work.
|
|
|
0bd858 |
|
|
|
0bd858 |
%prep
|
|
|
0bd858 |
%setup -q -n Class-Method-Modifiers-%{version}
|
|
|
0bd858 |
|
|
|
0bd858 |
# Drop unnecessary exec permissions from test files
|
|
|
0bd858 |
chmod -c -x t/*.t
|
|
|
0bd858 |
|
|
|
0bd858 |
%build
|
|
|
0bd858 |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
0bd858 |
make %{?_smp_mflags}
|
|
|
0bd858 |
|
|
|
0bd858 |
%install
|
|
|
0bd858 |
make pure_install DESTDIR=%{buildroot}
|
|
|
0bd858 |
find %{buildroot} -type f -name .packlist -delete
|
|
|
0bd858 |
%{_fixperms} %{buildroot}
|
|
|
0bd858 |
|
|
|
0bd858 |
%check
|
|
|
0bd858 |
make test
|
|
|
0bd858 |
|
|
|
0bd858 |
%files
|
|
|
0bd858 |
%license LICENSE
|
|
|
0bd858 |
%doc Changes CONTRIBUTING README t/
|
|
|
0bd858 |
%{perl_vendorlib}/Class/
|
|
|
0bd858 |
%{_mandir}/man3/Class::Method::Modifiers.3*
|
|
|
0bd858 |
|
|
|
0bd858 |
%changelog
|
|
|
0bd858 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.12-8
|
|
|
0bd858 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.12-7
|
|
|
0bd858 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.12-6
|
|
|
0bd858 |
- Perl 5.26 re-rebuild of bootstrapped packages
|
|
|
0bd858 |
|
|
|
0bd858 |
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.12-5
|
|
|
0bd858 |
- Perl 5.26 rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.12-4
|
|
|
0bd858 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.12-3
|
|
|
0bd858 |
- Perl 5.24 re-rebuild of bootstrapped packages
|
|
|
0bd858 |
|
|
|
0bd858 |
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.12-2
|
|
|
0bd858 |
- Perl 5.24 rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Sat Mar 05 2016 Petr Šabata <contyk@redhat.com> - 2.12-1
|
|
|
0bd858 |
- 2.12 bump, documentation fixes
|
|
|
0bd858 |
- %%license is now supported in EPEL too
|
|
|
0bd858 |
|
|
|
0bd858 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.11-7
|
|
|
0bd858 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-6
|
|
|
0bd858 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.11-5
|
|
|
0bd858 |
- Perl 5.22 re-rebuild of bootstrapped packages
|
|
|
0bd858 |
|
|
|
0bd858 |
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.11-4
|
|
|
0bd858 |
- Perl 5.22 rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.11-3
|
|
|
0bd858 |
- Perl 5.20 re-rebuild of bootstrapped packages
|
|
|
0bd858 |
|
|
|
0bd858 |
* Fri Sep 05 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.11-2
|
|
|
0bd858 |
- Perl 5.20 rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Thu Sep 4 2014 Paul Howarth <paul@city-fan.org> <paul@city-fan.org> - 2.11-1
|
|
|
0bd858 |
- Update to 2.11
|
|
|
0bd858 |
- Add documentation for modifying multiple methods at once (GitHub #2)
|
|
|
0bd858 |
- Use %%license where possible
|
|
|
0bd858 |
|
|
|
0bd858 |
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.10-3
|
|
|
0bd858 |
- Perl 5.20 rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10-2
|
|
|
0bd858 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Sun Mar 16 2014 Paul Howarth <paul@city-fan.org> <paul@city-fan.org> - 2.10-1
|
|
|
0bd858 |
- Update to 2.10
|
|
|
0bd858 |
- Remove erroneous perl 5.8 requirement
|
|
|
0bd858 |
- Support for handling lvalue methods
|
|
|
0bd858 |
- Convert to building with Dist::Zilla
|
|
|
0bd858 |
- Repository migrated to the github moose organization
|
|
|
0bd858 |
- Refresh configure_requires checking in generated Makefile.PL
|
|
|
0bd858 |
- New CONTRIBUTING file
|
|
|
0bd858 |
- Updated tests:
|
|
|
0bd858 |
- Compile test now only runs for authors
|
|
|
0bd858 |
- Check-deps test replaced by information-only report-prereqs test
|
|
|
0bd858 |
- Drop obsoletes/provides for old tests sub-package
|
|
|
0bd858 |
- Drop redundant Group tag
|
|
|
0bd858 |
- Classify buildreqs by usage
|
|
|
0bd858 |
- Make %%files list more explicit
|
|
|
0bd858 |
|
|
|
0bd858 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.03-3
|
|
|
0bd858 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Fri Aug 02 2013 Petr Pisar <ppisar@redhat.com> - 2.03-2
|
|
|
0bd858 |
- Perl 5.18 rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Fri Feb 15 2013 Iain Arnell <iarnell@gmail.com> 2.03-1
|
|
|
0bd858 |
- update to latest upstream version
|
|
|
0bd858 |
|
|
|
0bd858 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.00-2
|
|
|
0bd858 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Sat Jan 05 2013 Iain Arnell <iarnell@gmail.com> 2.00-1
|
|
|
0bd858 |
- update to latest upstream version
|
|
|
0bd858 |
|
|
|
0bd858 |
* Sun Oct 28 2012 Iain Arnell <iarnell@gmail.com> 1.12-1
|
|
|
0bd858 |
- update to latest upstream version
|
|
|
0bd858 |
|
|
|
0bd858 |
* Sat Oct 27 2012 Iain Arnell <iarnell@gmail.com> 1.10-1
|
|
|
0bd858 |
- update to latest upstream version
|
|
|
0bd858 |
|
|
|
0bd858 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-3
|
|
|
0bd858 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Fri Jun 22 2012 Petr Pisar <ppisar@redhat.com> - 1.09-2
|
|
|
0bd858 |
- Perl 5.16 rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Tue Apr 03 2012 Iain Arnell <iarnell@gmail.com> 1.09-1
|
|
|
0bd858 |
- update to latest upstream version
|
|
|
0bd858 |
|
|
|
0bd858 |
* Sun Jan 22 2012 Iain Arnell <iarnell@gmail.com> 1.08-3
|
|
|
0bd858 |
- drop tests subpackage; move tests to main package documentation
|
|
|
0bd858 |
|
|
|
0bd858 |
* Tue Jan 17 2012 Iain Arnell <iarnell@gmail.com> - 1.08-2
|
|
|
0bd858 |
- rebuilt again for F17 mass rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Fri Jan 13 2012 Iain Arnell <iarnell@gmail.com> 1.08-1
|
|
|
0bd858 |
- update to latest upstream version
|
|
|
0bd858 |
|
|
|
0bd858 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-3
|
|
|
0bd858 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.07-2
|
|
|
0bd858 |
- Perl mass rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Sun Mar 13 2011 Iain Arnell <iarnell@gmail.com> 1.07-1
|
|
|
0bd858 |
- update to latest upstream version
|
|
|
0bd858 |
- clean up spec for modern rpmbuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.05-4
|
|
|
0bd858 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.05-3
|
|
|
0bd858 |
- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
0bd858 |
|
|
|
0bd858 |
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.05-2
|
|
|
0bd858 |
- Mass rebuild with perl-5.12.0
|
|
|
0bd858 |
|
|
|
0bd858 |
* Mon Mar 01 2010 Chris Weyl <cweyl@alumni.drew.edu> 1.05-1
|
|
|
0bd858 |
- update by Fedora::App::MaintainerTools 0.004
|
|
|
0bd858 |
- PERL_INSTALL_ROOT => DESTDIR
|
|
|
0bd858 |
|
|
|
0bd858 |
* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 1.04-2
|
|
|
0bd858 |
- rebuild against perl 5.10.1
|
|
|
0bd858 |
|
|
|
0bd858 |
* Fri Jul 31 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.04-1
|
|
|
0bd858 |
- auto-update to 1.04 (by cpan-spec-update 0.01)
|
|
|
0bd858 |
|
|
|
0bd858 |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.02-2
|
|
|
0bd858 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Mon Jun 08 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.02-1
|
|
|
0bd858 |
- auto-update to 1.02 (by cpan-spec-update 0.01)
|
|
|
0bd858 |
- altered br on perl(ExtUtils::MakeMaker) (0 => 6.42)
|
|
|
0bd858 |
|
|
|
0bd858 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-4
|
|
|
0bd858 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
0bd858 |
|
|
|
0bd858 |
* Mon Sep 08 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.01-3
|
|
|
0bd858 |
- remove MM version qualifier (F-8's is older)
|
|
|
0bd858 |
|
|
|
0bd858 |
* Mon Sep 08 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.01-2
|
|
|
0bd858 |
- bump
|
|
|
0bd858 |
|
|
|
0bd858 |
* Sat Sep 06 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.01-1
|
|
|
0bd858 |
- initial Fedora packaging
|
|
|
0bd858 |
- generated with cpan2dist (CPANPLUS::Dist::Fedora version 0.0.1)
|