commit 01ed28fea4546123a996c2b65d1421b1ff17bac4 Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Thu Apr 14 10:17:46 2011 +0100 Tweak provides filter to work with rpm >= 4.9 too perl-UNIVERSAL-exports.spec | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) --- diff --git a/perl-UNIVERSAL-exports.spec b/perl-UNIVERSAL-exports.spec index f92a591..2762f39 100644 --- a/perl-UNIVERSAL-exports.spec +++ b/perl-UNIVERSAL-exports.spec @@ -1,6 +1,6 @@ Name: perl-UNIVERSAL-exports Version: 0.05 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Lightweight, universal exporting of variables Group: Development/Libraries License: GPL+ or Artistic @@ -12,19 +12,18 @@ BuildRequires: perl(Test::More) BuildRequires: perl(Exporter::Lite) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# Filter bogus provide for perl(UNIVERSAL) (rpm 4.9 onwards) +%global __provides_exclude ^perl\\(UNIVERSAL\\) + %description %{summary}. %prep %setup -q -n UNIVERSAL-exports-%{version} -cat << \EOF > %{name}-prov -#!/bin/sh -%{__perl_provides} $* |\ - sed -e '/^perl(UNIVERSAL)$/d' -EOF -%define __perl_provides %{_builddir}/UNIVERSAL-exports-%{version}/%{name}-prov -chmod +x %{__perl_provides} +# Filter bogus provide for perl(UNIVERSAL) (prior to rpm 4.9) +%global provfilt /bin/sh -c "%{__perl_provides} | sed -e '/^perl(UNIVERSAL)$/d'" +%define __perl_provides %{provfilt} %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -51,6 +50,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Apr 14 2011 Paul Howarth <paul@xxxxxxxxxxxx> - 0.05-11 +- Tweak provides filter to work with rpm >= 4.9 too + * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.05-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel