|
|
|
@ -1,15 +1,31 @@
|
|
|
|
|
# Provides/Requires filtering is different from rpm 4.9 onwards
|
|
|
|
|
%global rpm49 %(rpm --version | perl -p -e 's/^.* (\\d+)\\.(\\d+).*/sprintf("%d.%03d",$1,$2) ge 4.009 ? 1 : 0/e')
|
|
|
|
|
|
|
|
|
|
Name: perl-Class-C3
|
|
|
|
|
Version: 0.28
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: 0.30
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Pragma to use the C3 method resolution order algorithm
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
URL: http://search.cpan.org/dist/Class-C3/
|
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/Class-C3-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# Build
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl >= 4:5.9.5
|
|
|
|
|
BuildRequires: perl(ExtUtils::CBuilder) >= 0.27
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
# Build (dependencies of bundled ExtUtils::HasCompiler)
|
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(DynaLoader)
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
|
BuildRequires: perl(File::Spec::Functions)
|
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
# Module
|
|
|
|
|
BuildRequires: perl(Algorithm::C3) >= 0.07
|
|
|
|
|
BuildRequires: perl(Scalar::Util) >= 1.10
|
|
|
|
@ -46,10 +62,12 @@ method resolution order.
|
|
|
|
|
%setup -q -n Class-C3-%{version}
|
|
|
|
|
|
|
|
|
|
# Filter out bogus dependencies and provides (prior to rpm 4.9)
|
|
|
|
|
%if ! %{rpm49}
|
|
|
|
|
%global reqfilt /bin/sh -c "%{__perl_requires} | grep -Evx 'perl[(](c3|base)[)]'"
|
|
|
|
|
%define __perl_requires %{reqfilt}
|
|
|
|
|
%global provfilt /bin/sh -c "%{__perl_provides} | grep -v '^perl(t::lib::'"
|
|
|
|
|
%define __perl_provides %{provfilt}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
@ -72,6 +90,10 @@ make test
|
|
|
|
|
%{_mandir}/man3/Class::C3::next.3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Oct 19 2015 Paul Howarth <paul@city-fan.org> - 0.30-1
|
|
|
|
|
- Update to 0.30
|
|
|
|
|
- Update compiler detection to use ExtUtils::HasCompiler
|
|
|
|
|
|
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.28-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|