Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

130 lines (94 sloc) 3.471 kb
%global with_doc 1
%global prj client
%global commit_id 1ed1f5e
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif
Name: openstack-%{prj}
Version: 2.6.4
Release: 1.%{commit_id}
Summary: Client for OpenStack Nova API
Group: Applications/System
License: ASL 2.0
Vendor: Grid Dynamics Consulting Services, Inc.
URL: http://pypi.python.org/pypi/python-novaclient
Source0: rackspace-python-novaclient-%{commit_id}.tar.gz
BuildRoot: %{_tmppath}/%{prj}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-nose
Requires: python-novaclient = %{version}-%{release}
%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.
This package contains command-line script.
%package -n python-novaclient
Summary: Python API for OpenStack Nova
Group: Development/Languages
Requires: python-argparse
Requires: python-simplejson
Requires: python-json
Requires: python-httplib2
Requires: python-prettytable
%description -n python-novaclient
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.
This package contains Python API.
%if 0%{?with_doc}
%package doc
Summary: Documentation for OpenStack Nova API
Group: Documentation
%description doc
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.
This package contains autogenerated documentation.
%endif
%prep
%setup -q -n rackspace-python-novaclient-%{commit_id}
#patch1 -p1
%build
%{__python} setup.py build
%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
# Delete tests
rm -fr %{buildroot}%{python_sitelib}/tests
%if 0%{?with_doc}
export PYTHONPATH="$( pwd ):$PYTHONPATH"
sphinx-build -b html docs html
# Fix hidden-file-or-dir warnings
rm -fr .doctrees .buildinfo
%endif
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/nova
%files -n python-novaclient
%defattr(-,root,root,-)
%{python_sitelib}/novaclient
%{python_sitelib}/*.egg-info
%if 0%{?with_doc}
%defattr(-,root,root,-)
%files doc
%doc html
%endif
%changelog
* Fri Sep 16 2011 Alessio Ababilov <aababilov@griddynamics.com> - 2.6.4-1.1ed1f5e
- 2.6.4 snapshot
* Tue Jul 19 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2.5.8-1.20251cc
- 2.5.8 snapshot
* Fri Jul 01 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2.5.7-1
- 2.5.7 release
* Tue May 17 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2.4.2-1
- 2.4.2 release
* Fri Mar 25 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2.4.1-3
- Added python-json in Requires
* Fri Mar 25 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2.4.1-2
- Added dependencies on python-httplib2, python-prettytable
* Fri Mar 25 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2.4.1-1
- First build
Jump to Line
Something went wrong with that request. Please try again.