From 03527dec75bb0245e2e606597248a017c973589df1cd047d1fb914a471b4bce5 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Thu, 17 Aug 2023 11:22:24 +0000 Subject: [PATCH] Accepting request 1104364 from home:dirkmueller:branches:openSUSE:Factory:Rings:1-MinimalX - Add setuptools build requirement for building, distutils is not available anymore since python 3.12 OBS-URL: https://build.opensuse.org/request/show/1104364 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-appdirs?expand=0&rev=27 --- python-appdirs.changes | 6 ++++++ python-appdirs.spec | 8 ++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/python-appdirs.changes b/python-appdirs.changes index e814e37..b4280e9 100644 --- a/python-appdirs.changes +++ b/python-appdirs.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Aug 17 11:02:29 UTC 2023 - Daniel Garcia + +- Add setuptools build requirement for building, distutils is not + available anymore since python 3.12 + ------------------------------------------------------------------- Fri Apr 21 12:21:54 UTC 2023 - Dirk Müller diff --git a/python-appdirs.spec b/python-appdirs.spec index 9060246..9086e8f 100644 --- a/python-appdirs.spec +++ b/python-appdirs.spec @@ -28,6 +28,7 @@ License: MIT URL: https://github.com/ActiveState/appdirs Source: https://files.pythonhosted.org/packages/source/a/appdirs/appdirs-%{version}.tar.gz BuildRequires: %{python_module base} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -58,12 +59,7 @@ sed -r -i '1s/^#!.*$//' appdirs.py %install %python_install -# fix up egg-info because distutils is bad and should feel bad -%{python_expand rm %{buildroot}%{$python_sitelib}/*.egg-info -cp -r appdirs.egg-info \ - %{buildroot}%{$python_sitelib}/appdirs-%{version}-py%{$python_version}.egg-info -%fdupes %{buildroot}%{$python_sitelib} -} +%python_expand fdupes %{buildroot}%{$python_sitelib} %check %pyunittest