2007-01-16 00:23:16 +01:00
|
|
|
#
|
2011-11-23 14:46:50 +01:00
|
|
|
# spec file for package libsmi
|
2007-01-16 00:23:16 +01:00
|
|
|
#
|
2015-02-04 15:32:14 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
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
|
2012-11-13 11:53:52 +01:00
|
|
|
Release: 0
|
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
|
2012-11-13 11:53:52 +01:00
|
|
|
License: MIT
|
|
|
|
Group: System/Libraries
|
2015-01-23 18:38:38 +01:00
|
|
|
Source: https://www.ibr.cs.tu-bs.de/projects/%{name}/download/%{name}-%{version}.tar.gz
|
2010-10-06 23:14:57 +02:00
|
|
|
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
|
2012-11-13 11:53:52 +01:00
|
|
|
Patch3: libsmi-flex.patch
|
2015-01-21 08:12:18 +01:00
|
|
|
Patch4: libsmi-bison-3.0.patch
|
2015-02-04 15:32:14 +01:00
|
|
|
Patch5: libsmi-exports.patch
|
2007-01-16 00:23:16 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-11-13 11:53:52 +01:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: libtool
|
2015-02-04 15:32:14 +01:00
|
|
|
BuildRequires: pkg-config
|
2010-10-06 23:14:57 +02:00
|
|
|
|
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
|
|
|
|
|
|
|
|
%package devel
|
2010-10-06 23:14:57 +02:00
|
|
|
Summary: Libsmi Header Files And Static Libraries
|
2007-01-16 00:23:16 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-11-13 11:53:52 +01:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: glibc-devel
|
2007-01-16 00:23:16 +01:00
|
|
|
|
2010-10-06 23:14:57 +02:00
|
|
|
%package -n libsmi2
|
|
|
|
Summary: Libsmi Shared Libraries
|
2012-11-13 11:53:52 +01:00
|
|
|
Group: System/Libraries
|
2010-10-06 23:14:57 +02:00
|
|
|
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
|
|
|
|
|
2007-01-16 00:23:16 +01:00
|
|
|
%description devel
|
|
|
|
This package contains the header files and static libraries of package
|
|
|
|
libsmi.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2010-10-06 23:14:57 +02:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2010-11-12 19:12:31 +01:00
|
|
|
%patch2
|
2012-11-13 11:53:52 +01:00
|
|
|
%if 0%{?suse_version} > 1220
|
|
|
|
%patch3 -p1
|
|
|
|
%endif
|
2015-01-21 08:12:18 +01:00
|
|
|
%patch4 -p1
|
2015-02-04 15:32:14 +01:00
|
|
|
%patch5 -p1
|
2007-01-16 00:23:16 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf --force --install
|
2012-11-13 11:53:52 +01:00
|
|
|
%configure --disable-static \
|
|
|
|
--with-pic --enable-smi \
|
|
|
|
--enable-sming \
|
|
|
|
--with-mibdir=%{_datadir}/mibs
|
2015-01-23 18:38:38 +01:00
|
|
|
# Parallel build disabled
|
|
|
|
make #%{?_smp_mflags}
|
2007-01-16 00:23:16 +01:00
|
|
|
|
|
|
|
%install
|
2010-10-06 23:14:57 +02:00
|
|
|
make install DESTDIR=%buildroot
|
2012-11-13 11:53:52 +01:00
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
2007-01-16 00:23:16 +01:00
|
|
|
|
2015-02-04 15:32:14 +01:00
|
|
|
%check
|
|
|
|
make check || cat test/test-suite.log && exit 0
|
|
|
|
|
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
|
|
|
|
|
|
|
%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
|