%global githash a7ffd76 Name: python-gerrit Version: 0.0.1 Release: 2.git%{githash}%{?dist} Summary: Python interface to Gerrit Group: Development/Languages License: ASL 2.0 URL: http://github.com/bcwaldon/python-gerrit Source0: http://github.com/bcwaldon/python-gerrit/tarball/%{githash}/python-gerrit-%{githash}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools %description python-gerrit is a Python interface to Gerrit, a code review system for Git. %prep %setup -q -n bcwaldon-python-gerrit-%{githash} %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %files %doc README LICENSE %{python_sitelib}/* %changelog * Fri Oct 12 2012 Federico Simoncelli - 0.0.1-2.gita7ffd76 - use the python_sitelib macro instead of python2_sitelib * Fri Oct 12 2012 Federico Simoncelli - 0.0.1-1.gita7ffd76 - initial release