@ -2,8 +2,8 @@
%global mro_in_core %(perl -e 'print $] > 5.009005 ? 1 : 0;')
%global mro_in_core %(perl -e 'print $] > 5.009005 ? 1 : 0;')
Name: perl-Class-C3
Name: perl-Class-C3
Version: 0.23
Version: 0.24
Release: 5 %{?dist}
Release: 1 %{?dist}
Summary: Pragma to use the C3 method resolution order algorithm
Summary: Pragma to use the C3 method resolution order algorithm
License: GPL+ or Artistic
License: GPL+ or Artistic
Group: Development/Libraries
Group: Development/Libraries
@ -13,6 +13,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
BuildArch: noarch
# Build
# Build
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::MakeMaker)
# Module
BuildRequires: perl(Algorithm::C3) >= 0.07
BuildRequires: perl(Scalar::Util) >= 1.10
# Test suite
# Test suite
BuildRequires: perl(Sub::Name)
BuildRequires: perl(Sub::Name)
BuildRequires: perl(Test::Exception) >= 0.15
BuildRequires: perl(Test::Exception) >= 0.15
@ -26,15 +29,13 @@ BuildRequires: perl(MRO::Compat)
%endif
%endif
# Runtime
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Algorithm::C3) >= 0.07
Requires: perl(Scalar::Util) >= 1.10
# Requirements for older distributions with Perl < 5.9.5
# Requirements for older distributions with Perl < 5.9.5
%if ! %{mro_in_core}
%if ! %{mro_in_core}
BuildRequires: perl(Algorithm::C3) >= 0.06
BuildRequires: perl(Class::C3::XS) >= 0.07
BuildRequires: perl(Class::C3::XS) >= 0.07
BuildRequires: perl(Scalar::Util) >= 1.10
Requires: perl(Algorithm::C3) >= 0.06
Requires: perl(Class::C3::XS) >= 0.07
Requires: perl(Class::C3::XS) >= 0.07
Requires: perl(Scalar::Util) >= 1.10
%endif
%endif
# Let people "use c3;"
# Let people "use c3;"
@ -71,7 +72,6 @@ make %{?_smp_mflags}
rm -rf %{buildroot}
rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
cp -p opt/c3.pm %{buildroot}%{perl_vendorlib}/
cp -p opt/c3.pm %{buildroot}%{perl_vendorlib}/
%{_fixperms} %{buildroot}
%{_fixperms} %{buildroot}
@ -90,6 +90,13 @@ rm -rf %{buildroot}
%{_mandir}/man3/Class::C3::next.3pm*
%{_mandir}/man3/Class::C3::next.3pm*
%changelog
%changelog
* 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
* Sat Jan 21 2012 Paul Howarth <paul@city-fan.org> - 0.23-5
- Obsolete/provide old -tests subpackage to support upgrades
- Obsolete/provide old -tests subpackage to support upgrades