2014-04-17 10:45:17 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-appdirs
|
|
|
|
#
|
2018-08-17 15:43:55 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
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
|
2017-08-08 08:14:22 +02:00
|
|
|
Version: 1.4.3
|
2014-04-17 10:45:17 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A small Python module for determining platform-specific dirs
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Url: http://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
|
|
|
|
BuildRequires: %{python_module base}
|
|
|
|
BuildRequires: python-rpm-macros
|
2014-04-17 10:45:17 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
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
|
|
|
|
# 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
|
|
|
|
}
|
2014-04-17 10:45:17 +02:00
|
|
|
|
2017-02-23 12:48:02 +01:00
|
|
|
%files %{python_files}
|
2014-04-17 10:45:17 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc CHANGES.rst LICENSE.txt 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
|