[perl-UNIVERSAL-exports] Tweak provides filter to work with rpm >= 4.9 too
Paul Howarth
pghmcfc at fedoraproject.org
Thu Apr 14 09:18:14 UTC 2011
commit 01ed28fea4546123a996c2b65d1421b1ff17bac4
Author: Paul Howarth <paul at city-fan.org>
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 at city-fan.org> - 0.05-11
+- Tweak provides filter to work with rpm >= 4.9 too
+
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.05-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
More information about the perl-devel
mailing list