|
|
62c7d5e |
%if 0%{?fedora}
|
|
|
62c7d5e |
# we turn off python3 support until we can get python3-twisted-core in Fedora
|
|
|
62c7d5e |
%global with_python3 0
|
|
|
62c7d5e |
%endif
|
|
|
62c7d5e |
|
|
|
f45a41c |
%global modname moksha.hub
|
|
|
f45a41c |
|
|
|
f45a41c |
Name: python-moksha-hub
|
|
|
2b5060d |
Version: 1.4.6
|
|
|
35e2f4d |
Release: 3%{?dist}
|
|
|
f45a41c |
Summary: Hub components for Moksha
|
|
|
f45a41c |
|
|
|
f45a41c |
License: ASL 2.0
|
|
|
f45a41c |
URL: http://pypi.python.org/pypi/moksha.hub
|
|
|
f45a41c |
Source0: http://pypi.python.org/packages/source/m/%{modname}/%{modname}-%{version}.tar.gz
|
|
|
f45a41c |
|
|
|
f45a41c |
BuildArch: noarch
|
|
|
f45a41c |
|
|
|
f45a41c |
|
|
|
f45a41c |
BuildRequires: python2-devel
|
|
|
f45a41c |
BuildRequires: python-setuptools
|
|
|
f45a41c |
BuildRequires: python-nose
|
|
|
f45a41c |
BuildRequires: python-mock
|
|
|
f45a41c |
|
|
|
388e39d |
BuildRequires: python-moksha-common >= 1.0.6
|
|
|
efb3d61 |
BuildRequires: python-twisted-core
|
|
|
f45a41c |
BuildRequires: python-stomper
|
|
|
f45a41c |
BuildRequires: python-txzmq
|
|
|
f45a41c |
BuildRequires: python-txws
|
|
|
f45a41c |
BuildRequires: python-daemon
|
|
|
3f8c1d5 |
BuildRequires: python-six
|
|
|
f45a41c |
|
|
|
efb3d61 |
BuildRequires: python-websocket-client
|
|
|
900720e |
|
|
|
62c7d5e |
%if 0%{?with_python3}
|
|
|
62c7d5e |
BuildRequires: python3-devel
|
|
|
62c7d5e |
BuildRequires: python3-setuptools
|
|
|
62c7d5e |
BuildRequires: python3-nose
|
|
|
62c7d5e |
BuildRequires: python3-mock
|
|
|
62c7d5e |
|
|
|
62c7d5e |
BuildRequires: python3-moksha-common >= 1.0.6
|
|
|
62c7d5e |
BuildRequires: python3-twisted-core
|
|
|
62c7d5e |
BuildRequires: python3-txzmq
|
|
|
62c7d5e |
BuildRequires: python3-txws
|
|
|
62c7d5e |
BuildRequires: python3-six
|
|
|
62c7d5e |
#BuildRequires: python3-stomper
|
|
|
62c7d5e |
#BuildRequires: python3-daemon
|
|
|
62c7d5e |
|
|
|
62c7d5e |
BuildRequires: python3-websocket-client
|
|
|
62c7d5e |
%endif
|
|
|
62c7d5e |
|
|
|
388e39d |
Requires: python-moksha-common >= 1.0.6
|
|
|
efb3d61 |
Requires: python-twisted-core
|
|
|
f45a41c |
Requires: python-stomper
|
|
|
f45a41c |
Requires: python-txzmq
|
|
|
f45a41c |
Requires: python-txws
|
|
|
f45a41c |
Requires: python-daemon
|
|
|
3f8c1d5 |
Requires: python-six
|
|
|
f45a41c |
|
|
|
efb3d61 |
# When installed, these enable new plugins for the moksha.hub
|
|
|
efb3d61 |
#BuildRequires: python-qpid
|
|
|
efb3d61 |
#Requires: python-qpid
|
|
|
efb3d61 |
|
|
|
feee95f |
# Its a whole different package now.
|
|
|
feee95f |
Conflicts: moksha < 1.0.0
|
|
|
feee95f |
|
|
|
f45a41c |
%description
|
|
|
f45a41c |
Hub components for Moksha.
|
|
|
f45a41c |
|
|
|
62c7d5e |
|
|
|
62c7d5e |
%if 0%{?with_python3}
|
|
|
62c7d5e |
%package -n python3-moksha-hub
|
|
|
62c7d5e |
Summary: Hub components for Moksha
|
|
|
62c7d5e |
|
|
|
62c7d5e |
Requires: python3-moksha-common >= 1.0.6
|
|
|
62c7d5e |
Requires: python3-twisted-core
|
|
|
62c7d5e |
Requires: python3-txzmq
|
|
|
62c7d5e |
Requires: python3-txws
|
|
|
62c7d5e |
Requires: python3-six
|
|
|
62c7d5e |
|
|
|
62c7d5e |
%description -n python3-moksha-hub
|
|
|
62c7d5e |
Hub components for Moksha.
|
|
|
62c7d5e |
%endif
|
|
|
62c7d5e |
|
|
|
62c7d5e |
|
|
|
f45a41c |
%prep
|
|
|
f45a41c |
%setup -q -n %{modname}-%{version}
|
|
|
f45a41c |
|
|
|
a68bd3a |
# Removed twisted from the list of deps in setup.py.
|
|
|
a68bd3a |
%{__sed} -i 's/"Twisted",//' setup.py
|
|
|
a68bd3a |
|
|
|
900720e |
# *Experimental* support for python-zmq-13.0.0 in rawhide.
|
|
|
900720e |
%{__sed} -i 's/pyzmq<=2.2.0.1/pyzmq/' setup.py
|
|
|
900720e |
|
|
|
f45a41c |
%build
|
|
|
62c7d5e |
CFLAGS="%{optflags}" %{__python2} setup.py build
|
|
|
62c7d5e |
|
|
|
62c7d5e |
%if 0%{?with_python3}
|
|
|
62c7d5e |
pushd %{py3dir}
|
|
|
62c7d5e |
CFLAGS="%{optflags}" %{__python3} setup.py build
|
|
|
62c7d5e |
popd
|
|
|
62c7d5e |
%endif
|
|
|
62c7d5e |
|
|
|
f45a41c |
|
|
|
f45a41c |
%install
|
|
|
62c7d5e |
%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
|
|
|
62c7d5e |
|
|
|
62c7d5e |
%if 0%{?with_python3}
|
|
|
62c7d5e |
pushd %{py3dir}
|
|
|
62c7d5e |
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
|
|
|
62c7d5e |
mv %{buildroot}/%{_bindir}/moksha-hub %{buildroot}/%{_bindir}/moksha-hub-3
|
|
|
62c7d5e |
popd
|
|
|
62c7d5e |
%endif
|
|
|
f45a41c |
|
|
|
f45a41c |
%check
|
|
|
a975fd5 |
%if 0%{?rhel} >= 6
|
|
|
c47e4f1 |
# Test suite requires a more modern Twisted than is in el6, so don't run it for
|
|
|
c47e4f1 |
# now.
|
|
|
c47e4f1 |
%else
|
|
|
62c7d5e |
%{__python2} setup.py test
|
|
|
62c7d5e |
%endif
|
|
|
62c7d5e |
|
|
|
62c7d5e |
%if 0%{?with_python3}
|
|
|
62c7d5e |
pushd %{py3dir}
|
|
|
62c7d5e |
%{__python3} setup.py test
|
|
|
62c7d5e |
popd
|
|
|
c47e4f1 |
%endif
|
|
|
f45a41c |
|
|
|
f45a41c |
%files
|
|
|
f45a41c |
%doc README COPYING AUTHORS
|
|
|
62c7d5e |
%{python2_sitelib}/moksha/hub/
|
|
|
62c7d5e |
%{python2_sitelib}/%{modname}-%{version}*
|
|
|
f45a41c |
|
|
|
f45a41c |
%{_bindir}/moksha-hub
|
|
|
f45a41c |
|
|
|
62c7d5e |
%if 0%{?with_python3}
|
|
|
62c7d5e |
%files -n python3-moksha-hub
|
|
|
62c7d5e |
%doc README COPYING AUTHORS
|
|
|
62c7d5e |
%{python3_sitelib}/moksha/hub/
|
|
|
62c7d5e |
%{python3_sitelib}/%{modname}-%{version}*
|
|
|
62c7d5e |
%{_bindir}/moksha-hub-3
|
|
|
62c7d5e |
%endif
|
|
|
62c7d5e |
|
|
|
f45a41c |
%changelog
|
|
|
35e2f4d |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.6-3
|
|
|
35e2f4d |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
35e2f4d |
|
|
|
8932360 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.6-2
|
|
|
8932360 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
8932360 |
|
|
|
2b5060d |
* Mon Jul 27 2015 Ralph Bean <rbean@redhat.com> - 1.4.6-1
|
|
|
2b5060d |
- new version
|
|
|
2b5060d |
|
|
|
569ce0f |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.5-2
|
|
|
569ce0f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
569ce0f |
|
|
|
617f51a |
* Fri May 08 2015 Ralph Bean <rbean@redhat.com> - 1.4.5-1
|
|
|
617f51a |
- Latest upstream. Fixes exception counting stats.
|
|
|
617f51a |
|
|
|
f8af246 |
* Wed Oct 22 2014 Ralph Bean <rbean@redhat.com> - 1.4.4-1
|
|
|
f8af246 |
- Latest upstream; removed our patches.
|
|
|
f8af246 |
- Consumers can now handle a list of multiple topics again.
|
|
|
f8af246 |
|
|
|
38717a9 |
* Wed Oct 01 2014 Ralph Bean <rbean@redhat.com> - 1.4.3-2
|
|
|
38717a9 |
- Patch to make polling producers advertise the last time they ran.
|
|
|
38717a9 |
|
|
|
166b807 |
* Thu Sep 25 2014 Ralph Bean <rbean@redhat.com> - 1.4.3-1
|
|
|
166b807 |
- Latest upstream with stomp improvements.
|
|
|
166b807 |
|
|
|
3e4c7ff |
* Mon Sep 15 2014 Ralph Bean <rbean@redhat.com> - 1.4.2-1
|
|
|
3e4c7ff |
- Latest upstream with support for STOMP-1.1.
|
|
|
3e4c7ff |
|
|
|
3f99ec9 |
* Fri Aug 08 2014 Ralph Bean <rbean@redhat.com> - 1.4.1-1
|
|
|
3f99ec9 |
- Configurable permissions on the monitoring socket.
|
|
|
3f99ec9 |
- Suggest a threadpool size to twisted based on the number of consumers.
|
|
|
3f99ec9 |
|
|
|
51c7063 |
* Fri Jul 18 2014 Ralph Bean <rbean@redhat.com> - 1.4.0-1
|
|
|
51c7063 |
- New API points: pre_consume and post_consume.
|
|
|
51c7063 |
|
|
|
0b3eb4b |
* Mon Jun 30 2014 Ralph Bean <rbean@redhat.com> - 1.3.4-1
|
|
|
0b3eb4b |
- Improved exception handling in the consumer API.
|
|
|
0b3eb4b |
|
|
|
b428be6 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-2
|
|
|
b428be6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
b428be6 |
|
|
|
b40d115 |
* Tue Jun 03 2014 Ralph Bean <rbean@redhat.com> - 1.3.3-1
|
|
|
b40d115 |
- Added threading model to the polling producer API.
|
|
|
b40d115 |
|
|
|
def5932 |
* Thu Apr 24 2014 Ralph Bean <rbean@redhat.com> - 1.3.2-1
|
|
|
def5932 |
- Bugfixes to the monitoring socket.
|
|
|
def5932 |
|
|
|
3f8c1d5 |
* Thu Apr 24 2014 Ralph Bean <rbean@redhat.com> - 1.3.1-2
|
|
|
3f8c1d5 |
- Add dep on python-six.
|
|
|
3f8c1d5 |
|
|
|
33c70be |
* Thu Apr 24 2014 Ralph Bean <rbean@redhat.com> - 1.3.1-1
|
|
|
33c70be |
- More stats written to the monitoring socket.
|
|
|
33c70be |
|
|
|
594482d |
* Sun Apr 13 2014 Ralph Bean <rbean@redhat.com> - 1.3.0-1
|
|
|
594482d |
- Introduce a new monitoring socket.
|
|
|
594482d |
- Moksha consumers are now given their own thread and incoming queue.
|
|
|
594482d |
|
|
|
efb3d61 |
* Tue Jan 14 2014 Ralph Bean <rbean@redhat.com> - 1.2.2-2
|
|
|
efb3d61 |
- Enable websocket portion of the test suite again.
|
|
|
efb3d61 |
- Remove hard dep on python-qpid.
|
|
|
efb3d61 |
|
|
|
7de6cf9 |
* Fri Dec 13 2013 Ralph Bean <rbean@redhat.com> - 1.2.2-1
|
|
|
7de6cf9 |
- Latest upstream fixing a memory leak in the websocket server.
|
|
|
7de6cf9 |
|
|
|
c340b21 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
|
|
|
c340b21 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
c340b21 |
|
|
|
c2ff185 |
* Mon Apr 15 2013 Ralph Bean <rbean@redhat.com> - 1.2.1-1
|
|
|
c2ff185 |
- Latest upstream with a bugfix to consumer loading.
|
|
|
c2ff185 |
|
|
|
900720e |
* Tue Mar 26 2013 Ralph Bean <rbean@redhat.com> - 1.2.0-1
|
|
|
900720e |
- Latest upstream.
|
|
|
900720e |
- Removed websocket tests until this review is complete:
|
|
|
900720e |
https://bugzilla.redhat.com/show_bug.cgi?id=909644
|
|
|
900720e |
|
|
|
6b06f81 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
|
|
|
6b06f81 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
6b06f81 |
|
|
|
9bfe325 |
* Tue Dec 04 2012 Ralph Bean <rbean@redhat.com> - 1.1.0-1
|
|
|
9bfe325 |
- Latest upstream with support for zmq_tcp_keepalive.
|
|
|
9bfe325 |
|
|
|
a975fd5 |
* Tue Dec 04 2012 Ralph Bean <rbean@redhat.com> - 1.0.9-1
|
|
|
a975fd5 |
- Latest upstream.
|
|
|
a975fd5 |
- Fixed check conditional for rhel6.
|
|
|
a975fd5 |
|
|
|
388e39d |
* Wed Oct 10 2012 Ralph Bean <rbean@redhat.com> - 1.0.7-1
|
|
|
388e39d |
- Various bugfixes.
|
|
|
388e39d |
- Support for zeromq3.
|
|
|
388e39d |
- Needs python-moksha-common-1.0.6 or later.
|
|
|
388e39d |
|
|
|
428f5cd |
* Mon Oct 01 2012 Ralph Bean <rbean@redhat.com> - 1.0.4-1
|
|
|
428f5cd |
- Allow moksha-hub to use a non-standard config (specified as an argument).
|
|
|
428f5cd |
- Temporary bug fix in websocket server message distribution.
|
|
|
428f5cd |
|
|
|
e73cce3 |
* Wed Sep 26 2012 Ralph Bean <rbean@redhat.com> - 1.0.3-1
|
|
|
e73cce3 |
- Fix to _initialized namespacing for consumers.
|
|
|
e73cce3 |
- More careful still when cleaning up consumers.
|
|
|
e73cce3 |
|
|
|
feee95f |
* Wed Sep 19 2012 Ralph Bean <rbean@redhat.com> - 1.0.2-1
|
|
|
feee95f |
- Miscellaneous bugfixes in consumer cleanup.
|
|
|
feee95f |
- Added conflicts tag against old moksha.
|
|
|
feee95f |
|
|
|
93fd47e |
* Wed Sep 12 2012 Ralph Bean <rbean@redhat.com> - 1.0.1-1
|
|
|
93fd47e |
- Require latest python-moksha-common
|
|
|
93fd47e |
|
|
|
c47e4f1 |
* Sat Sep 08 2012 Ralph Bean <rbean@redhat.com> - 1.0.0-5
|
|
|
c47e4f1 |
- Disable test suite for el6.
|
|
|
c47e4f1 |
|
|
|
a68bd3a |
* Sat Sep 08 2012 Ralph Bean <rbean@redhat.com> - 1.0.0-4
|
|
|
a68bd3a |
- Remove "Twisted" from the list of deps in setup.py.
|
|
|
a68bd3a |
|
|
|
f45a41c |
* Wed Sep 05 2012 Ralph Bean <rbean@redhat.com> - 1.0.0-3
|
|
|
f45a41c |
- Use optflags instead of RPM_OPT_FLAGS to be consistent.
|
|
|
f45a41c |
|
|
|
f45a41c |
* Wed Sep 05 2012 Ralph Bean <rbean@redhat.com> - 1.0.0-2
|
|
|
f45a41c |
- Added RPM_OPT_FLAGS to the build section.
|
|
|
f45a41c |
|
|
|
f45a41c |
* Tue Sep 04 2012 Ralph Bean <rbean@redhat.com> - 1.0.0-1
|
|
|
f45a41c |
- Initial package for Fedora and fork from moksha core.
|