- install c3.pm as well; drop opt/ from doc

- conditionalise
epel9
Chris Weyl 15 years ago
parent e09fd84725
commit f0b1cbe243

@ -1,6 +1,8 @@
%global older_perl %(%{__perl} -e '$] < 5.009_005 ? print 1 : print 0')
Name: perl-Class-C3 Name: perl-Class-C3
Version: 0.22 Version: 0.22
Release: 2%{?dist} Release: 3%{?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,23 +15,25 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi
# 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}
Provides: perl(c3) = %{version}
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(Test::More) >= 0.47 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(Test::Exception) >= 0.15
BuildRequires: perl(Scalar::Util) >= 1.10
# testing... # testing...
BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage) BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Class::C3)
BuildRequires: perl(Sub::Name) BuildRequires: perl(Sub::Name)
# past 5.9.5 mro is in core
%if %{older_perl}
BuildRequires: perl(Algorithm::C3) >= 0.06
BuildRequires: perl(Class::C3::XS) >= 0.07
BuildRequires: perl(Scalar::Util) >= 1.10
Requires: perl(Algorithm::C3) >= 0.06 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 Requires: perl(Class::C3::XS) >= 0.07
Requires: perl(Scalar::Util) >= 1.10
%endif
%{?perl_default_filter} %{?perl_default_filter}
%{?perl_default_subpackage_tests} %{?perl_default_subpackage_tests}
@ -43,6 +47,7 @@ method resolution order.
%setup -q -n Class-C3-%{version} %setup -q -n Class-C3-%{version}
%build %build
%{?perl_ext_env_unset}
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
@ -52,6 +57,7 @@ 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 \; find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
cp opt/c3.pm %{buildroot}%{perl_vendorlib}/
%{_fixperms} %{buildroot}/* %{_fixperms} %{buildroot}/*
@ -63,11 +69,15 @@ rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc ChangeLog README opt/ util/ %doc ChangeLog README util/
%{perl_vendorlib}/* %{perl_vendorlib}/*
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Sat May 15 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.22-3
- install c3.pm as well; drop opt/ from doc
- conditionalise
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.22-2 * Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.22-2
- Mass rebuild with perl-5.12.0 - Mass rebuild with perl-5.12.0

Loading…
Cancel
Save