%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %global tarball_name cloudmonkey Name: cloudmonkey Version: 5.3.2 Release: 1%{?dist} Summary: Command Line Interface for Apache CloudStack Group: Development/Tools License: ASL 2.0 URL: http://cloudstack.apache.org/ Source0: https://pypi.python.org/packages/source/c/cloudmonkey/%{tarball_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-setuptools BuildRequires: python2-devel Requires: python-pygments Requires: python-argcomplete Requires: python-prettytable Requires: python-requests %description cloudmonkey is a command line interface (CLI) tool for CloudStack written in Python. cloudmonkey can be use both as an interactive shell and as a command line tool which simplifies CS configuration and management. %prep %setup -q %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{_bindir}/cloudmonkey %{python_sitelib}/* %changelog * Fri Apr 29 2016 Larry Letelier - 5.3.2-1 - Updating this spec to 5.3.2 version. - Add python2-devel - Remove LICENCE, README links. * Tue Nov 18 2014 Daniel Bruno - 5.3.0-1 - First RPM Release