# Python2 macros for EPEL %if 0%{?rhel} && 0%{?rhel} <= 6 %{!?__python2: %global __python2 /usr/bin/python2} %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from %distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from %distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif %global pypi_name gerrit-view Name: gerrit-view Version: 0.3.0 Release: 1%{?dist} Summary: A set of tools to query/view Gerrit patch reviews and their Zuul status License: ASL 2.0 URL: https://pypi.python.org/pypi/gerritlib Source0: https://pypi.python.org/packages/source/g/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python-setuptools BuildRequires: python2-devel BuildRequires: python-urwid BuildRequires: python-requests Requires: python-gerritlib Requires: python-urwid Requires: python-requests Requires: python-six Requires: python-prettytable Requires: python-urwid Requires: python-paramiko Requires: GitPython %description A set of tools to query/view Gerrit patch reviews and their status. Current set of tools: (1) qgerrit -- to query different projects' Gerrit reviews based on a set of criteria/filters; (2) cgerrit -- to view (in real time) Gerrit reviews on CLI; (3) czuul -- to view Gerrit reviews' Zuul (a pipeline oriented project gating and automation system) status on CLI. %prep %setup -q -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf gerrit_view.egg-info %build %{__python2} setup.py build %install %{__python2} setup.py install -O1 --skip-build --root %{buildroot} %files %doc README.rst %{python_sitelib}/*.egg-info %{python_sitelib}/scripts %{_bindir}/qgerrit %{_bindir}/cgerrit %{_bindir}/czuul %changelog * Tue Feb 25 2014 Kashyap Chamarthy - 0.3.0-1 - Initial package