Fix dependency filter for rpm 4.9 onwards

epel9
Paul Howarth 14 years ago
parent 4c01a6c46f
commit 92e89f9904

@ -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@city-fan.org> - 0.03-12
- Fix dependency filter for rpm 4.9 onwards
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.03-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

Loading…
Cancel
Save