Blob Blame History Raw
%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.3.0
Release:            3%{?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:      python-dateutil
BuildRequires:      fedmsg

Requires:           python-bugzilla
Requires:           python-stomper
Requires:           python-moksha-hub
Requires:           python-dateutil
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
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

* Fri Mar 04 2016 Ralph Bean <rbean@redhat.com> - 0.3.0-1
- new version

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Tue Nov 18 2014 Ralph Bean <rbean@redhat.com> - 0.2.1-1
- Latest upstream handles timezones for rhbz#1139955.

* Tue Sep 30 2014 Ralph Bean <rbean@redhat.com> - 0.2.0-1
- Reorganized internally to rely on fedmsg queueing.

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Thu Mar 20 2014 Ralph Bean <rbean@redhat.com> - 0.1.3-1
- Initial packaging for Fedora