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
This commit is contained in:
Daniel Garcia 2023-08-17 11:22:24 +00:00 committed by Git OBS Bridge
parent 9ff07f6549
commit 03527dec75
2 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Aug 17 11:02:29 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- 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 <dmueller@suse.com>

View File

@ -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