commit d7182699b06be741e380909a948984afa11984da Author: Petr Pisar <ppisar@xxxxxxxxxx> Date: Mon Jul 25 15:34:51 2011 +0200 RPM 4.9 dependency filtering added perl-Module-Mask.spec | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) --- diff --git a/perl-Module-Mask.spec b/perl-Module-Mask.spec index cc27186..9656a9a 100644 --- a/perl-Module-Mask.spec +++ b/perl-Module-Mask.spec @@ -1,6 +1,6 @@ Name: perl-Module-Mask Version: 0.03 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Pretend certain modules are not installed License: GPL+ or Artistic Group: Development/Libraries @@ -16,14 +16,18 @@ BuildRequires: perl(Test::Pod) >= 1.14 BuildRequires: perl(Test::Pod::Coverage) >= 1.04 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(Module::Util) >= 1.00 %{?perl_filter_default} +# RPM 4.8 style %{?filter_setup: # Replace unversioned dependencies with versioned ones. -%filter_from_requires s/^perl(Module::Util)$/perl(Module::Util) >= 1.00/ +%filter_from_requires /^perl(Module::Util)$/d %filter_setup } +# RPM 4.9 style +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Module::Util\\)$ %description Sometimes you need to test what happens when a given module is not @@ -59,6 +63,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/* %changelog +* Mon Jul 25 2011 Petr Pisar <ppisar@xxxxxxxxxx> - 0.03-3 +- RPM 4.9 dependency filtering added + * Mon Jun 20 2011 Marcela Mašláňová <mmaslano@xxxxxxxxxx> - 0.03-2 - 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