Accepting request 946809 from network:utilities

OBS-URL: https://build.opensuse.org/request/show/946809
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libsmi?expand=0&rev=25
This commit is contained in:
Dominique Leuenberger 2022-01-19 23:11:54 +00:00 committed by Git OBS Bridge
commit 77eaa89951
2 changed files with 17 additions and 16 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jan 4 21:45:50 UTC 2022 - Dirk Müller <dmueller@suse.com>
- spec file cleanup
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Feb 27 14:49:24 UTC 2015 - dimstar@opensuse.org Fri Feb 27 14:49:24 UTC 2015 - dimstar@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package libsmi # spec file for package libsmi
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2022 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,17 +12,17 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: libsmi Name: libsmi
Version: 0.4.8 Version: 0.4.8
Release: 0 Release: 0
Url: http://www.ibr.cs.tu-bs.de/projects/libsmi
Summary: A Library to Access SMI MIB Information Summary: A Library to Access SMI MIB Information
License: MIT License: MIT
Group: System/Libraries Group: System/Libraries
URL: https://www.ibr.cs.tu-bs.de/projects/libsmi
Source: https://www.ibr.cs.tu-bs.de/projects/%{name}/download/%{name}-%{version}.tar.gz Source: https://www.ibr.cs.tu-bs.de/projects/%{name}/download/%{name}-%{version}.tar.gz
Patch0: libsmi-0.4.8-parser.patch Patch0: libsmi-0.4.8-parser.patch
Patch1: libsmi-0.4.8-gnu-source.patch Patch1: libsmi-0.4.8-gnu-source.patch
@ -30,11 +30,10 @@ Patch2: libsmi-CVE-2010-2891.patch
Patch3: libsmi-flex.patch Patch3: libsmi-flex.patch
Patch4: libsmi-bison-3.0.patch Patch4: libsmi-bison-3.0.patch
Patch5: libsmi-exports.patch Patch5: libsmi-exports.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: bison BuildRequires: bison
BuildRequires: flex BuildRequires: flex
BuildRequires: libtool BuildRequires: libtool
BuildRequires: pkg-config BuildRequires: pkgconfig
%description %description
The purpose of libsmi is to The purpose of libsmi is to
@ -56,7 +55,7 @@ Requires: glibc-devel
%package -n libsmi2 %package -n libsmi2
Summary: Libsmi Shared Libraries Summary: Libsmi Shared Libraries
Group: System/Libraries Group: System/Libraries
Requires: %{name} = %{version} Requires: %{name} = %{version}
%description -n libsmi2 %description -n libsmi2
@ -93,33 +92,30 @@ autoreconf --force --install
--enable-sming \ --enable-sming \
--with-mibdir=%{_datadir}/mibs --with-mibdir=%{_datadir}/mibs
# Parallel build disabled # Parallel build disabled
make #%{?_smp_mflags} %make_build #%{?_smp_mflags}
%install %install
make install DESTDIR=%buildroot %make_install
rm -f %{buildroot}%{_libdir}/*.la find %{buildroot} -type f -name "*.la" -delete -print
%check %check
make check || cat test/test-suite.log && exit 0 %make_build check || cat test/test-suite.log && exit 0
%post -n libsmi2 -p /sbin/ldconfig %post -n libsmi2 -p /sbin/ldconfig
%postun -n libsmi2 -p /sbin/ldconfig %postun -n libsmi2 -p /sbin/ldconfig
%files %files
%defattr(-, root, root) %license COPYING
%doc ANNOUNCE COPYING ChangeLog README THANKS TODO doc/*.txt %doc ANNOUNCE ChangeLog README THANKS TODO doc/*.txt
%doc %{_mandir}/man?/* %{_mandir}/man?/*
%{_bindir}/* %{_bindir}/*
%{_datadir}/mibs %{_datadir}/mibs
%{_datadir}/pibs %{_datadir}/pibs
%files -n libsmi2 %files -n libsmi2
%defattr(-, root, root)
%{_libdir}/libsmi.so.* %{_libdir}/libsmi.so.*
%files devel %files devel
%defattr(-, root, root)
%{_includedir}/* %{_includedir}/*
%{_libdir}/libsmi.so %{_libdir}/libsmi.so
%{_libdir}/pkgconfig/libsmi.pc %{_libdir}/pkgconfig/libsmi.pc