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