- Add back the filtering of depends, it _is_ needed; make it more robust.
This commit is contained in:
parent
2f1f617ccf
commit
1b1e488e70
14
filter-requires.sh
Executable file
14
filter-requires.sh
Executable file
@ -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.
|
21
perl.spec
21
perl.spec
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
Name: perl
|
Name: perl
|
||||||
Version: %{perl_version}
|
Version: %{perl_version}
|
||||||
Release: 26%{?dist}
|
Release: 27%{?dist}
|
||||||
Epoch: %{perl_epoch}
|
Epoch: %{perl_epoch}
|
||||||
Summary: The Perl programming language
|
Summary: The Perl programming language
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
@ -31,6 +31,7 @@ Group: Development/Languages
|
|||||||
License: (GPL+ or Artistic) and (GPLv2+ or Artistic)
|
License: (GPL+ or Artistic) and (GPLv2+ or Artistic)
|
||||||
Url: http://www.perl.org/
|
Url: http://www.perl.org/
|
||||||
Source0: http://www.cpan.org/authors/id/N/NW/NWCLARK/%{name}-%{perl_version}.tar.bz2
|
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
|
Source12: perl-5.8.0-libnet.cfg
|
||||||
# Specific to Fedora/RHEL
|
# Specific to Fedora/RHEL
|
||||||
Patch1: perl-5.8.0-root.patch
|
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)
|
BuildRoot: %{_tmppath}/%{name}-%{perl_version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: tcsh, dos2unix, man, groff
|
BuildRequires: tcsh, dos2unix, man, groff
|
||||||
BuildRequires: gdbm-devel, db4-devel
|
BuildRequires: gdbm-devel, db4-devel
|
||||||
|
# Temporary fix for broken buildroots:
|
||||||
|
BuildRequires: gawk
|
||||||
|
|
||||||
# The long line of Perl provides.
|
# The long line of Perl provides.
|
||||||
|
|
||||||
@ -189,6 +192,19 @@ Obsoletes: perl-Time-HiRes
|
|||||||
|
|
||||||
Requires: perl-libs = %{perl_epoch}:%{perl_version}-%{release}
|
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
|
%description
|
||||||
Perl is a high-level programming language with roots in C, sed, awk
|
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.
|
# Nothing. Nada. Zilch. Zarro. Uh uh. Nope. Sorry.
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 24 2007 Stepan Kasal <skasal@redhat.com> - 4:5.8.8-27
|
||||||
|
- Add back the filtering of depends, it _is_ needed; make it more robust.
|
||||||
|
|
||||||
* Tue Aug 21 2007 Stepan Kasal <skasal@redhat.com> - 4:5.8.8-26
|
* Tue Aug 21 2007 Stepan Kasal <skasal@redhat.com> - 4:5.8.8-26
|
||||||
- Remove filter-depends.sh, it's no longer used.
|
- Remove filter-depends.sh, it's no longer used.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user