@ -1,12 +1,11 @@
Name: perl-Class-C3
Version: 0.21
Release: 3 %{?dist}
Version: 0.22
Release: 1 %{?dist}
Summary: Pragma to use the C3 method resolution order algorithm
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Class-C3/
Source0: http://www.cpan.org/authors/id/F/FL/FLORA/Class-C3-%{version}.tar.gz
#Source0: http://www.cpan.org/authors/id/B/BL/BLBLACK/Class-C3-%{version}.tar.gz
Source0: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Class-C3-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@ -15,23 +14,26 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi
%define __perl_provides %{nil}
Provides: perl(Class::C3) = %{version}
# core
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
# cpan
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl(Algorithm::C3) >= 0.06
BuildRequires: perl(Class::C3::XS) >= 0.07
BuildRequires: perl(Test::Exception) >= 0.15
BuildRequires: perl(Scalar::Util) >= 1.10
# testing...
BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Class::C3)
BuildRequires: perl(Sub::Name)
# missed!
Requires: perl(Algorithm::C3) >= 0.06
Requires: perl(Scalar::Util) >= 1.10
# strictly speaking, this is optional. However, speed is always nice :)
Requires: perl(Class::C3::XS) >= 0.07
%{?perl_default_filter}
%{?perl_default_subpackage_tests}
%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
@ -40,16 +42,6 @@ method resolution order.
%prep
%setup -q -n Class-C3-%{version}
# Filter unwanted Requires:
cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/perl(c3)/d; /perl(base)/d'
EOF
%define __perl_requires %{_builddir}/Class-C3-%{version}/%{name}-req
chmod +x %{__perl_requires}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
@ -57,7 +49,7 @@ make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT =%{buildroot}
make pure_install DESTDIR =%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
@ -71,11 +63,21 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc ChangeLog README opt/ util/ t/
%doc ChangeLog README opt/ util/
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* 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