2017-04-28 10:08:30 +00:00
|
|
|
# Run optional tests
|
2018-04-05 07:49:54 +00:00
|
|
|
%if ! (0%{?rhel})
|
2017-04-28 10:08:30 +00:00
|
|
|
%{bcond_without perl_Class_Method_Modifiers_enables_optional_test}
|
2018-04-05 07:49:54 +00:00
|
|
|
%else
|
|
|
|
%{bcond_with perl_Class_Method_Modifiers_enables_optional_test}
|
|
|
|
%endif
|
2017-04-28 10:08:30 +00:00
|
|
|
|
2010-03-01 08:14:05 +00:00
|
|
|
Name: perl-Class-Method-Modifiers
|
|
|
|
Summary: Provides Moose-like method modifiers
|
2016-03-05 10:47:41 +00:00
|
|
|
Version: 2.12
|
2018-07-13 16:22:17 +00:00
|
|
|
Release: 11%{?dist}
|
2010-03-01 08:14:05 +00:00
|
|
|
License: GPL+ or Artistic
|
2018-06-04 12:35:09 +00:00
|
|
|
URL: https://metacpan.org/release/Class-Method-Modifiers
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/Class-Method-Modifiers-%{version}.tar.gz
|
2010-03-01 08:14:05 +00:00
|
|
|
BuildArch: noarch
|
2014-03-16 12:04:35 +00:00
|
|
|
# Module Build
|
2016-03-05 10:47:41 +00:00
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: findutils
|
|
|
|
BuildRequires: make
|
2017-07-12 12:19:46 +00:00
|
|
|
BuildRequires: perl-interpreter
|
2016-06-24 08:34:21 +00:00
|
|
|
BuildRequires: perl-generators
|
2014-09-04 14:27:25 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
2016-03-05 10:47:41 +00:00
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(warnings)
|
2014-03-16 12:04:35 +00:00
|
|
|
# Module Runtime
|
|
|
|
BuildRequires: perl(B)
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
# Test Suite
|
2014-09-04 14:27:25 +00:00
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
BuildRequires: perl(if)
|
2011-03-13 09:24:56 +00:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
2014-03-16 12:04:35 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2014-09-04 14:27:25 +00:00
|
|
|
BuildRequires: perl(Test::Requires)
|
2014-03-16 12:04:35 +00:00
|
|
|
# Optional Test Requirements
|
2017-04-28 10:08:30 +00:00
|
|
|
%if 0%{!?perl_bootstrap:1} && %{with perl_Class_Method_Modifiers_enables_optional_test}
|
2014-09-04 14:27:25 +00:00
|
|
|
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
2014-03-16 12:04:35 +00:00
|
|
|
BuildRequires: perl(Moose)
|
|
|
|
%endif
|
|
|
|
# Runtime
|
2014-09-04 14:27:25 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
2014-03-16 12:04:35 +00:00
|
|
|
Requires: perl(B)
|
|
|
|
Requires: perl(Carp)
|
|
|
|
Requires: perl(Exporter)
|
2010-03-01 08:14:05 +00:00
|
|
|
|
2014-03-16 12:04:35 +00:00
|
|
|
# Avoid doc-file dependencies
|
2010-03-01 08:14:05 +00:00
|
|
|
%{?perl_default_filter}
|
2008-09-08 18:29:01 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Class-Method-Modifiers-%{version}
|
|
|
|
|
2014-03-16 12:04:35 +00:00
|
|
|
# Drop unnecessary exec permissions from test files
|
|
|
|
chmod -c -x t/*.t
|
|
|
|
|
2008-09-08 18:29:01 +00:00
|
|
|
%build
|
2014-09-04 14:27:25 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2008-09-08 18:29:01 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2010-03-01 08:14:05 +00:00
|
|
|
make pure_install DESTDIR=%{buildroot}
|
2016-03-05 10:47:41 +00:00
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
2014-03-16 12:04:35 +00:00
|
|
|
%{_fixperms} %{buildroot}
|
2008-09-08 18:29:01 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%files
|
2014-09-04 14:27:25 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc Changes CONTRIBUTING README t/
|
2014-03-16 12:04:35 +00:00
|
|
|
%{perl_vendorlib}/Class/
|
|
|
|
%{_mandir}/man3/Class::Method::Modifiers.3*
|
2008-09-08 18:29:01 +00:00
|
|
|
|
|
|
|
%changelog
|
2018-07-13 16:22:17 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.12-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-30 19:46:45 +00:00
|
|
|
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.12-10
|
|
|
|
- Perl 5.28 re-rebuild of bootstrapped packages
|
|
|
|
|
2018-06-28 16:01:09 +00:00
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.12-9
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
2018-02-08 19:40:28 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.12-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-07-27 03:02:06 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.12-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-07 14:17:03 +00:00
|
|
|
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.12-6
|
|
|
|
- Perl 5.26 re-rebuild of bootstrapped packages
|
|
|
|
|
2017-06-05 10:54:59 +00:00
|
|
|
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.12-5
|
|
|
|
- Perl 5.26 rebuild
|
|
|
|
|
2017-02-11 02:08:41 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.12-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-05-18 16:50:43 +00:00
|
|
|
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.12-3
|
|
|
|
- Perl 5.24 re-rebuild of bootstrapped packages
|
|
|
|
|
2016-05-15 13:05:01 +00:00
|
|
|
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.12-2
|
|
|
|
- Perl 5.24 rebuild
|
|
|
|
|
2016-03-05 10:47:41 +00:00
|
|
|
* Sat Mar 05 2016 Petr Šabata <contyk@redhat.com> - 2.12-1
|
|
|
|
- 2.12 bump, documentation fixes
|
|
|
|
- %%license is now supported in EPEL too
|
|
|
|
|
2016-02-04 12:46:34 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.11-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-18 01:57:43 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-06-10 13:06:31 +00:00
|
|
|
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.11-5
|
|
|
|
- Perl 5.22 re-rebuild of bootstrapped packages
|
|
|
|
|
2015-06-06 08:43:55 +00:00
|
|
|
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.11-4
|
|
|
|
- Perl 5.22 rebuild
|
|
|
|
|
2014-09-08 20:13:21 +00:00
|
|
|
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.11-3
|
|
|
|
- Perl 5.20 re-rebuild of bootstrapped packages
|
|
|
|
|
2014-09-05 14:56:54 +00:00
|
|
|
* Fri Sep 05 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.11-2
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
2014-09-04 14:27:25 +00:00
|
|
|
* Thu Sep 4 2014 Paul Howarth <paul@city-fan.org> <paul@city-fan.org> - 2.11-1
|
|
|
|
- Update to 2.11
|
|
|
|
- Add documentation for modifying multiple methods at once (GitHub #2)
|
|
|
|
- Use %%license where possible
|
|
|
|
|
2014-08-29 00:39:52 +00:00
|
|
|
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.10-3
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
2014-06-07 01:59:28 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-03-16 12:04:35 +00:00
|
|
|
* Sun Mar 16 2014 Paul Howarth <paul@city-fan.org> <paul@city-fan.org> - 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
|
|
|
|
|
2013-08-03 18:42:00 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.03-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-08-02 15:49:49 +00:00
|
|
|
* Fri Aug 02 2013 Petr Pisar <ppisar@redhat.com> - 2.03-2
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-02-15 17:05:23 +00:00
|
|
|
* Fri Feb 15 2013 Iain Arnell <iarnell@gmail.com> 2.03-1
|
|
|
|
- update to latest upstream version
|
|
|
|
|
2013-02-14 11:01:37 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.00-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2013-01-05 19:06:18 +00:00
|
|
|
* Sat Jan 05 2013 Iain Arnell <iarnell@gmail.com> 2.00-1
|
|
|
|
- update to latest upstream version
|
|
|
|
|
2012-10-28 15:01:41 +00:00
|
|
|
* Sun Oct 28 2012 Iain Arnell <iarnell@gmail.com> 1.12-1
|
|
|
|
- update to latest upstream version
|
|
|
|
|
2012-10-27 15:32:10 +00:00
|
|
|
* Sat Oct 27 2012 Iain Arnell <iarnell@gmail.com> 1.10-1
|
|
|
|
- update to latest upstream version
|
|
|
|
|
2012-07-20 13:10:32 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-22 07:21:41 +00:00
|
|
|
* Fri Jun 22 2012 Petr Pisar <ppisar@redhat.com> - 1.09-2
|
|
|
|
- Perl 5.16 rebuild
|
|
|
|
|
2012-04-03 13:01:05 +00:00
|
|
|
* Tue Apr 03 2012 Iain Arnell <iarnell@gmail.com> 1.09-1
|
|
|
|
- update to latest upstream version
|
|
|
|
|
2012-01-22 08:47:27 +00:00
|
|
|
* Sun Jan 22 2012 Iain Arnell <iarnell@gmail.com> 1.08-3
|
|
|
|
- drop tests subpackage; move tests to main package documentation
|
|
|
|
|
2012-01-17 04:41:00 +00:00
|
|
|
* Tue Jan 17 2012 Iain Arnell <iarnell@gmail.com> - 1.08-2
|
|
|
|
- rebuilt again for F17 mass rebuild
|
|
|
|
|
2012-01-13 15:52:43 +00:00
|
|
|
* Fri Jan 13 2012 Iain Arnell <iarnell@gmail.com> 1.08-1
|
|
|
|
- update to latest upstream version
|
|
|
|
|
2012-01-13 12:56:46 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-06-21 02:48:59 +00:00
|
|
|
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.07-2
|
|
|
|
- Perl mass rebuild
|
|
|
|
|
2011-03-13 09:24:56 +00:00
|
|
|
* Sun Mar 13 2011 Iain Arnell <iarnell@gmail.com> 1.07-1
|
|
|
|
- update to latest upstream version
|
|
|
|
- clean up spec for modern rpmbuild
|
|
|
|
|
2011-02-08 19:16:42 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.05-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-12-15 16:52:06 +00:00
|
|
|
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.05-3
|
|
|
|
- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
|
|
2010-04-30 10:02:04 +00:00
|
|
|
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.05-2
|
|
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
|
2010-03-01 08:14:05 +00:00
|
|
|
* Mon Mar 01 2010 Chris Weyl <cweyl@alumni.drew.edu> 1.05-1
|
|
|
|
- update by Fedora::App::MaintainerTools 0.004
|
|
|
|
- PERL_INSTALL_ROOT => DESTDIR
|
|
|
|
|
2009-12-04 02:01:49 +00:00
|
|
|
* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 1.04-2
|
|
|
|
- rebuild against perl 5.10.1
|
|
|
|
|
2009-07-31 07:19:17 +00:00
|
|
|
* Fri Jul 31 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.04-1
|
|
|
|
- auto-update to 1.04 (by cpan-spec-update 0.01)
|
|
|
|
|
2009-07-26 04:30:33 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.02-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-06-08 05:52:44 +00:00
|
|
|
* Mon Jun 08 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.02-1
|
|
|
|
- auto-update to 1.02 (by cpan-spec-update 0.01)
|
|
|
|
- altered br on perl(ExtUtils::MakeMaker) (0 => 6.42)
|
|
|
|
|
2009-02-26 13:08:09 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-09-08 21:14:36 +00:00
|
|
|
* Mon Sep 08 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.01-3
|
|
|
|
- remove MM version qualifier (F-8's is older)
|
|
|
|
|
2008-09-08 18:34:51 +00:00
|
|
|
* Mon Sep 08 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.01-2
|
|
|
|
- bump
|
|
|
|
|
2008-09-08 18:29:01 +00:00
|
|
|
* Sat Sep 06 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.01-1
|
|
|
|
- initial Fedora packaging
|
|
|
|
- generated with cpan2dist (CPANPLUS::Dist::Fedora version 0.0.1)
|