2014-04-17 10:45:17 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-appdirs
|
|
|
|
#
|
2015-06-04 11:09:53 +02:00
|
|
|
# Copyright (c) 2015 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-appdirs
|
2015-06-04 11:09:53 +02:00
|
|
|
Version: 1.4.0
|
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
|
2015-06-04 11:09:53 +02:00
|
|
|
Source: https://pypi.python.org/packages/source/a/appdirs/appdirs-%{version}.tar.gz
|
2014-04-17 10:45:17 +02:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%else
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%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
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
chmod a+x %{buildroot}%{python_sitelib}/appdirs.py
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc CHANGES.rst LICENSE.txt README.rst
|
|
|
|
%{python_sitelib}/appdirs.py*
|
|
|
|
%{python_sitelib}/appdirs-%{version}-py*.egg-info/
|
|
|
|
|
|
|
|
%changelog
|