2014-04-17 10:45:17 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-appdirs
|
|
|
|
#
|
2020-06-02 18:47:52 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2014-04-17 10:45:17 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-10-14 15:50:50 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-04-17 10:45:17 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-02-24 15:34:17 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2014-04-17 10:45:17 +02:00
|
|
|
Name: python-appdirs
|
2020-06-02 18:47:52 +02:00
|
|
|
Version: 1.4.4
|
2014-04-17 10:45:17 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A small Python module for determining platform-specific dirs
|
|
|
|
License: MIT
|
2019-11-05 10:15:29 +01:00
|
|
|
URL: https://github.com/ActiveState/appdirs
|
2017-02-23 12:48:02 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/appdirs/appdirs-%{version}.tar.gz
|
2018-09-04 18:59:54 +02:00
|
|
|
BuildRequires: %{python_module base}
|
2018-09-10 12:16:35 +02:00
|
|
|
BuildRequires: fdupes
|
2017-02-23 12:48:02 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2014-04-17 10:45:17 +02:00
|
|
|
BuildArch: noarch
|
2017-02-23 12:48:02 +01:00
|
|
|
%python_subpackages
|
2014-04-17 10:45:17 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
``appdirs`` will
|
|
|
|
help you choose an appropriate:
|
|
|
|
|
|
|
|
- user data dir (``user_data_dir``)
|
|
|
|
- user cache dir (``user_cache_dir``)
|
|
|
|
- site data dir (``site_data_dir``)
|
|
|
|
- user log dir (``user_log_dir``)
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n appdirs-%{version}
|
2017-02-23 12:48:02 +01:00
|
|
|
|
|
|
|
# strip shebang
|
|
|
|
sed -r -i '1s/^#!.*$//' appdirs.py
|
2014-04-17 10:45:17 +02:00
|
|
|
|
|
|
|
%build
|
2017-02-23 12:48:02 +01:00
|
|
|
%python_build
|
2014-04-17 10:45:17 +02:00
|
|
|
|
|
|
|
%install
|
2017-02-23 12:48:02 +01:00
|
|
|
%python_install
|
2018-09-10 12:16:35 +02:00
|
|
|
# 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}
|
|
|
|
}
|
2018-08-17 15:47:54 +02:00
|
|
|
|
|
|
|
%check
|
2018-09-04 18:59:54 +02:00
|
|
|
%python_exec -munittest discover -v
|
2014-04-17 10:45:17 +02:00
|
|
|
|
2017-02-23 12:48:02 +01:00
|
|
|
%files %{python_files}
|
2018-08-17 15:47:54 +02:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc CHANGES.rst README.rst
|
2017-02-23 12:48:02 +01:00
|
|
|
%pycache_only %{python_sitelib}/__pycache__/*
|
2014-04-17 10:45:17 +02:00
|
|
|
%{python_sitelib}/appdirs.py*
|
2017-02-23 12:48:02 +01:00
|
|
|
%{python_sitelib}/appdirs-%{version}-py%{python_version}.egg-info
|
2014-04-17 10:45:17 +02:00
|
|
|
|
|
|
|
%changelog
|