diff --git a/net-snmp.spec b/net-snmp.spec index 69509db..632ec1a 100644 --- a/net-snmp.spec +++ b/net-snmp.spec @@ -7,13 +7,13 @@ Summary: A collection of SNMP protocol tools and libraries Name: net-snmp Version: %{major_ver} -Release: 8%{?dist} +Release: 9%{?dist} Epoch: 1 License: BSDish Group: System Environment/Daemons URL: http://net-snmp.sourceforge.net/ -Source0: ftp://net-snmp.sourceforge.net/net-snmp-%{major_ver}.tar.gz +Source0: http://dl.sourceforge.net/net-snmp/net-snmp-%{major_ver}.tar.gz Source1: net-snmp.redhat.conf Source2: net-snmpd.init Source3: net-snmptrapd.init @@ -38,8 +38,11 @@ Patch13: net-snmp-5.4-ethtool-config.patch Patch14: net-snmp-5.4-free.patch Requires(pre): /sbin/chkconfig -Obsoletes: ucd-snmp -BuildRoot: %{_tmppath}/%{name}-root +Requires(post): /sbin/chkconfig +Requires(preun): /sbin/chkconfig +Requires(preun): /sbin/service +Requires(preun): /bin/rm +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: openssl-devel, bzip2-devel, beecrypt-devel, elfutils-devel BuildRequires: libselinux-devel, elfutils-libelf-devel %ifarch %{ix86} x86_64 @@ -66,13 +69,12 @@ 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 + --without tcp_wrappers : disable tcp_wrappers support %package utils Group: Applications/System Summary: Network management utilities using SNMP, from the NET-SNMP project. Requires: %{name} = %{epoch}:%{version} -Obsoletes: ucd-snmp-utils %description utils The net-snmp-utils package contains various utilities for use with the @@ -86,12 +88,12 @@ package. Group: Development/Libraries Summary: The development environment for the NET-SNMP project. Requires: %{name} = %{epoch}:%{version} -Obsoletes: ucd-snmp-devel Requires: beecrypt-devel, elfutils-devel, rpm-devel, elfutils-libelf-devel Requires: lm_sensors-devel %if %{tcp_wrappers} Requires: tcp_wrappers-devel %endif +Requires: lm_sensors-devel %description devel The net-snmp-devel package contains the development libraries and @@ -126,8 +128,6 @@ and applications. %prep %setup -q -n %{name}-%{major_ver} %patch1 -p1 -b .mnttab -#default aclocal is ugly!!!! -#%patch2 -p1 -b .libtool %patch2 -p1 -b .ipv6-sock-close %patch3 -p1 -b .readonly @@ -169,6 +169,7 @@ export LIBDIR="%{_libdir}" ucd-snmp/diskio disman/event disman/schedule tcp-mib udp-mib mibII/mta_sendmail" \ %else --with-mib-modules="host agentx smux" \ + ucd-snmp/diskio disman/event disman/schedule tcp-mib udp-mib mibII/mta_sendmail" \ %endif %if %{tcp_wrappers} --with-libwrap=%{_libdir} \ @@ -184,15 +185,16 @@ export LIBDIR="%{_libdir}" --with-sys-contact="root@localhost" < - 5.4-9 +- fix dependency on lm_sensors-devel (#229109) +- spec file cleanups + * Tue Jan 23 2007 Radek Vokál - 5.4-8 - fix occasional segfaults when snmpd starts