From 1b1e488e708aff5c191fca2b1db72299c439e9ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Kasal?= Date: Fri, 24 Aug 2007 18:25:48 +0000 Subject: [PATCH] - Add back the filtering of depends, it _is_ needed; make it more robust. --- filter-requires.sh | 14 ++++++++++++++ perl.spec | 21 ++++++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100755 filter-requires.sh diff --git a/filter-requires.sh b/filter-requires.sh new file mode 100755 index 0000000..828120e --- /dev/null +++ b/filter-requires.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# The original script name has been passed as the first argument: +"$@" | + awk ' + $0 != "perl(FCGI)" && + $0 != "perl(Tk)" && + $0 !~ /^perl\(Tk::/ && + $0 !~ /^perl\(Mac::/ + ' + +# We used to filter also these: +# NDBM perl(v5.6.0) perl(Tie::RangeHash) +# but they don't seem to be present anymore. diff --git a/perl.spec b/perl.spec index bec78e5..912924e 100644 --- a/perl.spec +++ b/perl.spec @@ -20,7 +20,7 @@ Name: perl Version: %{perl_version} -Release: 26%{?dist} +Release: 27%{?dist} Epoch: %{perl_epoch} Summary: The Perl programming language Group: Development/Languages @@ -31,6 +31,7 @@ Group: Development/Languages License: (GPL+ or Artistic) and (GPLv2+ or Artistic) Url: http://www.perl.org/ Source0: http://www.cpan.org/authors/id/N/NW/NWCLARK/%{name}-%{perl_version}.tar.bz2 +Source11: filter-requires.sh Source12: perl-5.8.0-libnet.cfg # Specific to Fedora/RHEL Patch1: perl-5.8.0-root.patch @@ -122,6 +123,8 @@ Patch41: perl-5.8.8-bz247386-file-spec-cwd.patch BuildRoot: %{_tmppath}/%{name}-%{perl_version}-%{release}-root-%(%{__id_u} -n) BuildRequires: tcsh, dos2unix, man, groff BuildRequires: gdbm-devel, db4-devel +# Temporary fix for broken buildroots: +BuildRequires: gawk # The long line of Perl provides. @@ -189,6 +192,19 @@ Obsoletes: perl-Time-HiRes Requires: perl-libs = %{perl_epoch}:%{perl_version}-%{release} +# Filter the automatically generated dependencies. +# +# The original script might be /usr/lib/rpm/perl.req or +# /usr/lib/rpm/redhat/perl.req, better use the original value of the macro: +%{expand:%%define prev__perl_requires %{__perl_requires}} +%define __perl_requires %{SOURCE11} %{prev__perl_requires} + +# When _use_internal_dependency_generator is 0, the perl.req script is +# called from /usr/lib/rpm{,/redhat}/find-requires.sh +# Likewise: +%{expand:%%define prev__find_requires %{__find_requires}} +%define __find_requires %{SOURCE11} %{prev__find_requires} + %description Perl is a high-level programming language with roots in C, sed, awk @@ -759,6 +775,9 @@ make test # Nothing. Nada. Zilch. Zarro. Uh uh. Nope. Sorry. %changelog +* Fri Aug 24 2007 Stepan Kasal - 4:5.8.8-27 +- Add back the filtering of depends, it _is_ needed; make it more robust. + * Tue Aug 21 2007 Stepan Kasal - 4:5.8.8-26 - Remove filter-depends.sh, it's no longer used.