Accepting request 974625 from home:favogt:branches:Base:System

- Replace invalid use of chrpath with patching out -static (boo#1199134)
- Mention the sonum in %files
- Drop meanwhile unnecessary libsmbios-rpmlintrc

OBS-URL: https://build.opensuse.org/request/show/974625
OBS-URL: https://build.opensuse.org/package/show/Base:System/libsmbios?expand=0&rev=54
This commit is contained in:
Marcus Meissner 2022-05-06 07:55:25 +00:00 committed by Git OBS Bridge
parent b314bafd2a
commit df68f191e5
5 changed files with 14 additions and 10 deletions

BIN
libsmbios-2.4.3.3.gf01a217.obscpio (Stored with Git LFS)

Binary file not shown.

View File

@ -1 +0,0 @@
addFilter("E: shlib-policy-name-error")

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue May 3 07:24:33 UTC 2022 - Fabian Vogt <fvogt@suse.com>
- Replace invalid use of chrpath with patching out -static (boo#1199134)
- Mention the sonum in %files
- Drop meanwhile unnecessary libsmbios-rpmlintrc
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jul 09 12:52:41 UTC 2021 - trenn@suse.de Fri Jul 09 12:52:41 UTC 2021 - trenn@suse.de

View File

@ -2,4 +2,3 @@ name: libsmbios
version: 2.4.3.3.gf01a217 version: 2.4.3.3.gf01a217
mtime: 1609786060 mtime: 1609786060
commit: f01a21763180c9c11d70326ad36b9761cde9131c commit: f01a21763180c9c11d70326ad36b9761cde9131c

View File

@ -1,7 +1,7 @@
# #
# spec file for package libsmbios # spec file for package libsmbios
# #
# Copyright (c) 2021 SUSE LLC # 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
@ -16,7 +16,8 @@
# #
%define libname libsmbios_c2 %define sonum 2
%define libname libsmbios_c%{sonum}
Name: libsmbios Name: libsmbios
Version: 2.4.3.3.gf01a217 Version: 2.4.3.3.gf01a217
Release: 0 Release: 0
@ -25,10 +26,8 @@ License: GPL-2.0-or-later OR OSL-2.1
Group: Hardware/Other Group: Hardware/Other
URL: https://github.com/dell/libsmbios URL: https://github.com/dell/libsmbios
Source: %{name}-%{version}.tar.gz Source: %{name}-%{version}.tar.gz
Source1: %{name}-rpmlintrc
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: chrpath
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -119,6 +118,8 @@ programs against libsmbios.
%prep %prep
%autosetup -p1 %autosetup -p1
# That conflicts with --disable-static
sed -i"" "s/ -static//" src/bin/Makefile.am
%build %build
autoreconf -fvi autoreconf -fvi
@ -137,9 +138,6 @@ export LDFLAGS="-pie"
%make_install %make_install
find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -type f -name "*.la" -delete -print
# remove rpath from binaries
chrpath --replace '$ORIGIN' %{buildroot}%{_sbindir}/smbios-sys-info-lite
# python3 duplicates # python3 duplicates
%fdupes %{buildroot}%{python3_sitearch} %fdupes %{buildroot}%{python3_sitearch}
@ -168,6 +166,7 @@ ln -s smbios-lcd-brightness %{buildroot}/%{_sbindir}/dellLcdBrightness
%files -n %{libname} %files -n %{libname}
%license COPYING-GPL COPYING-OSL %license COPYING-GPL COPYING-OSL
%license src/bin/getopts_LICENSE.txt %license src/bin/getopts_LICENSE.txt
%{_libdir}/libsmbios_c.so.%{sonum}
%{_libdir}/libsmbios_c.so.* %{_libdir}/libsmbios_c.so.*
%{_datadir}/locale/en/ %{_datadir}/locale/en/