f45a41c
%global modname moksha.hub
f45a41c
f45a41c
Name:           python-moksha-hub
388e39d
Version:        1.0.7
93fd47e
Release:        1%{?dist}
f45a41c
Summary:        Hub components for Moksha
f45a41c
f45a41c
Group:          Development/Libraries
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
f45a41c
BuildRequires:  python-twisted
f45a41c
BuildRequires:  python-qpid
f45a41c
BuildRequires:  python-stomper
f45a41c
BuildRequires:  python-txzmq
f45a41c
BuildRequires:  python-txws
f45a41c
BuildRequires:  python-daemon
f45a41c
388e39d
Requires:       python-moksha-common >= 1.0.6
f45a41c
Requires:       python-twisted
f45a41c
Requires:       python-qpid
f45a41c
Requires:       python-stomper
f45a41c
Requires:       python-txzmq
f45a41c
Requires:       python-txws
f45a41c
Requires:       python-daemon
f45a41c
feee95f
# Its a whole different package now.
feee95f
Conflicts:      moksha < 1.0.0
feee95f
f45a41c
%description
f45a41c
Hub components for Moksha.
f45a41c
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
a68bd3a
f45a41c
%build
f45a41c
CFLAGS="%{optflags}" %{__python} setup.py build
f45a41c
f45a41c
%install
f45a41c
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
f45a41c
f45a41c
%check
c47e4f1
%if %{?rhel}%{!?rhel:0} >= 6
c47e4f1
# Test suite requires a more modern Twisted than is in el6, so don't run it for
c47e4f1
# now.
c47e4f1
%else
f45a41c
%{__python} setup.py test
c47e4f1
%endif
f45a41c
f45a41c
%files
f45a41c
%doc README COPYING AUTHORS
f45a41c
%{python_sitelib}/moksha/hub/
f45a41c
%{python_sitelib}/%{modname}-%{version}*
f45a41c
f45a41c
%{_bindir}/moksha-hub
f45a41c
f45a41c
%changelog
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.