From a2af758a6e0b2ebb4d40215c7bfdbb952da06731 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Mon, 19 Oct 2015 12:26:50 +0100 Subject: [PATCH] Update to 0.30 - New upstream release 0.30 - Update compiler detection to use ExtUtils::HasCompiler --- perl-Class-C3.spec | 28 +++++++++++++++++++++++++--- sources | 2 +- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/perl-Class-C3.spec b/perl-Class-C3.spec index 29be648..e8278c0 100644 --- a/perl-Class-C3.spec +++ b/perl-Class-C3.spec @@ -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 - 0.30-1 +- Update to 0.30 + - Update compiler detection to use ExtUtils::HasCompiler + * Thu Jun 18 2015 Fedora Release Engineering - 0.28-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index cc63874..22aaa0b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -86f045f4bfdd81ff0a66a0d0e7a3a81b Class-C3-0.28.tar.gz +730b4007b292190c24096ba1ef312995 Class-C3-0.30.tar.gz