File python-python-suseapi.spec of Package python-python-suseapi
#
# spec file for package python-python-suseapi
#
# 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: python-python-suseapi
Version: 0.24
Release: 0
Summary: python-suseapi is set of helpers to access various SUSE APIs.
License: GPL-3.0+
Group: Development/Languages/Python
Url: https://github.com/openSUSE/python-suseapi/
Source: https://pypi.python.org/packages/source/p/python-suseapi/python-suseapi-%{version}.tar.bz2
BuildRequires: python-Sphinx
BuildRequires: python-beautifulsoup4
BuildRequires: python-devel
BuildRequires: python-django >= 1.4
BuildRequires: python-httpretty
BuildRequires: python-lxml
BuildRequires: python-mechanize
BuildRequires: python-mockldap
BuildRequires: python-pytest
BuildRequires: python-python-dateutil
BuildRequires: python-setuptools
BuildRequires: python-suds-jurko
BuildRequires: python-xdg
Requires: python-beautifulsoup4
Requires: python-django >= 1.4
Requires: python-ldap
Requires: python-lxml
Requires: python-mechanize
Requires: python-python-dateutil
Requires: python-setuptools
Requires: python-suds-jurko
Requires: python-xdg
Provides: python-suseapi = %{version}
Obsoletes: python-suseapi < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
BuildRequires: python-importlib
Requires: python-importlib
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%py_requires
%description
python-suseapi is set of helpers to access various SUSE APIs.
%prep
%setup -q -n python-suseapi-%{version}
%build
python setup.py build
make %{?_smp_mflags} -C docs html
rm -rf docs/_build/html/.buildinfo
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
py.test suseapi
%files
%defattr(-,root,root,-)
%doc LICENSE README.rst NEWS.rst
%doc docs/_build/html
%{python_sitelib}/*
%{_bindir}/suseapi
%changelog