Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
python-novaclient
python-novaclient.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-novaclient.spec of Package python-novaclient
# # spec file for package python-novaclient # # Copyright (c) 2014 SUSE LINUX Products 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/ # %define component novaclient %define version_unconverted 2.20.0 Name: python-%{component} Version: 2.20.0 Release: 0 Summary: Openstack Compute (Nova) API Client License: Apache-2.0 Group: Development/Languages/Python Url: http://launchpad.net/python-novaclient Source: https://pypi.python.org/packages/source/p/python-novaclient/python-novaclient-%{version}.tar.gz Source2: openstack-nova.sh Patch0: 0001-Update-novaclient-shell-to-use-shared-arguments-from.patch Patch1: 0002-Support-using-the-Keystone-V3-API-from-the-Nova-CLI.patch BuildRequires: openstack-suse-macros BuildRequires: python-devel BuildRequires: python-setuptools # Packages below are only needed for documentation build BuildRequires: python-PrettyTable BuildRequires: python-Sphinx BuildRequires: python-iso8601 >= 0.1.4 BuildRequires: python-oslosphinx BuildRequires: python-pbr BuildRequires: python-requests Requires: python >= 2.6.8 # /usr/bin/nova uses pkg_resources, thus: Requires: python-Babel >= 1.3 Requires: python-PrettyTable >= 0.7 Requires: python-iso8601 >= 0.1.9 Requires: python-oslo.utils >= 1.0.0 Requires: python-keystoneclient >= 0.10.0 Requires: python-pbr >= 0.6 Requires: python-requests >= 1.2.1 Requires: python-simplejson >= 2.2.0 Requires: python-six >= 1.7.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 Requires: python-argparse %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else BuildArch: noarch %endif # Provides/Obsoletes for openSUSE-12.2 package names: Provides: openstack-%{component} = %{version} Obsoletes: openstack-%{component} < %{version} Provides: python-python-%{component} = %{version} Obsoletes: python-python-%{component} < %{version} %description This is a client for the OpenStack Nova API. There's a Python API (the novaclient module), and a command-line script (nova). Each implements 100% of the OpenStack Nova API. %package doc Summary: Openstack Compute (Nova) API Client - Documentation Group: Documentation/HTML Requires: %{name} = %{version} %description doc This package contains documentation files for %{name}. %package test Summary: Openstack Compute (Nova) API Client - Testsuite Group: System/Management Requires: %{name} = %{version} %if 0%{?suse_version} && 0%{?suse_version} <= 1110 Requires: python-discover %endif Requires: python-fixtures >= 0.3.14 Requires: python-mock >= 1.0 Requires: python-testrepository >= 0.0.18 Requires: python-testtools >= 0.9.34 %description test This package contains testsuite files for %{name}. %prep %setup -q %patch0 -p1 %patch1 -p1 %openstack_cleanup_prep %build python setup.py build python setup.py build_sphinx %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-data=%{python_sitelib} chmod +x %{buildroot}/%{_bindir}/nova rm doc/build/html/.buildinfo ### documentation install -d %{buildroot}%{_mandir}/man1 install -m 644 doc/build/man/*.1 %{buildroot}%{_mandir}/man1 ### bash-completion install -p -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/bash_completion.d/openstack-nova.sh ### test subpackage %openstack_test_package_install %files %defattr(-,root,root,-) %doc LICENSE README.rst %{_bindir}/nova %{_mandir}/man1/nova.1.gz %{_sysconfdir}/bash_completion.d/openstack-nova.sh %{python_sitelib}/%{component}/ %{python_sitelib}/python_%{component}-*.egg-info %files doc %defattr(-,root,root,-) %doc LICENSE doc/build/html %files test %defattr(-,root,root,-) %{_localstatedir}/lib/%{name}-test %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor