15
0
Files
python-dmidecode/detect-lib-with-py3.patch
Matej Cepl 9ed7ed6c59 - Harmonize Factory with the SLE version (update-alternatives
instead of the subpackages).

- Add proper Provides/Obsoletes

- Introduce update-alternatives for
  /usr/share/python-dmidecode/pymap.xml.
  * Fixed memory Type Detail map size (bsc#1194351).
  Python one.
- Rename huge-memory.diff to huge-memory.patch (i.e., remove
  huge-memory.diff and add huge-memory.patch).
- Fix URL of Source0 (their own website is down, use GitHub
  release).
- Add 31-version_info-v-version.patch to make tests 3.10
  compatible.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dmidecode?expand=0&rev=10
2022-03-04 09:41:56 +00:00

28 lines
774 B
Diff

---
src/setup_common.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
--- a/src/setup_common.py
+++ b/src/setup_common.py
@@ -30,7 +30,7 @@ import subprocess, sys
if sys.version_info[0] < 3:
import commands as subprocess
from os import path as os_path
-from distutils.sysconfig import get_python_lib
+from distutils.sysconfig import get_python_lib, get_config_var
# libxml2 - C flags
def libxml2_include(incdir):
@@ -69,7 +69,10 @@ def libxml2_lib(libdir, libs):
libs.append(l.replace("-l", "", 1))
# this library is not reported and we need it anyway
- libs.append('xml2mod')
+ if get_config_var("SOABI"):
+ libs.append('xml2mod.%s' % get_config_var("SOABI"))
+ else:
+ libs.append('xml2mod')