From c4702f59d72d8cd8be8c7e7a8e85e31f5bb72f51 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Mon, 11 Nov 2002 20:06:04 +0000 Subject: [PATCH] strip binaries --- bind/bind.spec | 3 ++- expat/expat.spec | 3 ++- glimpse/glimpse.spec | 3 ++- minicom/minicom.spec | 5 ++++- samba/samba.spec | 3 ++- uucp/uucp.spec | 3 ++- 6 files changed, 14 insertions(+), 6 deletions(-) diff --git a/bind/bind.spec b/bind/bind.spec index 19a3d34850..a922f847bd 100644 --- a/bind/bind.spec +++ b/bind/bind.spec @@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE] Group: DNS License: ISC Version: 9.2.1 -Release: 20021029 +Release: 20021111 # list of sources Source0: ftp://ftp.isc.org/isc/bind9/%{version}/bind-%{version}.tar.gz @@ -85,6 +85,7 @@ AutoReqProv: no %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT # strip down installation + strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/isc-config.sh rm -rf $RPM_BUILD_ROOT%{l_prefix}/include diff --git a/expat/expat.spec b/expat/expat.spec index ccdcd4c459..77a3fa1fd8 100644 --- a/expat/expat.spec +++ b/expat/expat.spec @@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS] Group: Converter License: MIT/X11-style Version: 1.95.5 -Release: 20020907 +Release: 20021111 # list of sources Source0: http://download.sourceforge.net/expat/expat-%{version}.tar.gz @@ -64,6 +64,7 @@ AutoReqProv: no %install rm -rf $RPM_BUILD_ROOT %{l_make} %{l_mflags} prefix=$RPM_BUILD_ROOT%{l_prefix} install + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} %files -f files diff --git a/glimpse/glimpse.spec b/glimpse/glimpse.spec index 1452340b1d..e52915998c 100644 --- a/glimpse/glimpse.spec +++ b/glimpse/glimpse.spec @@ -33,7 +33,7 @@ Distribution: OpenPKG [PRIV] Group: Text License: Commercial/Non-Profit Version: 4.17.1 -Release: 20021011 +Release: 20021111 # list of sources Source0: http://webglimpse.net/trial/glimpse-%{version}.tar.gz @@ -71,6 +71,7 @@ AutoReqProv: no rm -rf $RPM_BUILD_ROOT%{l_prefix}/man %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/man/man1 %{l_shtool} install -c -m 644 *.1 */*.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} %files -f files diff --git a/minicom/minicom.spec b/minicom/minicom.spec index fc54f96686..6d3418fb04 100644 --- a/minicom/minicom.spec +++ b/minicom/minicom.spec @@ -32,7 +32,7 @@ Distribution: OpenPKG [BASE] Group: Communication License: BSD Version: 2.00.0 -Release: 20020622 +Release: 20021111 # list of sources Source0: http://www.netsonic.fi/~walker/minicom-%{version}.src.tar.gz @@ -106,6 +106,9 @@ AutoReqProv: no %{l_shtool} install -c -m 644 \ doc/minirc.dfl $RPM_BUILD_ROOT%{l_prefix}/etc/minicom/ + # strip binaries + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true + # determine installation files attr="4755,uucp,%{l_mgrp}" case "%{l_target}" in diff --git a/samba/samba.spec b/samba/samba.spec index d057ddb8d6..799441d965 100644 --- a/samba/samba.spec +++ b/samba/samba.spec @@ -38,7 +38,7 @@ Distribution: OpenPKG [BASE] Group: Filesystem License: GPL Version: 2.2.6 -Release: 20021017 +Release: 20021111 # list of sources Source0: http://download.samba.org/samba/ftp/samba-%{version}.tar.bz2 @@ -140,6 +140,7 @@ AutoReqProv: no rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/samba/images rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/samba/include strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true + strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d %{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};g' \ %{SOURCE rc.samba} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ diff --git a/uucp/uucp.spec b/uucp/uucp.spec index 369ed74a42..c96abd4920 100644 --- a/uucp/uucp.spec +++ b/uucp/uucp.spec @@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE] Group: Communication License: GPL Version: 1.06.1 -Release: 20020816 +Release: 20021111 # list of sources Source0: ftp://ftp.gnu.org/gnu/uucp/uucp-%{version}.tar.gz @@ -117,6 +117,7 @@ AutoReqProv: no $RPM_BUILD_ROOT%{l_prefix}/var/uucp/log/uucp.debug rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2> /dev/null || true + strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* 2> /dev/null || true %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ %{l_files_std} \ '%config %{l_prefix}/etc/uucp/*'