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