- Split out libs and libs-devel packages for multilib compatibility

This commit is contained in:
Phil Knirsch 2004-09-15 10:52:06 +00:00
parent 55bd54ddf3
commit 2c35e610fa
1 changed files with 35 additions and 8 deletions

View File

@ -3,7 +3,7 @@
Summary: A collection of SNMP protocol tools and libraries.
Name: net-snmp
Version: 5.1.2
Release: 4
Release: 5
License: BSDish
Group: System Environment/Daemons
Source0: ftp://net-snmp.sourceforge.net/net-snmp-%{version}.tar.gz
@ -65,7 +65,7 @@ Building option:
%package utils
Group: Applications/System
Summary: Network management utilities using SNMP, from the NET-SNMP project.
Requires: net-snmp = %{version}
Requires: %{name} = %{version}
Obsoletes: ucd-snmp-utils
%description utils
@ -79,7 +79,7 @@ package.
%package devel
Group: Development/Libraries
Summary: The development environment for the NET-SNMP project.
Requires: net-snmp = %{version}
Requires: %{name} = %{version}
Obsoletes: ucd-snmp-devel
BuildPrereq: elfutils-libelf-devel
@ -96,7 +96,7 @@ packages installed.
%package perl
Group: Development/Libraries
Summary: The perl NET-SNMP module and the mib2c tool.
Requires: net-snmp = %{version}, perl >= 5
Requires: %{name} = %{version}, perl >= 5
BuildRequires: perl >= 5
%description perl
@ -105,6 +105,23 @@ Perl.
Install the net-snmp-perl package, if you want to use mib2c or SNMP with perl.
%package libs
Group: Development/Libraries
Summary: The NET-SNMP runtime libraries.
%description libs
The net-snmp-libs package contains the runtime libraries for shared binaries
and applications.
%package libs-devel
Group: Development/Libraries
Summary: The NET-SNMP development libraries.
Requires: %{name}-libs = %{version}-%{release}
%description libs-devel
The net-snmp-libs package contains the development libraries for applications
using the net-snmp functionality.
%prep
%setup -q
%patch1 -p1 -b .mnttab
@ -260,7 +277,6 @@ rm -rf ${RPM_BUILD_ROOT}
%config(noreplace) %{_initrddir}/snmptrapd
%config(noreplace) %{_sysconfdir}/logrotate.d/snmpd
%{_datadir}/snmp
%{_libdir}/lib*.so.*
%{_bindir}/ucd5820stat
%{_sbindir}/*
%attr(0644,root,root) %{_mandir}/man[58]/*
@ -277,9 +293,6 @@ rm -rf ${RPM_BUILD_ROOT}
%files devel
%defattr(0644,root,root,0755)
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/*.la
/usr/include/*
%attr(0644,root,root) %{_mandir}/man3/*.3.*
%attr(0755,root,root) %{_bindir}/net-snmp-config
@ -290,7 +303,21 @@ rm -rf ${RPM_BUILD_ROOT}
%attr(0644,root,root) %{_mandir}/man1/mib2c.1*
%attr(0644,root,root) %{_mandir}/man3/*.3pm.*
%files libs
%defattr(0644,root,root,0755)
%{_libdir}/lib*.so.*
%{_libdir}/*.a
%{_libdir}/*.la
%files libs-devel
%defattr(0644,root,root,0755)
%{_libdir}/lib*.so
%changelog
* Wed Sep 15 2004 Phil Knirsch <pknirsch@redhat.com> 5.1.2-5
- Split out libs and libs-devel packages for multilib compatibility
* Wed Sep 08 2004 Radek Vokal <rvokal@redhat.com> 5.1.2-4
- New prereq for net-snmp-devel
- lelf check removed from configure.in (#128748)