Accepting request 1243458 from Base:System

- switch to manual service runs

- Add unittest-drop-makeSuite.patch to adapt the testsuite to Python 3.13

  Source in the specfile.
- Fix build with GCC 4.6
- libsmbios-devel Requires libstdc++-devel
- fix build with GCC 4.4
- fixed spec:
- change ExcludeArch to ExclusiveArch
- change naming of the lib package because of 'Shared Library
- dont buildrequire libxml, only libxml2 is used
- fix library-without-ldconfig-postun errors
- fixed spec-file:
  - Fix a couple of failure-to-check-return on fopen. most were
  - Add hinting to the memory class, so that it can intelligently
    close /dev/mem file handle when it is not needed (which is
    most of the time). it only leaves it open when it is scanning,
  - libsmbios-fix-includes.diff: fix missing includes (needed to
- updated to new version 0.13.4 as requested by DELL maintainer
  - new util dellWirelessCtl to control builtin wireless on Dell
    laptops
  * the package no longer provide bios_update_tools subpackage,

OBS-URL: https://build.opensuse.org/request/show/1243458
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libsmbios?expand=0&rev=50
This commit is contained in:
Ana Guerrero 2025-02-06 21:02:11 +00:00 committed by Git OBS Bridge
commit b491bbfbfc
5 changed files with 54 additions and 24 deletions

View File

@ -1,5 +1,5 @@
<services>
<service name="obs_scm" mode="localonly">
<service name="obs_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/dell/libsmbios.git</param>
<param name="revision">HEAD</param>
@ -7,7 +7,7 @@
<param name="versionformat">@PARENT_TAG@.@TAG_OFFSET@.g%h</param>
<param name="changesgenerate">enable</param>
</service>
<service name="set_version" mode="localonly"/>
<service name="set_version" mode="manual"/>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>

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

Binary file not shown.

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Feb 5 16:11:39 UTC 2025 - Dirk Müller <dmueller@suse.com>
- switch to manual service runs
-------------------------------------------------------------------
Thu Jan 30 11:17:37 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add unittest-drop-makeSuite.patch to adapt the testsuite to Python 3.13
-------------------------------------------------------------------
Thu Mar 14 10:53:06 UTC 2024 - pgajdos@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package libsmbios
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -26,6 +26,8 @@ License: GPL-2.0-or-later OR OSL-2.1
Group: Hardware/Other
URL: https://github.com/dell/libsmbios
Source: %{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/dell/libsmbios/pull/149 drop unittest.makeSuite (dropped in python 3.13)
Patch: unittest-drop-makeSuite.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: doxygen

View File

@ -0,0 +1,18 @@
Index: libsmbios-2.4.3.3.gf01a217/src/pyunit/TestLib.py
===================================================================
--- libsmbios-2.4.3.3.gf01a217.orig/src/pyunit/TestLib.py
+++ libsmbios-2.4.3.3.gf01a217/src/pyunit/TestLib.py
@@ -21,12 +21,10 @@ def parseOptions(*args):
pass
def runTests( testCase ):
- testToRun = 'test'
-
myTestSuite = unittest.TestSuite()
for i in testCase:
try:
- temp = unittest.makeSuite( i, testToRun )
+ temp = unittest.defaultTestLoader.loadTestsFromTestCase( i )
myTestSuite.addTest(temp)
except ValueError:
pass