From 7d6203c465dcc7166341a8d9a92cfd3e75d1884e Mon Sep 17 00:00:00 2001 From: Petr Pisar Date: Fri, 22 Jul 2011 14:30:47 +0200 Subject: [PATCH] RPM 4.9 dependency filtering added --- perl-Class-Prototyped.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 - 1.11-11 +- RPM 4.9 dependency filtering added + * Fri Jun 17 2011 Marcela Mašláňová - 1.11-10 - Perl mass rebuild