From 863713969bdc73b4783fceaff90c6db1cb78d3ba3df7e412395548dce7c9d9f4 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Tue, 13 Feb 2024 12:47:21 +0000 Subject: [PATCH] - Add setuptools buildrequires, distutils is not part of python-base from python 3.12+ OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dmidecode?expand=0&rev=32 --- python-dmidecode.changes | 6 ++++++ python-dmidecode.spec | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/python-dmidecode.changes b/python-dmidecode.changes index c6ca9ca..48f48da 100644 --- a/python-dmidecode.changes +++ b/python-dmidecode.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 13 12:46:21 UTC 2024 - Daniel Garcia + +- Add setuptools buildrequires, distutils is not part of python-base + from python 3.12+ + ------------------------------------------------------------------- Fri Apr 21 12:24:18 UTC 2023 - Dirk Müller diff --git a/python-dmidecode.spec b/python-dmidecode.spec index ba5b89b..f109dc1 100644 --- a/python-dmidecode.spec +++ b/python-dmidecode.spec @@ -1,7 +1,7 @@ # # spec file for package python-dmidecode # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -38,12 +38,13 @@ Patch2: 31-version_info-v-version.patch # Make the code future-proof against removal of distutils module. Patch3: detect-lib-with-py3.patch BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: libxml2-devel BuildRequires: python-rpm-macros Requires: python Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives Obsoletes: %{oldpython}-dmidecode <= %{version} Obsoletes: python-python-dmidecode <= %{version} %if 0%{?sle_version} >= 150400 || 0%{?suse_version} >= 1550