File python-auxlib.spec of Package python-auxlib

#
# spec file for package python-auxlib
#
# Copyright (c) 2017 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/


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with     test
Name:           python-auxlib
Version:        0.0.42
Release:        0
License:        ISC
Summary:        Auxiliary library to the python standard library
Url:            https://github.com/kalefranz/auxlib
Group:          Development/Languages/Python
Source:         https://files.pythonhosted.org/packages/source/a/auxlib/auxlib-%{version}.tar.gz
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-enum34
BuildRequires:  python-rpm-macros
%if %{with test}
BuildRequires:  %{python_module pycrypto}
BuildRequires:  %{python_module PyYAML}
BuildRequires:  %{python_module tox}
%endif
Suggests:       python-pycrypto
Suggests:       python-PyYAML
%ifpython2
Requires:       python-enum34
%endif
BuildArch:      noarch

%python_subpackages

%description
Auxlib is an auxiliary library to the python standard library.

The aim is to provide core generic features for app development in
python. Auxlib fills in some python stdlib gaps much like pytoolz
has for functional programming, pyrsistent has for data structures,
or boltons has generally.

%prep
%setup -q -n auxlib-%{version}

%build
# setup.py build is not supported

%install
%python_exec setup.py install -O1 --root %{buildroot} --prefix %{_prefix}
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%if %{with test}
%check
%python_exec setup.py test
%endif

%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by