Imported from SRPM

This commit is contained in:
Denis Silakov 2015-02-05 09:30:36 -05:00
commit e296bfa4e9
2 changed files with 53 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
appdirs-1.4.0.tar.gz: a23245ad884a605bc845855cbf9e17991bc274ed

51
python-appdirs.spec Normal file
View file

@ -0,0 +1,51 @@
%define oname appdirs
Name: python-%{oname}
Version: 1.4.0
Release: 1
Summary: A small Python module for determining appropriate platform-specific dirs
Source0: http://pypi.python.org/packages/source/a/%{oname}/%{oname}-%{version}.tar.gz
License: MIT
Group: Development/Python
Url: http://github.com/ActiveState/appdirs
BuildArch: noarch
BuildRequires: pythonegg(setuptools)
%description
What directory should your app use for storing user data?
This kind of thing is what the ``appdirs`` module is for.
``appdirs`` will help you choose an appropriate:
- user data dir (``user_data_dir``)
- user config dir (``user_config_dir``)
- user cache dir (``user_cache_dir``)
- site data dir (``site_data_dir``)
- site config dir (``site_config_dir``)
- user log dir (``user_log_dir``)
and also:
- is a single module so other Python packages can include their own
private copy
- is slightly opinionated on the directory names used. Look for "OPINION" in
documentation and code for when an opinion is being applied.
%prep
%setup -q -n %{oname}-%{version}
%build
python setup.py build
%install
python setup.py install --root=%{buildroot}
%check
python setup.py test
%files
%doc CHANGES.rst
%doc LICENSE.txt
%doc README.rst
%{py_puresitedir}/appdirs.py*
%{py_puresitedir}/appdirs*.egg-info