Transform script-based filtering to implicit
This commit is contained in:
parent
1e30d4271d
commit
91f758a37e
@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# The original script name has been passed as the first argument:
|
||||
"$@" |
|
||||
awk '
|
||||
$0 != "perl(FCGI)" &&
|
||||
$0 != "perl(Your::Module::Here)" &&
|
||||
$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.
|
27
perl.spec
27
perl.spec
@ -21,7 +21,7 @@
|
||||
Name: perl
|
||||
Version: %{perl_version}
|
||||
# release number must be even higher, becase dual-lived modules will be broken otherwise
|
||||
Release: 137%{?dist}
|
||||
Release: 138%{?dist}
|
||||
Epoch: %{perl_epoch}
|
||||
Summary: Practical Extraction and Report Language
|
||||
Group: Development/Languages
|
||||
@ -34,7 +34,6 @@ Group: Development/Languages
|
||||
License: (GPL+ or Artistic) and (GPLv2+ or Artistic) and Copyright Only and MIT and Public Domain and UCD
|
||||
Url: http://www.perl.org/
|
||||
Source0: http://www.cpan.org/src/5.0/perl-%{perl_version}.tar.gz
|
||||
Source1: filter-requires.sh
|
||||
Source2: perl-5.8.0-libnet.cfg
|
||||
Source3: macros.perl
|
||||
|
||||
@ -156,19 +155,6 @@ Requires: perl-libs = %{perl_epoch}:%{perl_version}-%{release}
|
||||
# gets installed before perl.
|
||||
Requires(post): perl-libs
|
||||
|
||||
# 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 %{SOURCE1} %{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 %{SOURCE1} %{prev__find_requires}
|
||||
|
||||
|
||||
%description
|
||||
Perl is a high-level programming language with roots in C, sed, awk and shell
|
||||
@ -919,10 +905,12 @@ find . -name \*.orig -exec rm -fv {} \;
|
||||
%filter_from_provides /^perl(bytes)$/d
|
||||
%filter_from_provides /^perl(utf8)$/d
|
||||
%filter_from_provides /^perl(DB)$/d
|
||||
%filter_from_requires /^perl(Mac::BuildTools)/d
|
||||
# Filter the automatically generated dependencies.
|
||||
%filter_from_requires /^perl(FCGI)/d
|
||||
%filter_from_requires /^perl(Mac::/d
|
||||
%filter_from_requires /^perl(Tk)/d
|
||||
%filter_from_requires /^perl(Tk::/d
|
||||
%filter_from_requires /^perl(Your::Module::Here)/d
|
||||
%filter_from_requires /^perl(Mac::InternetConfig)/d
|
||||
%filter_from_requires /^perl(Tk::Pod)/d
|
||||
%?perl_default_filter
|
||||
}
|
||||
|
||||
@ -1788,6 +1776,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# Old changelog entries are preserved in CVS.
|
||||
%changelog
|
||||
* Tue Oct 05 2010 Petr Pisar <ppisar@redhat.com> - 4:5.12.2-138
|
||||
- Consolidate Requires filtering
|
||||
|
||||
* Fri Oct 1 2010 Marcela Mašláňová <mmaslano@redhat.com> - 4:5.12.2-137
|
||||
- filter useless requires, provide libperl.so
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user