From 8bb337903531307109f6a13fcc8cf9ca6c9706921071929ad86d5336ea6aa24a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 3 Oct 2024 17:53:04 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-appdirs revision 3311f142ae1ef03d7676114b2802409f --- 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