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
|
|
|
#
|
2022-01-16 16:32:07 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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.
|
|
|
|
|
2022-01-16 16:32:07 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:23:16 +01:00
|
|
|
#
|
|
|
|
|
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
|
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
|
2022-01-16 16:32:07 +01:00
|
|
|
URL: https://www.ibr.cs.tu-bs.de/projects/libsmi
|
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
|
2012-11-13 11:53:52 +01:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: libtool
|
2022-01-16 16:32:07 +01:00
|
|
|
BuildRequires: pkgconfig
|
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
|
2022-01-16 16:32:07 +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
|
2024-03-01 11:46:48 +01:00
|
|
|
%patch -P 0 -p1
|
|
|
|
%patch -P 1 -p1
|
|
|
|
%patch -P 2
|
2015-02-27 19:07:14 +01:00
|
|
|
%if 0%{?suse_version} > 1220 && 0%{?suse_version} < 1321
|
2024-03-01 11:46:48 +01:00
|
|
|
%patch -P 3 -p1
|
2012-11-13 11:53:52 +01:00
|
|
|
%endif
|
2024-03-01 11:46:48 +01:00
|
|
|
%patch -P 4 -p1
|
|
|
|
%patch -P 5 -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
|
2022-01-16 16:32:07 +01:00
|
|
|
%make_build #%{?_smp_mflags}
|
2007-01-16 00:23:16 +01:00
|
|
|
|
|
|
|
%install
|
2022-01-16 16:32:07 +01:00
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2007-01-16 00:23:16 +01:00
|
|
|
|
2015-02-04 15:32:14 +01:00
|
|
|
%check
|
2022-01-16 16:32:07 +01:00
|
|
|
%make_build check || cat test/test-suite.log && exit 0
|
2015-02-04 15:32:14 +01:00
|
|
|
|
2010-10-06 23:14:57 +02:00
|
|
|
%post -n libsmi2 -p /sbin/ldconfig
|
|
|
|
%postun -n libsmi2 -p /sbin/ldconfig
|
2007-01-16 00:23:16 +01:00
|
|
|
|
|
|
|
%files
|
2022-01-16 16:32:07 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc ANNOUNCE ChangeLog README THANKS TODO doc/*.txt
|
|
|
|
%{_mandir}/man?/*
|
2007-01-16 00:23:16 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/mibs
|
|
|
|
%{_datadir}/pibs
|
|
|
|
|
2010-10-06 23:14:57 +02:00
|
|
|
%files -n libsmi2
|
|
|
|
%{_libdir}/libsmi.so.*
|
|
|
|
|
2007-01-16 00:23:16 +01:00
|
|
|
%files devel
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/libsmi.so
|
|
|
|
%{_libdir}/pkgconfig/libsmi.pc
|
|
|
|
%{_datadir}/aclocal/libsmi.m4
|
|
|
|
|
2009-01-12 02:04:18 +01:00
|
|
|
%changelog
|