Accepting request 1104366 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1104366
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-appdirs?expand=0&rev=12
This commit is contained in:
Ana Guerrero 2023-08-18 17:27:01 +00:00 committed by Git OBS Bridge
commit 65d0bf6b48
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