File python-steelscript.spec of Package python-steelscript

#
# spec file for package python-steelscript
#
# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
#
# 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/
#


%define pymodname steelscript
Name:           python-steelscript
Version:        1.3
Release:        0
Summary:        Core Python module for interacting with Riverbed devices
License:        MIT
Group:          Development/Languages/Python
Url:            https://support.riverbed.com/apis/steelscript/index.html
#Git-Clone:     https://github.com/riverbed/steelscript.git
Source:         https://pypi.io/packages/source/s/%{pymodname}/%{pymodname}-%{version}.tar.gz
Patch0:         python-steelscript-allow-recent-requests.patch
BuildRequires:  python-setuptools
Requires:       python-dateutil
Requires:       python-importlib
Requires:       python-requests
## tests
#BuildRequires:  python-pytest
#BuildRequires:  python-testfixtures
#BuildRequires:  python-mock
## doc
#BuildRequires:  python-sphinx
#BuildRequires:  python-sphinx-sphinx_rtd_theme
#
BuildArch:      noarch

%description
SteelScript is a collection of libraries and scripts in Python for
interacting with Riverbed Technology devices.

This package provides the Core Python module for interacting with
Riverbed devices.

%prep
%setup -q -n %{pymodname}-%{version}
%patch0 -p1
# FIXME: spurious-executable-perm - should be fixed upstream
chmod -x docs/_static/favicon.ico

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%doc LICENSE README.rst
%doc docs
%{_bindir}/steel
%{python_sitelib}/steelscript
%{python_sitelib}/%{pymodname}-%{version}-py%{py_ver}-nspkg.pth
%{python_sitelib}/%{pymodname}-%{version}-py%{py_ver}.egg-info

%changelog
openSUSE Build Service is sponsored by