update to 0.17, leverage Class::C3::XS

epel9
Chris Weyl 18 years ago
parent a2ca005d06
commit 7827528f1e

@ -1 +1 @@
Class-C3-0.14.tar.gz Class-C3-0.17.tar.gz

@ -1,5 +1,5 @@
Name: perl-Class-C3 Name: perl-Class-C3
Version: 0.14 Version: 0.17
Release: 1%{?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
@ -8,22 +8,26 @@ URL: http://search.cpan.org/dist/Class-C3/
Source0: http://www.cpan.org/authors/id/B/BL/BLBLACK/Class-C3-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/B/BL/BLBLACK/Class-C3-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# see rh#205081,rh#204800 # see rh#205081,rh#204800
%define __perl_provides %{nil} %define __perl_provides %{nil}
Provides: perl(Class::C3) = %{version} Provides: perl(Class::C3) = %{version}
BuildRequires: perl(Algorithm::C3) >= 0.05 # core
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
# cpan
BuildRequires: perl(Algorithm::C3) >= 0.06
BuildRequires: perl(Class::C3::XS) >= 0.03
BuildRequires: perl(Test::Exception) >= 0.15 BuildRequires: perl(Test::Exception) >= 0.15
# testing... # testing...
BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage) BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
BuildRequires: perl(Sub::Name) BuildRequires: perl(Sub::Name)
# auto-requires from cpanspec # missed!
#Requires: perl(Algorithm::C3) >= 0.05 Requires: perl(Algorithm::C3) >= 0.06
#Requires: perl(Test::Exception) >= 0.15 Requires: perl(Class::C3::XS) >= 0.03
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description %description
This is a pragma to change Perl 5's standard method resolution order from This is a pragma to change Perl 5's standard method resolution order from
@ -33,6 +37,16 @@ method resolution order.
%prep %prep
%setup -q -n Class-C3-%{version} %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 %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
@ -54,11 +68,15 @@ rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc ChangeLog README opt/ util/ %doc ChangeLog README opt/ util/ t/
%{perl_vendorlib}/* %{perl_vendorlib}/*
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Wed May 09 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.17-1
- update to 0.17
- BR Class::C3::XS
* Mon Sep 25 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.14-1 * Mon Sep 25 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.14-1
- update to 0.14 - update to 0.14

@ -1 +1 @@
72da38cad9fb3390f3bb7d898e44a437 Class-C3-0.14.tar.gz cb041be761c17919a9b2eda1f15bc3f3 Class-C3-0.17.tar.gz

Loading…
Cancel
Save