commit 217e6ff3555d531032946dfc78227a5cf534b177 Author: Petr Pisar <ppisar@xxxxxxxxxx> Date: Mon Jul 25 16:39:02 2011 +0200 RPM 4.9 dependency filtering added rt3.spec | 25 +++++++++++++++++++++++-- 1 files changed, 23 insertions(+), 2 deletions(-) --- diff --git a/rt3.spec b/rt3.spec index e3d5d2e..f6ef9a2 100644 --- a/rt3.spec +++ b/rt3.spec @@ -40,7 +40,7 @@ Name: rt3 Version: 3.8.10 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Request tracker 3 Group: Applications/Internet @@ -198,6 +198,9 @@ Requires: rt3-mailgate Provides: config(rt3) = %{version}-%{release} Requires: config(rt3) = %{version}-%{release} +%{?perl_default_filter} + +# RPM 4.8 style: %{?filter_setup: # Keep SpamAssassin optional %filter_from_requires /^perl(Mail::SpamAssassin)/d @@ -212,9 +215,24 @@ Requires: config(rt3) = %{version}-%{release} %filter_from_provides /^perl(IO::Handle::CRLF)$/d # Work-around rpm's depgenerator defect: %filter_from_requires /^perl(DBIx::SearchBuilder::Handle::)$/d -%{?perl_default_filter} +%filter_setup } +# RPM 4.9 style: +# Keep SpamAssassin optional +%global %__requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Mail::SpamAssassin\\) +# Keep FCGI optional +%global __requires_exclude %__requires_exclude|^perl\\(FCGI::ProcManager\\) +# Filter bogus requires +%global __requires_exclude %__requires_exclude|^perl\\(\\) +# Filter redundant provides +%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(RT\\)$ +# Filter bogus provides +%global __provides_exclude %__provides_exclude|^perl\\(HTML::Mason +%global __provides_exclude %__provides_exclude|^perl\\(IO::Handle::CRLF\\)$ +# Work-around rpm's depgenerator defect: +%global __requires_exclude %__requires_exclude|^perl\\(DBIx::SearchBuilder::Handle::\\)$ + %description RT is an enterprise-grade ticketing system which enables a group of people to intelligently and efficiently manage tasks, issues, and requests submitted @@ -447,6 +465,9 @@ fi %endif %changelog +* Mon Jul 25 2011 Petr Pisar <ppisar@xxxxxxxxxx> - 3.8.10-4 +- RPM 4.9 dependency filtering added + * Wed Jul 20 2011 Petr Sabata <contyk@xxxxxxxxxx> - 3.8.10-3 - Perl mass rebuild -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel