[fetch-crl] Filter out autogenerated requires that are actually internal.

stevetraylen stevetraylen at fedoraproject.org
Mon Aug 16 19:23:31 UTC 2010


commit eaefb097a9632816fec534ea6f8162e4067588c4
Author: Steve Traylen <steve.traylen at cern.ch>
Date:   Mon Aug 16 21:23:06 2010 +0200

    Filter out autogenerated requires that are actually internal.

 fetch-crl.spec |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/fetch-crl.spec b/fetch-crl.spec
index 038968d..43cd329 100644
--- a/fetch-crl.spec
+++ b/fetch-crl.spec
@@ -31,6 +31,27 @@ It assumes that the installed CA files follow the hash.crl_url convention.
 %prep
 %setup -q
 
+# The perl script contains some modules inside of
+# it. These end up being rpm required but are 
+# not rpm provided. This is quite correct since they 
+# are private to this script.
+# Consequence we must filter the requires of the script.
+cat << \EOF > %{name}-req
+#!/bin/sh
+%{__perl_requires} $* |\
+sed -e '/perl(CRL)/d' |\
+sed -e '/perl(CRLWriter)/d' |\
+sed -e '/perl(ConfigTiny)/d' |\
+sed -e '/perl(FCLog)/d' |\
+sed -e '/perl(OSSL)/d' |\
+sed -e '/perl(TrustAnchor)/d' |\
+sed -e '/perl(base64)/d'
+EOF
+
+%global __perl_requires %{_builddir}/fetch-crl-%{version}/%{name}-req
+chmod +x %{__perl_requires}
+
+
 %build
 
 %clean
@@ -78,6 +99,7 @@ fi
 
 %changelog
 * Mon Aug 16 2010 Steve Traylen <steve.traylen at cern.ch> - 3.0.0-1
+- Filter out autogenerated requires that are actually internal.
 - fetch-crl.cron and fetch-crl.sysconfig no longer created.
 - Set new variable CACHE explicity.
 - Remove fetch-crl-2.8.4-mktemp.patch, since upstream now.


More information about the scm-commits mailing list