2007-01-16 00:23:16 +01:00
|
|
|
#
|
2010-10-06 23:14:57 +02:00
|
|
|
# spec file for package libsmi (Version 0.4.8)
|
2007-01-16 00:23:16 +01:00
|
|
|
#
|
2010-10-06 23:14:57 +02:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:23:16 +01:00
|
|
|
#
|
2009-01-12 02:04:18 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:23:16 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-01-12 02:04:18 +01:00
|
|
|
|
2007-01-16 00:23:16 +01:00
|
|
|
Name: libsmi
|
2010-10-06 23:14:57 +02:00
|
|
|
Version: 0.4.8
|
|
|
|
Release: 1
|
2009-01-12 02:04:18 +01:00
|
|
|
AutoReqProv: on
|
2007-01-16 00:23:16 +01:00
|
|
|
Group: System/Libraries
|
2010-10-06 23:14:57 +02:00
|
|
|
License: MIT
|
2009-01-12 02:04:18 +01:00
|
|
|
Url: http://www.ibr.cs.tu-bs.de/projects/libsmi
|
2007-01-16 00:23:16 +01:00
|
|
|
Summary: A Library to Access SMI MIB Information
|
2010-10-06 23:14:57 +02:00
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
Patch0: libsmi-0.4.8-parser.patch
|
|
|
|
Patch1: libsmi-0.4.8-gnu-source.patch
|
2010-11-12 19:12:31 +01:00
|
|
|
Patch2: libsmi-CVE-2010-2891.patch
|
2007-01-16 00:23:16 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
2010-10-06 23:14:57 +02:00
|
|
|
BuildRequires: bison flex
|
|
|
|
|
2007-01-16 00:23:16 +01:00
|
|
|
%description
|
|
|
|
The purpose of libsmi is to
|
|
|
|
|
|
|
|
* Give network management applications a concise programmer-friendly
|
|
|
|
interface to access MIB module information
|
|
|
|
|
|
|
|
* Separate the knowledge on SMI from the main parts of management
|
|
|
|
applications
|
|
|
|
|
|
|
|
* Allow addition of new kinds of MIB repositories without the need to
|
|
|
|
adapt applications that make use of libsmi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Frank Strauss <strauss@ibr.cs.tu-bs.de>
|
|
|
|
|
|
|
|
%package devel
|
2010-10-06 23:14:57 +02:00
|
|
|
License: MIT
|
|
|
|
Summary: Libsmi Header Files And Static Libraries
|
2007-01-16 00:23:16 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2009-01-12 02:04:18 +01:00
|
|
|
Requires: %{name} = %{version} glibc-devel
|
2007-01-16 00:23:16 +01:00
|
|
|
|
2010-10-06 23:14:57 +02:00
|
|
|
%package -n libsmi2
|
|
|
|
License: MIT
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Libsmi Shared Libraries
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description -n libsmi2
|
|
|
|
The purpose of libsmi is to
|
|
|
|
|
|
|
|
* Give network management applications a concise programmer-friendly
|
|
|
|
interface to access MIB module information
|
|
|
|
|
|
|
|
* Separate the knowledge on SMI from the main parts of management
|
|
|
|
applications
|
|
|
|
|
|
|
|
* Allow addition of new kinds of MIB repositories without the need to
|
|
|
|
adapt applications that make use of libsmi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Frank Strauss <strauss@ibr.cs.tu-bs.de>
|
|
|
|
|
2007-01-16 00:23:16 +01:00
|
|
|
%description devel
|
|
|
|
This package contains the header files and static libraries of package
|
|
|
|
libsmi.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Frank Strauss <strauss@ibr.cs.tu-bs.de>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2010-10-06 23:14:57 +02:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2010-11-12 19:12:31 +01:00
|
|
|
%patch2
|
2007-01-16 00:23:16 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf --force --install
|
2009-01-12 02:04:18 +01:00
|
|
|
%configure --disable-static --with-pic --enable-smi \
|
2007-01-16 00:23:16 +01:00
|
|
|
--enable-sming \
|
|
|
|
--with-mibdir=%{_datadir}/mibs
|
2010-10-06 23:14:57 +02:00
|
|
|
|
2009-01-12 02:04:18 +01:00
|
|
|
%{__make} %{?jobs:-j%jobs}
|
2007-01-16 00:23:16 +01:00
|
|
|
|
|
|
|
%install
|
2010-10-06 23:14:57 +02:00
|
|
|
make install DESTDIR=%buildroot
|
|
|
|
|
2009-01-12 02:04:18 +01:00
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
2007-01-16 00:23:16 +01:00
|
|
|
|
2010-10-06 23:14:57 +02:00
|
|
|
%post -n libsmi2 -p /sbin/ldconfig
|
2007-01-16 00:23:16 +01:00
|
|
|
|
2010-10-06 23:14:57 +02:00
|
|
|
%postun -n libsmi2 -p /sbin/ldconfig
|
2007-01-16 00:23:16 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc ANNOUNCE COPYING ChangeLog README THANKS TODO doc/*.txt
|
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/mibs
|
|
|
|
%{_datadir}/pibs
|
|
|
|
|
2010-10-06 23:14:57 +02:00
|
|
|
%files -n libsmi2
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libsmi.so.*
|
|
|
|
|
2007-01-16 00:23:16 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/libsmi.so
|
|
|
|
%{_libdir}/pkgconfig/libsmi.pc
|
|
|
|
%{_datadir}/aclocal/libsmi.m4
|
|
|
|
|
2009-01-12 02:04:18 +01:00
|
|
|
%changelog
|