|
|
598d52 |
# MRO is part of the Perl core since 5.9.5
|
|
|
598d52 |
%if 0%{?fedora} < 9 && 0%{?rhel} < 6
|
|
|
598d52 |
%global mro_in_core 0
|
|
|
598d52 |
%else
|
|
|
598d52 |
%global mro_in_core 1
|
|
|
598d52 |
%endif
|
|
|
598d52 |
|
|
|
598d52 |
Name: perl-MRO-Compat
|
|
|
598d52 |
Version: 0.13
|
|
|
598d52 |
Release: 15%{?dist}
|
|
|
598d52 |
Summary: Mro::* interface compatibility for Perls < 5.9.5
|
|
|
598d52 |
License: GPL+ or Artistic
|
|
|
598d52 |
URL: https://metacpan.org/release/MRO-Compat
|
|
|
598d52 |
Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/MRO-Compat-%{version}.tar.gz
|
|
|
598d52 |
BuildArch: noarch
|
|
|
598d52 |
# Build
|
|
|
598d52 |
BuildRequires: coreutils
|
|
|
598d52 |
BuildRequires: findutils
|
|
|
598d52 |
BuildRequires: make
|
|
|
598d52 |
BuildRequires: perl-interpreter
|
|
|
598d52 |
BuildRequires: perl-generators
|
|
|
598d52 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
598d52 |
# Module
|
|
|
598d52 |
%if ! %{mro_in_core}
|
|
|
598d52 |
BuildRequires: perl(Class::C3) >= 0.24
|
|
|
598d52 |
BuildRequires: perl(Class::C3::XS) >= 0.08
|
|
|
598d52 |
%endif
|
|
|
598d52 |
BuildRequires: perl(strict)
|
|
|
598d52 |
BuildRequires: perl(warnings)
|
|
|
598d52 |
# Test
|
|
|
598d52 |
BuildRequires: perl(Test::More) >= 0.47
|
|
|
598d52 |
# Dependencies
|
|
|
598d52 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
598d52 |
%if ! %{mro_in_core}
|
|
|
598d52 |
Requires: perl(Class::C3) >= 0.24
|
|
|
598d52 |
Requires: perl(Class::C3::XS) >= 0.08
|
|
|
598d52 |
%endif
|
|
|
598d52 |
|
|
|
598d52 |
%description
|
|
|
598d52 |
The "mro" namespace provides several utilities for dealing with method
|
|
|
598d52 |
resolution order and method caching in general in Perl 5.9.5 and higher.
|
|
|
598d52 |
This module provides those interfaces for earlier versions of Perl (back
|
|
|
598d52 |
to 5.6.0 anyways).
|
|
|
598d52 |
|
|
|
598d52 |
It is a harmless no-op to use this module on 5.9.5+. That is to say,
|
|
|
598d52 |
code which properly uses MRO::Compat will work unmodified on both older
|
|
|
598d52 |
Perls and 5.9.5+.
|
|
|
598d52 |
|
|
|
598d52 |
If you're writing a piece of software that would like to use the parts
|
|
|
598d52 |
of 5.9.5+'s mro:: interfaces that are supported here, and you want
|
|
|
598d52 |
compatibility with older Perls, this is the module for you.
|
|
|
598d52 |
|
|
|
598d52 |
%prep
|
|
|
598d52 |
%setup -q -n MRO-Compat-%{version}
|
|
|
598d52 |
|
|
|
598d52 |
# Fix script interpreter
|
|
|
598d52 |
perl -MExtUtils::MakeMaker -e 'ExtUtils::MM_Unix->fixin(q{t/15pkg_gen.t})'
|
|
|
598d52 |
|
|
|
598d52 |
%build
|
|
|
598d52 |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
598d52 |
make %{?_smp_mflags}
|
|
|
598d52 |
|
|
|
598d52 |
%install
|
|
|
598d52 |
rm -rf %{buildroot}
|
|
|
598d52 |
make pure_install DESTDIR=%{buildroot}
|
|
|
598d52 |
find %{buildroot} -type f -name .packlist -delete
|
|
|
598d52 |
%{_fixperms} -c %{buildroot}
|
|
|
598d52 |
|
|
|
598d52 |
%check
|
|
|
598d52 |
make test
|
|
|
598d52 |
|
|
|
598d52 |
%files
|
|
|
598d52 |
%doc Changes README t/
|
|
|
598d52 |
%{perl_vendorlib}/MRO/
|
|
|
598d52 |
%{_mandir}/man3/MRO::Compat.3*
|
|
|
598d52 |
|
|
|
598d52 |
%changelog
|
|
|
598d52 |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.13-15
|
|
|
598d52 |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
598d52 |
Related: rhbz#1991688
|
|
|
598d52 |
|
|
|
598d52 |
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.13-14
|
|
|
598d52 |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
598d52 |
|
|
|
598d52 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-13
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-12
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-11
|
|
|
598d52 |
- Perl 5.32 rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-10
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-9
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-8
|
|
|
598d52 |
- Perl 5.30 rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-7
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-6
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-5
|
|
|
598d52 |
- Perl 5.28 rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-4
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-3
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-2
|
|
|
598d52 |
- Perl 5.26 rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Wed Mar 29 2017 Paul Howarth <paul@city-fan.org> - 0.13-1
|
|
|
598d52 |
- Update to 0.13
|
|
|
598d52 |
- Don't run pod tests on user installs
|
|
|
598d52 |
- Stop using Module::Install to fix installation when @INC doesn't have the
|
|
|
598d52 |
current directory (CPAN RT#119016)
|
|
|
598d52 |
- Repository migrated to the github moose organization
|
|
|
598d52 |
- This release by HAARG → update source URL
|
|
|
598d52 |
- Simplify find command using -delete
|
|
|
598d52 |
|
|
|
598d52 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-13
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Fri Jul 22 2016 Petr Pisar <ppisar@redhat.com> - 0.12-12
|
|
|
598d52 |
- Use distribution instead of perl version to control build-requires
|
|
|
598d52 |
|
|
|
598d52 |
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-11
|
|
|
598d52 |
- Perl 5.24 rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-10
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-9
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-8
|
|
|
598d52 |
- Perl 5.22 rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Thu Jan 15 2015 Petr Pisar <ppisar@redhat.com> - 0.12-7
|
|
|
598d52 |
- Do not hard-code interpreter name
|
|
|
598d52 |
|
|
|
598d52 |
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-6
|
|
|
598d52 |
- Perl 5.20 rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-5
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-4
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Sat Jul 20 2013 Petr Pisar <ppisar@redhat.com> - 0.12-3
|
|
|
598d52 |
- Perl 5.18 rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Wed Dec 5 2012 Paul Howarth <paul@city-fan.org> - 0.12-1
|
|
|
598d52 |
- Update to 0.12
|
|
|
598d52 |
- Bump Class::C3 dependency on 5.8, which in turn will automatically install
|
|
|
598d52 |
Class::C3::XS if possible
|
|
|
598d52 |
- Fix nonfunctional SYNOPSIS (CPAN RT#78325)
|
|
|
598d52 |
- This release by BOBTFISH -> update source URL
|
|
|
598d52 |
- Don't need to remove empty directories from the buildroot
|
|
|
598d52 |
- Drop %%defattr, redundant since rpm 4.4
|
|
|
598d52 |
- BR: perl(Cwd), perl(File::Path), perl(File::Spec) for bundled Module::Install
|
|
|
598d52 |
- Bump perl(Class::C3) version requirement to 0.24
|
|
|
598d52 |
- Drop unnecessary version requirement for perl(ExtUtils::MakeMaker)
|
|
|
598d52 |
|
|
|
598d52 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-11
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 0.11-10
|
|
|
598d52 |
- Perl 5.16 rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Thu Jan 26 2012 Paul Howarth <paul@city-fan.org> - 0.11-9
|
|
|
598d52 |
- Spec clean-up:
|
|
|
598d52 |
- Only require Class::C3 with perl < 5.9.5
|
|
|
598d52 |
- Require Class::C3::XS for performance and consistency, but only with
|
|
|
598d52 |
perl < 5.9.5
|
|
|
598d52 |
- Use DESTDIR rather than PERL_INSTALL_ROOT
|
|
|
598d52 |
- Make %%files list more explicit
|
|
|
598d52 |
- Classify buildreqs by build/module/test
|
|
|
598d52 |
- Don't use macros for commands
|
|
|
598d52 |
- Use tabs
|
|
|
598d52 |
|
|
|
598d52 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-8
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.11-7
|
|
|
598d52 |
- Perl mass rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-6
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.11-5
|
|
|
598d52 |
- Rebuild to fix problems with vendorarch/lib (#661697)
|
|
|
598d52 |
|
|
|
598d52 |
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.11-4
|
|
|
598d52 |
- Mass rebuild with perl-5.12.0
|
|
|
598d52 |
|
|
|
598d52 |
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.11-3
|
|
|
598d52 |
- Rebuild against perl 5.10.1
|
|
|
598d52 |
|
|
|
598d52 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Tue Jun 02 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.11-1
|
|
|
598d52 |
- Auto-update to 0.11 (by cpan-spec-update 0.01)
|
|
|
598d52 |
- Altered br on perl(ExtUtils::MakeMaker) (0 => 6.42)
|
|
|
598d52 |
- Altered br on perl(Class::C3) (0.19 => 0.20)
|
|
|
598d52 |
|
|
|
598d52 |
* Thu Apr 02 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.10-1
|
|
|
598d52 |
- Update to 0.10
|
|
|
598d52 |
|
|
|
598d52 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.09-2
|
|
|
598d52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
598d52 |
|
|
|
598d52 |
* Sat Jun 28 2008 Chris Weyl <cweyl@alumni.drew.edu> - 0.09
|
|
|
598d52 |
- Update to 0.09
|
|
|
598d52 |
|
|
|
598d52 |
* Wed May 28 2008 Chris Weyl <cweyl@alumni.drew.edu> - 0.07-1
|
|
|
598d52 |
- Update to 0.07
|
|
|
598d52 |
|
|
|
598d52 |
* Wed Mar 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.05-6
|
|
|
598d52 |
- Rebuild for new perl
|
|
|
598d52 |
|
|
|
598d52 |
* Thu Dec 06 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.05-5
|
|
|
598d52 |
- Bump
|
|
|
598d52 |
|
|
|
598d52 |
* Wed Dec 05 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.05-4
|
|
|
598d52 |
- Update INstall -> install
|
|
|
598d52 |
|
|
|
598d52 |
* Wed Dec 05 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.05-3
|
|
|
598d52 |
- Add Test::Pod deps
|
|
|
598d52 |
|
|
|
598d52 |
* Tue Dec 04 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.05-2
|
|
|
598d52 |
- Make Class::C3 dep explicit
|
|
|
598d52 |
|
|
|
598d52 |
* Tue Sep 18 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.05-1
|
|
|
598d52 |
- Specfile autogenerated by cpanspec 1.71
|