forked from pool/python-appdirs
- Revert removal of the code fixing egginfo (boo#1107798)
- Actually we don't need remove-setuptools-dependency.patch, when we don't run python setup.py test anymore. So, remove it. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-appdirs?expand=0&rev=14
This commit is contained in:
@@ -25,8 +25,8 @@ License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: http://github.com/ActiveState/appdirs
|
||||
Source: https://files.pythonhosted.org/packages/source/a/appdirs/appdirs-%{version}.tar.gz
|
||||
Patch: remove-setuptools-dependency.patch
|
||||
BuildRequires: %{python_module base}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
@@ -51,6 +51,12 @@ 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}
|
||||
}
|
||||
|
||||
%check
|
||||
%python_exec -munittest discover -v
|
||||
|
||||
Reference in New Issue
Block a user