File python3-appdirs.spec of Package python3-appdirs
#
# spec file for package python3-appdirs
#
# Copyright (c) 2016 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
# 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/
#
Name: python3-appdirs
Version: 1.4.0
Release: 0
Summary: A small Python module for determining platform-specific dirs
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
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%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}
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
chmod a+x %{buildroot}%{python3_sitelib}/appdirs.py
%files
%defattr(-,root,root,-)
%doc CHANGES.rst LICENSE.txt README.rst
%{python3_sitelib}/appdirs.py*
%{python3_sitelib}/appdirs-%{version}-py*.egg-info/
%{python3_sitelib}/__pycache__/appdirs.*
%changelog