%global sname python-manilaclient Name: {{ py2name('python-manilaclient') }} Version: 1.17.4 Release: 0 Summary: Client Library for OpenStack Share API 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('Tempest') }} BuildRequires: {{ py2pkg('ddt') }} BuildRequires: {{ py2pkg('devel') }} BuildRequires: {{ py2pkg('fixtures') }} BuildRequires: {{ py2pkg('mock') }} BuildRequires: {{ py2pkg('python-openstackclient') }} BuildRequires: {{ py2pkg('oslotest') }} BuildRequires: {{ py2pkg('testrepository') }} BuildRequires: {{ py2pkg('testtools') }} Requires: {{ py2pkg('Babel') }} Requires: {{ py2pkg('PrettyTable') }} Requires: {{ py2pkg('python-keystoneclient') }} Requires: {{ py2pkg('oslo.config') }} Requires: {{ py2pkg('oslo.log') }} Requires: {{ py2pkg('oslo.serialization') }} Requires: {{ py2pkg('oslo.utils') }} Requires: {{ py2pkg('requests') }} Requires: {{ py2pkg('simplejson') }} Requires: {{ py2pkg('six') }} BuildArch: noarch %description Client library and command line utility for interacting with Openstack Share API. %package doc Summary: Documentation for OpenStack Share API Client Group: Documentation/HTML BuildRequires: {{ py2pkg('Sphinx') }} BuildRequires: {{ py2pkg('openstackdocstheme') }} %description doc Client library and command line utility for interacting with Openstack Share API. This package contains auto-generated documentation. %package test Summary: Testsuite for OpenStack Share API Client Group: Development/Languages/Python Requires: %{name} = %{version} Requires: {{ py2pkg('Tempest') }} Requires: {{ py2pkg('ddt') }} Requires: {{ py2pkg('fixtures') }} Requires: {{ py2pkg('mock') }} Requires: {{ py2pkg('python-openstackclient') }} Requires: {{ py2pkg('oslotest') }} Requires: {{ py2pkg('testrepository') }} Requires: {{ py2pkg('testtools') }} %description test Client library and command line utility for interacting with Openstack Share API. This package contains the testsuite. %prep %autosetup -n %{sname}-%{version} %py_req_cleanup sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg %build %{py2_build} %{__python2} setup.py build_sphinx --builder=html,man # remove the sphinx-build leftovers rm -rf doc/build/html/.{doctrees,buildinfo} %install %{py2_install} # man page install -p -D -m 644 doc/build/man/python-manilaclient.1 %{buildroot}%{_mandir}/man1/python-manilaclient.1 # bash completion install -p -D -m 644 tools/manila.bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/%{name} # handle the test subpackage %openstack_test_package_install manilaclient %check %{__python2} setup.py testr %files %doc README.rst %license LICENSE %{python2_sitelib}/manilaclient %{python2_sitelib}/*.egg-info %{_sysconfdir}/bash_completion.d/%{name} %{_mandir}/man1/python-manilaclient.1.gz %{_bindir}/manila %files doc %license LICENSE %doc doc/build/html %files test %license LICENSE %openstack_test_package_dir %changelog