فهرست منبع

strip junk from installation

Michael van Elst 23 سال پیش
والد
کامیت
7992c29fd3
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      cfengine/cfengine.spec

+ 6 - 2
cfengine/cfengine.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
 Group:        System
 License:      GPL
 Version:      2.0.5pre2
-Release:      20021231
+Release:      20030116
 
 #   list of sources
 Source0:      ftp://ftp.iu.hio.no/pub/cfengine/cfengine-%{version}.tar.gz
@@ -41,7 +41,7 @@ Source0:      ftp://ftp.iu.hio.no/pub/cfengine/cfengine-%{version}.tar.gz
 #   build information
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
-BuildPreReq:  OpenPKG, openpkg >= 20020206, db, openssl
+BuildPreReq:  OpenPKG, openpkg >= 20020206, db, openssl, bison
 PreReq:       OpenPKG, openpkg >= 20020206, db, openssl
 AutoReq:      no
 AutoReqProv:  no
@@ -72,7 +72,11 @@ AutoReqProv:  no
 %install
     rm -rf $RPM_BUILD_ROOT
     %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
+
+    # strip installation area
+    rm -f  $RPM_BUILD_ROOT%{l_prefix}/info/dir
     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