%global sname python-swiftclient Name: {{ py2name('python-swiftclient') }} Version: 3.4.1 Release: 0 Summary: OpenStack Object Storage API Client Library License: {{ license('Apache-2.0') }} Group: Development/Languages/Python Url: https://launchpad.net/%{sname} Source0: https://files.pythonhosted.org/packages/source/p/%{sname}/%{sname}-%{version}.tar.gz BuildRequires: openstack-macros BuildRequires: {{ py2pkg('devel') }} BuildRequires: {{ py2pkg('python-keystoneclient') }} BuildRequires: {{ py2pkg('mock') }} BuildRequires: {{ py2pkg('pbr') }} BuildRequires: {{ py2pkg('setuptools') }} BuildRequires: {{ py2pkg('testrepository') }} BuildRequires: {{ py2pkg('testscenarios') }} Requires: {{ py2pkg('futures') }} Requires: {{ py2pkg('requests') }} Requires: {{ py2pkg('six') }} 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: {{ py2pkg('Sphinx') }} BuildRequires: {{ py2pkg('futures') }} BuildRequires: {{ py2pkg('oslosphinx') }} 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