[perl-Class-Prototyped] RPM 4.9 dependency filtering added
Petr Sabata
psabata at fedoraproject.org
Fri Jul 22 12:37:37 UTC 2011
commit 7d6203c465dcc7166341a8d9a92cfd3e75d1884e
Author: Petr Pisar <ppisar at redhat.com>
Date: Fri Jul 22 14:30:47 2011 +0200
RPM 4.9 dependency filtering added
perl-Class-Prototyped.spec | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/perl-Class-Prototyped.spec b/perl-Class-Prototyped.spec
index efdfee8..cb93c9a 100644
--- a/perl-Class-Prototyped.spec
+++ b/perl-Class-Prototyped.spec
@@ -1,6 +1,6 @@
Name: perl-Class-Prototyped
Version: 1.11
-Release: 10%{?dist}
+Release: 11%{?dist}
Summary: Fast prototype-based OO programming in Perl
License: GPL+ or Artistic
Group: Development/Libraries
@@ -21,12 +21,17 @@ have objects inherit their behavior and state from another object.
%prep
%setup -q -n Class-Prototyped-%{version}
+# RPM 4.8 style
%{?filter_setup:
%filter_from_provides /^perl(My[^)]*Class)$/g
%filter_from_requires /^perl(Class::Prototyped::Graph)$/g
%filter_requires_in %{_docdir}/examples
%filter_setup
}
+# RPM 4.9 style
+%global __provides_exclude %{?__provides_exclude?__provides_exclude|}^perl\\(My[^\\)]*Class\\)$
+%global __requires_exclude %{?__requires_exclude?__requires_exclude|}^perl\\(Class::Prototyped::Graph\\)$
+%global __requires_exclude_from %{?__requires_exclude_from?__requires_exclude_from|}%{_docdir}/examples
# Documentation and libraries should not be executable
chmod -x perf/* examples/* Changes lib/Class/*.pm lib/Class/Prototyped/*
@@ -57,6 +62,9 @@ rm -rf %{buildroot}
%{_mandir}/man3/*
%changelog
+* Fri Jul 22 2011 Petr Pisar <ppisar at redhat.com> - 1.11-11
+- RPM 4.9 dependency filtering added
+
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano at redhat.com> - 1.11-10
- Perl mass rebuild
More information about the scm-commits
mailing list