[perl-Declare-Constraints-Simple] Fix dependency filter for rpm 4.9 onwards
Paul Howarth
pghmcfc at fedoraproject.org
Sun Feb 13 21:44:08 UTC 2011
commit 92e89f99044947bd1b4b69d32fcddc26b84fe36a
Author: Paul Howarth <paul at city-fan.org>
Date: Sun Feb 13 21:44:02 2011 +0000
Fix dependency filter for rpm 4.9 onwards
perl-Declare-Constraints-Simple.spec | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/perl-Declare-Constraints-Simple.spec b/perl-Declare-Constraints-Simple.spec
index 7099596..912e41c 100644
--- a/perl-Declare-Constraints-Simple.spec
+++ b/perl-Declare-Constraints-Simple.spec
@@ -1,6 +1,6 @@
Name: perl-Declare-Constraints-Simple
Version: 0.03
-Release: 11%{?dist}
+Release: 12%{?dist}
Summary: Declarative Validation of Data Structures
License: GPL+ or Artistic
Group: Development/Libraries
@@ -21,6 +21,8 @@ BuildRequires: perl(Class::Inspector)
# test -- optional
BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
+# Filter unwanted Requires: (rpm 4.9 onwards)
+%global __requires_exclude ^perl\\(Declare::Constraints::Simple-Library\\)
%description
The main purpose of this module is to provide an easy way to build a
@@ -30,7 +32,7 @@ declarative keywords in the importing namespace.
%prep
%setup -q -n Declare-Constraints-Simple-%{version}
-# Filter unwanted Requires:
+# Filter unwanted Requires: (pre rpm 4.9)
cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
@@ -67,6 +69,9 @@ rm -rf %{buildroot}
%{_mandir}/man3/*
%changelog
+* Sun Feb 13 2011 Paul Howarth <paul at city-fan.org> - 0.03-12
+- Fix dependency filter for rpm 4.9 onwards
+
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.03-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
More information about the perl-devel
mailing list