# HG changeset patch # User Michael Schloh von Bennewitz # Date 1301080118 -3600 # Node ID efe7dfa57059efd163791a7be74099b02ea4c6c6 # Parent 6601d28cfe52c9cfae8d541a3862826e7624b2ae Backport RPM boilerplate logic required by legacy OpenPKG scripts. diff -r 6601d28cfe52 -r efe7dfa57059 snmp/snmp.spec --- a/snmp/snmp.spec Fri Mar 25 20:06:11 2011 +0100 +++ b/snmp/snmp.spec Fri Mar 25 20:08:38 2011 +0100 @@ -32,7 +32,7 @@ Group: Network License: BSD Version: 5.6.1 -Release: 20110104 +Release: 20110106 # package options %option with_fsl yes @@ -52,8 +52,10 @@ Patch0: snmp.patch # build information -BuildPreReq: OpenPKG, openpkg >= 20100101, gcc -PreReq: OpenPKG, openpkg >= 20100101 +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20060823, gcc +PreReq: OpenPKG, openpkg >= 20060823 BuildPreReq: openssl PreReq: openssl %if "%{with_fsl}" == "yes" @@ -64,6 +66,8 @@ BuildPreReq: perl PreReq: perl %endif +AutoReq: no +AutoReqProv: no %description This is a toolkit relating to the Simple Network Management Protocol @@ -173,6 +177,7 @@ %{l_make} %{l_mflags} %install + rm -rf $RPM_BUILD_ROOT # install package %{l_shtool} subst -v \ @@ -226,6 +231,7 @@ %files -f files %clean + rm -rf $RPM_BUILD_ROOT %post # after upgrade, restart service