%global commit f8163866fb2086a574125b7b380dba54b7c74dee %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: python-savannaclient Version: 0.3 Release: 0.1.%{shortcommit}git%{?dist} Summary: Client library for OpenStack Savanna API License: ASL 2.0 URL: https://launchpad.net/savanna # Note: github.com/.../archive/blah.tar.gz won't work here because pbr # needs an sdist tarball # wget -O python-savannaclient-%%{shortcommit}.tar.gz http://tarballs.openstack.org/python-savannaclient/python-savannaclient-master.tar.gz Source0: python-savannaclient-%{shortcommit}.tar.gz BuildArch: noarch BuildRequires: python-setuptools BuildRequires: python2-devel BuildRequires: python-d2to1 BuildRequires: python-pbr Requires: python-iso8601 Requires: python-requests Requires: python-six Requires: python-setuptools Requires: python-babel Requires: python-netaddr %description Python client library for interacting with OpenStack Savanna API. %prep %setup -q -n python-savannaclient-%{shortcommit} rm -rf python_savannaclient.egg-info rm -rf {test-,}requirements.txt %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root %{buildroot} %files # TODO: Add README.rst when it has content %doc LICENSE ChangeLog %{python_sitelib}/savannaclient %{python_sitelib}/*.egg-info %changelog * Sat Aug 17 2013 Matthew Farrellee - 0.3-0.1.f816386git - Initial package