%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 modname bugzilla2fedmsg Name: python-bugzilla2fedmsg Version: 0.1.3 Release: 1%{?dist} Summary: Consume BZ messages over STOMP and republish to fedmsg Group: Development/Libraries License: LGPLv2+ URL: http://pypi.python.org/pypi/bugzilla2fedmsg Source0: http://pypi.python.org/packages/source/b/%{modname}/%{modname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-bugzilla BuildRequires: python-stomper BuildRequires: python-moksha-hub BuildRequires: fedmsg Requires: python-bugzilla Requires: python-stomper Requires: python-moksha-hub Requires: fedmsg %description A moksha consumer that listens to bugzilla over STOMP and reproduces messages on a fedmsg bus. %prep %setup -q -n %{modname}-%{version} # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info %build %{__python2} setup.py build %install %{__python2} setup.py install -O1 --skip-build --root=%{buildroot} # Upstream has no test suite #%%check #%%{__python2} setup.py test %files %doc README.rst LICENSE CHANGELOG.rst development.ini.example %{python2_sitelib}/%{modname}.py* %{python2_sitelib}/%{modname}-%{version}* %changelog * Thu Mar 20 2014 Ralph Bean - 0.1.3-1 - Initial packaging for Fedora