|
|
|
Name: perl-Class-C3
|
|
|
|
Version: 0.28
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: Pragma to use the C3 method resolution order algorithm
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
URL: http://search.cpan.org/dist/Class-C3/
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/Class-C3-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
# Build
|
|
|
|
BuildRequires: perl >= 4:5.9.5
|
|
|
|
BuildRequires: perl(ExtUtils::CBuilder) >= 0.27
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
# Module
|
|
|
|
BuildRequires: perl(Algorithm::C3) >= 0.07
|
|
|
|
BuildRequires: perl(Scalar::Util) >= 1.10
|
|
|
|
# Test suite
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
BuildRequires: perl(File::Glob)
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
BuildRequires: perl(NEXT)
|
|
|
|
BuildRequires: perl(Sub::Name)
|
|
|
|
BuildRequires: perl(Test::Exception) >= 0.15
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
# MRO::Compat itself requires Class::C3
|
|
|
|
%if 0%{!?perl_bootstrap:1}
|
|
|
|
BuildRequires: perl(MRO::Compat)
|
|
|
|
%endif
|
|
|
|
# Runtime
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
Requires: perl(Algorithm::C3) >= 0.07
|
|
|
|
Requires: perl(Scalar::Util) >= 1.10
|
|
|
|
|
|
|
|
# Let people "use c3;"
|
|
|
|
Provides: perl(c3) = %{version}
|
|
|
|
|
|
|
|
# Filter out bogus dependencies and provides (rpm 4.9 onwards)
|
|
|
|
%global __requires_exclude ^perl\\((c3|base)\\)
|
|
|
|
%global __provides_exclude ^perl\\(t::lib::
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is a pragma to change Perl 5's standard method resolution order from
|
|
|
|
depth-first left-to-right (a.k.a - pre-order) to the more sophisticated C3
|
|
|
|
method resolution order.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Class-C3-%{version}
|
|
|
|
|
|
|
|
# Filter out bogus dependencies and provides (prior to rpm 4.9)
|
|
|
|
%global reqfilt /bin/sh -c "%{__perl_requires} | grep -Evx 'perl[(](c3|base)[)]'"
|
|
|
|
%define __perl_requires %{reqfilt}
|
|
|
|
%global provfilt /bin/sh -c "%{__perl_provides} | grep -v '^perl(t::lib::'"
|
|
|
|
%define __perl_provides %{provfilt}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
|
cp -p opt/c3.pm %{buildroot}%{perl_vendorlib}/
|
|
|
|
%{_fixperms} %{buildroot}
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc Changes README t/
|
|
|
|
%{perl_vendorlib}/c3.pm
|
|
|
|
%{perl_vendorlib}/Class/
|
|
|
|
%{_mandir}/man3/Class::C3.3*
|
|
|
|
%{_mandir}/man3/Class::C3::next.3*
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-2
|
|
|
|
- Perl 5.22 rebuild
|
|
|
|
|
|
|
|
* Tue Apr 14 2015 Paul Howarth <paul@city-fan.org> - 0.28-1
|
|
|
|
- Update to 0.28
|
|
|
|
- Change link to Dylan paper to use archive.org, as the original link has
|
|
|
|
gone offline (CPAN RT#99756)
|
|
|
|
- Pod tests moved to xt/ so drop build requirements for them
|
|
|
|
|
|
|
|
* Mon Sep 08 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-3
|
|
|
|
- Perl 5.20 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
* Thu Sep 04 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-2
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
|
|
|
* Thu Sep 4 2014 Paul Howarth <paul@city-fan.org> - 0.27-1
|
|
|
|
- Update to 0.27:
|
|
|
|
- Declare minimum perl version of 5.6 in metadata
|
|
|
|
- Upstream ChangeLog renamed to Changes
|
|
|
|
- Upstream dropped visualize_c3.pl utility script
|
|
|
|
|
|
|
|
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.26-3
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Mar 5 2014 Paul Howarth <paul@city-fan.org> - 0.26-1
|
|
|
|
- Update to 0.26:
|
|
|
|
- Fix bug in Makefile.PL when ExtUtils::CBuilder not available
|
|
|
|
- This release by HAARG -> update source URL
|
|
|
|
- Clean up for modern rpmbuild since build requirements are not available in
|
|
|
|
EL-5
|
|
|
|
- Drop obsoletes/provides for old tests sub-package
|
|
|
|
- Drop unnecessary %%perl_ext_env_unset macro usage
|
|
|
|
- Add optional test requirements
|
|
|
|
|
|
|
|
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.25-4
|
|
|
|
- Perl 5.18 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.25-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Jul 22 2013 Petr Pisar <ppisar@redhat.com> - 0.25-2
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
|
|
|
* Thu Jul 4 2013 Paul Howarth <paul@city-fan.org> - 0.25-1
|
|
|
|
- Update to 0.25:
|
|
|
|
- Drop compatibility from 5.6.2 to 5.6.0
|
|
|
|
- Pod typo fixes (CPAN RT#77453, CPAN RT#85357)
|
|
|
|
- Only ask for Devel::Hide on perls where it will be actually used
|
|
|
|
(CPAN RT#81106)
|
|
|
|
- Fix SYNOPSIS to actually be executable (CPAN RT#78327)
|
|
|
|
- This release by MSTROUT -> update source URL
|
|
|
|
- BR: perl(ExtUtils::CBuilder) and perl(File::Glob)
|
|
|
|
- Bump perl(Class::C3::XS) version requirement to 0.13
|
|
|
|
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 0.24-3
|
|
|
|
- Perl 5.16 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
* Thu Jun 14 2012 Petr Pisar <ppisar@redhat.com> - 0.24-2
|
|
|
|
- Perl 5.16 rebuild
|
|
|
|
|
|
|
|
* Sat May 12 2012 Paul Howarth <paul@city-fan.org> - 0.24-1
|
|
|
|
- Update to 0.24:
|
|
|
|
- Require Class::C3::XS on 5.8 perls if a working compiler is found
|
|
|
|
- Bump Algorithm::C3 version requirement to 0.07
|
|
|
|
- Always BR:/R: Algorithm::C3 and Scalar::Util
|
|
|
|
- Don't need to remove empty directories from buildroot
|
|
|
|
|
|
|
|
* Sat Jan 21 2012 Paul Howarth <paul@city-fan.org> - 0.23-5
|
|
|
|
- Obsolete/provide old -tests subpackage to support upgrades
|
|
|
|
|
|
|
|
* Wed Jan 18 2012 Paul Howarth <paul@city-fan.org> - 0.23-4
|
|
|
|
- Reinstate compatibility with older distributions like EL-5
|
|
|
|
- Drop -tests subpackage (general lack of interest in this), but include
|
|
|
|
them as documentation for the main package
|
|
|
|
- BR: perl(MRO::Compat) for testing if we're not bootstrapping
|
|
|
|
- Don't use macros for commands
|
|
|
|
- Make %%files list more explicit
|
|
|
|
- Filter unwanted requires and provides
|
|
|
|
- Use tabs
|
|
|
|
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.23-2
|
|
|
|
- Perl mass rebuild
|
|
|
|
|
|
|
|
* Sun Mar 13 2011 Iain Arnell <iarnell@gmail.com> - 0.23-1
|
|
|
|
- Update to latest upstream version
|
|
|
|
- Clean up spec for modern rpmbuild
|
|
|
|
- No more need to disable __perl_provides
|
|
|
|
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.22-5
|
|
|
|
- Rebuild to fix problems with vendorarch/lib (#661697)
|
|
|
|
|
|
|
|
* Sat May 15 2010 Chris Weyl <cweyl@alumni.drew.edu> - 0.22-4
|
|
|
|
- Bump
|
|
|
|
|
|
|
|
* Sat May 15 2010 Chris Weyl <cweyl@alumni.drew.edu> - 0.22-3
|
|
|
|
- Install c3.pm as well; drop opt/ from doc
|
|
|
|
- Conditionalise
|
|
|
|
|
|
|
|
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.22-2
|
|
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
|
|
|
|
* Sat Feb 06 2010 Chris Weyl <cweyl@alumni.drew.edu> - 0.22-1
|
|
|
|
- PERL_INSTALL_ROOT => DESTDIR
|
|
|
|
- Add perl_default_subpackage_tests, and drop t/ from doc
|
|
|
|
- Add perl_default_filter (and update filtering)
|
|
|
|
- Auto-update to 0.22 (by cpan-spec-update 0.01)
|
|
|
|
- Altered br on perl(ExtUtils::MakeMaker) (0 => 6.42)
|
|
|
|
- Added a new br on perl(Scalar::Util) (version 1.10)
|
|
|
|
- Altered br on perl(Test::More) (0 => 0.47)
|
|
|
|
- Added a new req on perl(Scalar::Util) (version 1.10)
|
|
|
|
|
|
|
|
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.21-3
|
|
|
|
- Rebuild against perl 5.10.1
|
|
|
|
|
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Apr 02 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.21-1
|
|
|
|
- Update to 0.21
|
|
|
|
|
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sun Jan 25 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.20-1
|
|
|
|
- Update to 0.20
|
|
|
|
|
|
|
|
* Tue Mar 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.19-2
|
|
|
|
- Rebuild for new perl
|
|
|
|
|
|
|
|
* Wed Oct 10 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.19-1
|
|
|
|
- Update to 0.19
|
|
|
|
|
|
|
|
* Fri Jun 01 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.18-1
|
|
|
|
- Update to 0.18
|
|
|
|
|
|
|
|
* Wed May 09 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.17-1
|
|
|
|
- Update to 0.17
|
|
|
|
- BR Class::C3::XS
|
|
|
|
|
|
|
|
* Mon Sep 25 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.14-1
|
|
|
|
- Update to 0.14
|
|
|
|
|
|
|
|
* Tue Sep 19 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.13-4
|
|
|
|
- Fix autoprovides (#205801)
|
|
|
|
|
|
|
|
* Thu Sep 07 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.13-3
|
|
|
|
- Bump
|
|
|
|
|
|
|
|
* Thu Sep 07 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.13-2
|
|
|
|
- Additional br's, minor spec tweaks
|
|
|
|
|
|
|
|
* Tue Sep 05 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.13-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.69.1
|