forked from pool/python-appdirs
reverting, bsc#1107798
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-appdirs?expand=0&rev=5
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-appdirs
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -23,11 +23,11 @@ Release: 0
|
||||
Summary: A small Python module for determining platform-specific dirs
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: http://github.com/ActiveState/appdirs
|
||||
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: python-rpm-macros
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -51,13 +51,14 @@ sed -r -i '1s/^#!.*$//' appdirs.py
|
||||
|
||||
%install
|
||||
%python_install
|
||||
|
||||
%check
|
||||
%python_exec -munittest discover -v
|
||||
# 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
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc CHANGES.rst README.rst
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES.rst LICENSE.txt README.rst
|
||||
%pycache_only %{python_sitelib}/__pycache__/*
|
||||
%{python_sitelib}/appdirs.py*
|
||||
%{python_sitelib}/appdirs-%{version}-py%{python_version}.egg-info
|
||||
|
||||
Reference in New Issue
Block a user