From 7aa4de4dfb90c23e998e4bb5f95ef8a14d4dcf4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcela=20Ma=C5=A1l=C3=A1=C5=88ov=C3=A1?= Date: Tue, 15 Mar 2011 13:00:30 +0100 Subject: [PATCH] Adapt dependency filtering for rpmbuild >= 4.9. --- perl-DBI.spec | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/perl-DBI.spec b/perl-DBI.spec index 66118c1..4fe6d14 100644 --- a/perl-DBI.spec +++ b/perl-DBI.spec @@ -1,6 +1,9 @@ +# Filter unwanted dependencies (rpmbuild >= 4.9) +%global __requires_exclude perl\\(RPC:: + Name: perl-DBI Version: 1.616 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A database access API for perl Group: Development/Libraries @@ -35,15 +38,6 @@ iconv -f iso8859-1 -t utf-8 lib/DBD/Gofer.pm >lib/DBD/Gofer.pm.new && chmod 644 ex/* chmod 744 dbixs_rev.pl -# Filter unwanted Requires: -cat << EOF > %{name}-req -#!/bin/sh -%{__perl_requires} $* |\ - sed -e '/perl(RPC::/d' -EOF - -%define __perl_requires %{_builddir}/DBI-%{version}/%{name}-req -chmod +x %{__perl_requires} %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" @@ -88,6 +82,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue Mar 15 2011 Ville Skyttä - 1.616-3 +- Adapt dependency filtering for rpmbuild >= 4.9. + * Tue Feb 08 2011 Fedora Release Engineering - 1.616-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild