From bbbaa780b4bbf50ce9eb08222f5bbd3ea7a2b63b Mon Sep 17 00:00:00 2001 From: Jan Šafránek Date: Jan 12 2010 09:22:08 +0000 Subject: add clear description to legacy options in the spec file --- diff --git a/net-snmp.spec b/net-snmp.spec index 392bb32..802371d 100644 --- a/net-snmp.spec +++ b/net-snmp.spec @@ -3,10 +3,10 @@ # use nestnmp_check 0 to speed up packaging by disabling 'make test' %{!?netsnmp_check: %global netsnmp_check 1} +# allow compilation on Fedora 11 and older +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} # Arches on which we need to prevent arch conflicts on net-snmp-config.h %define multilib_arches %{ix86} ia64 ppc ppc64 s390 s390x x86_64 sparc sparcv9 sparc64 -# allow compilation on old Fedoras -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Summary: A collection of SNMP protocol tools and libraries Name: net-snmp @@ -69,9 +69,6 @@ documentation, etc. You will probably also want to install the net-snmp-utils package, which contains NET-SNMP utilities. -Building option: - --without tcp_wrappers : disable tcp_wrappers support - %package utils Group: Applications/System Summary: Network management utilities using SNMP, from the NET-SNMP project @@ -305,6 +302,7 @@ LD_LIBRARY_PATH=${RPM_BUILD_ROOT}/%{_libdir} make test /sbin/chkconfig --add snmptrapd # move local state files from /var/net-snmp to new location when updating the package +# (Fedora 11: /var/net-snmp, Fedora 12: /var/lib/net-snmp) /bin/mv %{_localstatedir}/net-snmp/* %{_localstatedir}/lib/net-snmp/ &>/dev/null || :