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
This commit is contained in:
parent
f0bb72000b
commit
3256ae7f5a
@ -11,7 +11,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: 5.7
|
Version: 5.7
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -146,13 +146,21 @@ Install the net-snmp-gui package, if you want to use this interactive utility.
|
|||||||
|
|
||||||
%package libs
|
%package libs
|
||||||
Group: Development/Libraries
|
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:
|
# the libs link against libperl.so:
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
%description libs
|
%description agent-libs
|
||||||
The net-snmp-libs package contains the runtime libraries for shared binaries
|
The net-snmp-agent-libs package contains the runtime agent libraries for shared
|
||||||
and applications.
|
binaries and applications.
|
||||||
|
|
||||||
%package python
|
%package python
|
||||||
Group: Development/Libraries
|
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}/%{_mandir}/man1/fixproc*
|
||||||
rm -f ${RPM_BUILD_ROOT}/%{_bindir}/ipf-mod.pl
|
rm -f ${RPM_BUILD_ROOT}/%{_bindir}/ipf-mod.pl
|
||||||
rm -f ${RPM_BUILD_ROOT}/%{_libdir}/*.la
|
rm -f ${RPM_BUILD_ROOT}/%{_libdir}/*.la
|
||||||
|
rm -f ${RPM_BUILD_ROOT}/%{_libdir}/libsnmp*
|
||||||
|
|
||||||
# remove special perl files
|
# remove special perl files
|
||||||
find $RPM_BUILD_ROOT -name perllocal.pod \
|
find $RPM_BUILD_ROOT -name perllocal.pod \
|
||||||
-o -name .packlist \
|
-o -name .packlist \
|
||||||
@ -383,6 +393,10 @@ echo date >>/tmp/snmp
|
|||||||
|
|
||||||
%postun libs -p /sbin/ldconfig
|
%postun libs -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post agent-libs -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun agent-libs -p /sbin/ldconfig
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
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/snmpd.conf
|
||||||
%config(noreplace,missingok) %{_sysconfdir}/snmp/snmptrapd.conf
|
%config(noreplace,missingok) %{_sysconfdir}/snmp/snmptrapd.conf
|
||||||
%{_bindir}/snmpconf
|
%{_bindir}/snmpconf
|
||||||
|
%{_bindir}/agentxtrap
|
||||||
%{_bindir}/net-snmp-create-v3-user
|
%{_bindir}/net-snmp-create-v3-user
|
||||||
%{_sbindir}/*
|
%{_sbindir}/*
|
||||||
%attr(0644,root,root) %{_mandir}/man[58]/snmp*d*
|
%attr(0644,root,root) %{_mandir}/man[58]/snmp*d*
|
||||||
@ -417,7 +432,6 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%files utils
|
%files utils
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/encode_keychange
|
%{_bindir}/encode_keychange
|
||||||
%{_bindir}/agentxtrap
|
|
||||||
%{_bindir}/snmp[^c-]*
|
%{_bindir}/snmp[^c-]*
|
||||||
%attr(0644,root,root) %{_mandir}/man1/snmp[^-]*.1*
|
%attr(0644,root,root) %{_mandir}/man1/snmp[^-]*.1*
|
||||||
%attr(0644,root,root) %{_mandir}/man1/encode_keychange*.1*
|
%attr(0644,root,root) %{_mandir}/man1/encode_keychange*.1*
|
||||||
@ -465,12 +479,24 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%files libs
|
%files libs
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc COPYING README ChangeLog.trimmed FAQ NEWS TODO
|
%doc COPYING README ChangeLog.trimmed FAQ NEWS TODO
|
||||||
%{_libdir}/lib*.so.*
|
%{_libdir}/libnetsnmp.so.*
|
||||||
%dir %{_datadir}/snmp
|
%dir %{_datadir}/snmp
|
||||||
%dir %{_datadir}/snmp/mibs
|
%dir %{_datadir}/snmp/mibs
|
||||||
%{_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
|
%changelog
|
||||||
|
* Thu Aug 11 2011 Jan Safranek <jsafrane@redhat.com> - 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 <jsafrane@redhat.com> - 1:5.7-5
|
* Tue Aug 9 2011 Jan Safranek <jsafrane@redhat.com> - 1:5.7-5
|
||||||
- integrated with systemd (#718183)
|
- integrated with systemd (#718183)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user