Fri, 25 Mar 2011 20:08:38 +0100
Backport RPM boilerplate logic required by legacy OpenPKG scripts.
snmp/snmp.spec | file | annotate | diff | comparison | revisions |
1.1 --- a/snmp/snmp.spec Fri Mar 25 20:06:11 2011 +0100 1.2 +++ b/snmp/snmp.spec Fri Mar 25 20:08:38 2011 +0100 1.3 @@ -32,7 +32,7 @@ 1.4 Group: Network 1.5 License: BSD 1.6 Version: 5.6.1 1.7 -Release: 20110104 1.8 +Release: 20110106 1.9 1.10 # package options 1.11 %option with_fsl yes 1.12 @@ -52,8 +52,10 @@ 1.13 Patch0: snmp.patch 1.14 1.15 # build information 1.16 -BuildPreReq: OpenPKG, openpkg >= 20100101, gcc 1.17 -PreReq: OpenPKG, openpkg >= 20100101 1.18 +Prefix: %{l_prefix} 1.19 +BuildRoot: %{l_buildroot} 1.20 +BuildPreReq: OpenPKG, openpkg >= 20060823, gcc 1.21 +PreReq: OpenPKG, openpkg >= 20060823 1.22 BuildPreReq: openssl 1.23 PreReq: openssl 1.24 %if "%{with_fsl}" == "yes" 1.25 @@ -64,6 +66,8 @@ 1.26 BuildPreReq: perl 1.27 PreReq: perl 1.28 %endif 1.29 +AutoReq: no 1.30 +AutoReqProv: no 1.31 1.32 %description 1.33 This is a toolkit relating to the Simple Network Management Protocol 1.34 @@ -173,6 +177,7 @@ 1.35 %{l_make} %{l_mflags} 1.36 1.37 %install 1.38 + rm -rf $RPM_BUILD_ROOT 1.39 1.40 # install package 1.41 %{l_shtool} subst -v \ 1.42 @@ -226,6 +231,7 @@ 1.43 %files -f files 1.44 1.45 %clean 1.46 + rm -rf $RPM_BUILD_ROOT 1.47 1.48 %post 1.49 # after upgrade, restart service