Sync from SUSE:SLFO:Main python-appdirs revision 3311f142ae1ef03d7676114b2802409f
This commit is contained in:
parent
e844495acf
commit
8bb3379035
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user