From 3256ae7f5a9af541cd91d26d42faa6ca0b5e40d2 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Thu, 11 Aug 2011 10:16:22 +0200 Subject: [PATCH] added new net-snmp-agent-libs subpackage with agent libraries -> net-snmp-libs do not need perl and lm_sensors libs Resolves: #729811 + removed libsnmp.so, it's not used in Fedora --- net-snmp.spec | 40 +++++++++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/net-snmp.spec b/net-snmp.spec index ef0e2c3..b15a022 100644 --- a/net-snmp.spec +++ b/net-snmp.spec @@ -11,7 +11,7 @@ Summary: A collection of SNMP protocol tools and libraries Name: net-snmp Version: 5.7 -Release: 5%{?dist} +Release: 6%{?dist} Epoch: 1 License: BSD @@ -146,13 +146,21 @@ Install the net-snmp-gui package, if you want to use this interactive utility. %package libs Group: Development/Libraries -Summary: The NET-SNMP runtime libraries +Summary: The NET-SNMP runtime client libraries + +%description libs +The net-snmp-libs package contains the runtime client libraries for shared +binaries and applications. + +%package agent-libs +Group: Development/Libraries +Summary: The NET-SNMP runtime agent libraries # the libs link against libperl.so: Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) -%description libs -The net-snmp-libs package contains the runtime libraries for shared binaries -and applications. +%description agent-libs +The net-snmp-agent-libs package contains the runtime agent libraries for shared +binaries and applications. %package python Group: Development/Libraries @@ -294,6 +302,8 @@ rm -f ${RPM_BUILD_ROOT}/%{_bindir}/fixproc rm -f ${RPM_BUILD_ROOT}/%{_mandir}/man1/fixproc* rm -f ${RPM_BUILD_ROOT}/%{_bindir}/ipf-mod.pl rm -f ${RPM_BUILD_ROOT}/%{_libdir}/*.la +rm -f ${RPM_BUILD_ROOT}/%{_libdir}/libsnmp* + # remove special perl files find $RPM_BUILD_ROOT -name perllocal.pod \ -o -name .packlist \ @@ -383,6 +393,10 @@ echo date >>/tmp/snmp %postun libs -p /sbin/ldconfig +%post agent-libs -p /sbin/ldconfig + +%postun agent-libs -p /sbin/ldconfig + %clean rm -rf ${RPM_BUILD_ROOT} @@ -400,6 +414,7 @@ rm -rf ${RPM_BUILD_ROOT} %config(noreplace,missingok) %{_sysconfdir}/snmp/snmpd.conf %config(noreplace,missingok) %{_sysconfdir}/snmp/snmptrapd.conf %{_bindir}/snmpconf +%{_bindir}/agentxtrap %{_bindir}/net-snmp-create-v3-user %{_sbindir}/* %attr(0644,root,root) %{_mandir}/man[58]/snmp*d* @@ -417,7 +432,6 @@ rm -rf ${RPM_BUILD_ROOT} %files utils %defattr(-,root,root,-) %{_bindir}/encode_keychange -%{_bindir}/agentxtrap %{_bindir}/snmp[^c-]* %attr(0644,root,root) %{_mandir}/man1/snmp[^-]*.1* %attr(0644,root,root) %{_mandir}/man1/encode_keychange*.1* @@ -465,12 +479,24 @@ rm -rf ${RPM_BUILD_ROOT} %files libs %defattr(-,root,root) %doc COPYING README ChangeLog.trimmed FAQ NEWS TODO -%{_libdir}/lib*.so.* +%{_libdir}/libnetsnmp.so.* %dir %{_datadir}/snmp %dir %{_datadir}/snmp/mibs %{_datadir}/snmp/mibs/* +%files agent-libs +%defattr(-,root,root) +%{_libdir}/libnetsnmpagent*.so.* +%{_libdir}/libnetsnmphelpers*.so.* +%{_libdir}/libnetsnmpmibs*.so.* +%{_libdir}/libnetsnmptrapd*.so.* + %changelog +* Thu Aug 11 2011 Jan Safranek - 1:5.7-6 +- added new net-snmp-agent-libs subpackage with agent libraries + -> net-snmp-libs do not need perl and lm_sensors libs +- removed libsnmp.so, it's not used in Fedora (#729811) + * Tue Aug 9 2011 Jan Safranek - 1:5.7-5 - integrated with systemd (#718183)