- SMUX support is still needed .. will disappear later!

- static libs should be in devel not libs (#203571)
- fix lm_sensors issues
This commit is contained in:
Radek Vokál 2006-08-23 13:11:24 +00:00
parent a767e9f37f
commit b2daee0b91

View File

@ -7,7 +7,7 @@
Summary: A collection of SNMP protocol tools and libraries. Summary: A collection of SNMP protocol tools and libraries.
Name: net-snmp Name: net-snmp
Version: %{major_ver}.0 Version: %{major_ver}.0
Release: 4%{?dist} Release: 5%{?dist}
License: BSDish License: BSDish
Group: System Environment/Daemons Group: System Environment/Daemons
@ -39,6 +39,7 @@ Patch26: net-snmp-5.3_vendorperl.patch
Patch27: net-snmp-5.3.1-multilib.patch Patch27: net-snmp-5.3.1-multilib.patch
Patch28: net-snmp-5.3.1-retrans_time.patch Patch28: net-snmp-5.3.1-retrans_time.patch
Patch29: net-snmp-5.3.1-config_libdir.patch Patch29: net-snmp-5.3.1-config_libdir.patch
Patch30: net-snmp-5.3.1-lm_sensors.patch
Prereq: /sbin/chkconfig Prereq: /sbin/chkconfig
Obsoletes: ucd-snmp Obsoletes: ucd-snmp
@ -144,6 +145,7 @@ and applications.
%patch27 -p1 -b .multilib %patch27 -p1 -b .multilib
%patch28 -p0 -b .retrans_ms %patch28 -p0 -b .retrans_ms
%patch29 -p1 -b .libdir %patch29 -p1 -b .libdir
%patch30 -p1 -b .lm_sensors
# Do this patch with a perl hack... # Do this patch with a perl hack...
perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh
@ -161,9 +163,9 @@ export LIBDIR="%{_libdir}"
--with-logfile="/var/log/snmpd.log" \ --with-logfile="/var/log/snmpd.log" \
--with-persistent-directory="/var/net-snmp" \ --with-persistent-directory="/var/net-snmp" \
%ifarch %{ix86} x86_64 %ifarch %{ix86} x86_64
--with-mib-modules="host agentx ucd-snmp/lmSensors ucd-snmp/diskio disman/event-mib tcp-mib udp-mib" \ --with-mib-modules="host agentx smux ucd-snmp/lmSensors ucd-snmp/diskio disman/event-mib tcp-mib udp-mib" \
%else %else
--with-mib-modules="host agentx " \ --with-mib-modules="host agentx smux" \
%endif %endif
%if %{tcp_wrappers} %if %{tcp_wrappers}
--with-libwrap=%{_libdir} \ --with-libwrap=%{_libdir} \
@ -330,6 +332,7 @@ rm -rf ${RPM_BUILD_ROOT}
%files devel %files devel
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%{_libdir}/lib*.so %{_libdir}/lib*.so
%{_libdir}/*.a
/usr/include/* /usr/include/*
%attr(0644,root,root) %{_mandir}/man3/*.3.* %attr(0644,root,root) %{_mandir}/man3/*.3.*
%attr(0755,root,root) %{_bindir}/net-snmp-config* %attr(0755,root,root) %{_bindir}/net-snmp-config*
@ -343,9 +346,13 @@ rm -rf ${RPM_BUILD_ROOT}
%files libs %files libs
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/lib*.so.* %{_libdir}/lib*.so.*
%{_libdir}/*.a
%changelog %changelog
* Wed Aug 23 2006 Radek Vokal <rvokal@redhat.com> 5.3.1.0-5
- SMUX support is still needed .. will disappear later!
- static libs should be in devel not libs (#203571)
- fix lm_sensors issues
* Tue Aug 22 2006 Radek Vokal <rvokal@redhat.com> 5.3.1.0-4 * Tue Aug 22 2006 Radek Vokal <rvokal@redhat.com> 5.3.1.0-4
- turn off SMUX support (#110931) - turn off SMUX support (#110931)
- add dist tag - add dist tag