File python-swiftclient.spec of Package python-swiftclient
#
# spec file for package python-swiftclient
#
# 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/
#
%global sname python-swiftclient
Name: python-swiftclient
Version: 3.3.0
Release: 0
Summary: OpenStack Object Storage API Client Library
License: Apache-2.0
Group: Development/Languages/Python
Url: https://launchpad.net/%{sname}
Source0: https://pypi.io/packages/source/p/%{sname}/%{sname}-%{version}.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-devel
BuildRequires: python-keystoneclient >= 3.8.0
BuildRequires: python-mock >= 2.0
BuildRequires: python-pbr >= 1.8
BuildRequires: python-setuptools >= 16.0
BuildRequires: python-testrepository >= 0.0.18
BuildRequires: python-testscenarios >= 0.4
Requires: python-futures >= 3.0
Requires: python-requests >= 2.10.0
Requires: python-six >= 1.9.0
BuildArch: noarch
%description
This is a python client for the Swift API. There's a Python API (the
swiftclient module), and a command-line script (swift).
%package doc
Summary: %{summary} - Documentation
Group: Documentation/HTML
BuildRequires: python-Sphinx
BuildRequires: python-futures >= 3.0
BuildRequires: python-oslosphinx >= 4.7.0
Requires: %{name} = %{version}
%description doc
This is a python client for the Swift API. There's a Python API (the
swiftclient module), and a command-line script (swift).
This package contains documentation files for %{name}.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%py2_build
%{__python2} setup.py build_sphinx
rm -rf doc/build/html/.{doctrees,buildinfo}
%install
%py2_install
%check
%{__python2} setup.py testr
%files
%license LICENSE
%doc ChangeLog README.rst
%{_bindir}/swift
%{python2_sitelib}/swiftclient
%{python2_sitelib}/*.egg-info
%files doc
%license LICENSE
%doc doc/build/html
%{_mandir}/man1/swift.1*
%changelog