Blob Blame History Raw
%global modname moksha.hub

Name:           python-moksha-hub
Version:        1.0.1
Release:        1%{?dist}
Summary:        Hub components for Moksha

Group:          Development/Libraries
License:        ASL 2.0
URL:            http://pypi.python.org/pypi/moksha.hub
Source0:        http://pypi.python.org/packages/source/m/%{modname}/%{modname}-%{version}.tar.gz

BuildArch:      noarch


BuildRequires:  python2-devel
BuildRequires:  python-setuptools
BuildRequires:  python-nose
BuildRequires:  python-mock

BuildRequires:  python-moksha-common >= 1.0.1
BuildRequires:  python-twisted
BuildRequires:  python-qpid
BuildRequires:  python-stomper
BuildRequires:  python-txzmq
BuildRequires:  python-txws
BuildRequires:  python-daemon

Requires:       python-moksha-common >= 1.0.1
Requires:       python-twisted
Requires:       python-qpid
Requires:       python-stomper
Requires:       python-txzmq
Requires:       python-txws
Requires:       python-daemon

%description
Hub components for Moksha.

%prep
%setup -q -n %{modname}-%{version}

# Removed twisted from the list of deps in setup.py.
%{__sed} -i 's/"Twisted",//' setup.py


%build
CFLAGS="%{optflags}" %{__python} setup.py build

%install
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}

%check
%if %{?rhel}%{!?rhel:0} >= 6
# Test suite requires a more modern Twisted than is in el6, so don't run it for
# now.
%else
%{__python} setup.py test
%endif

%files
%doc README COPYING AUTHORS
%{python_sitelib}/moksha/hub/
%{python_sitelib}/%{modname}-%{version}*

%{_bindir}/moksha-hub

%changelog
* Wed Sep 12 2012 Ralph Bean <rbean@redhat.com> - 1.0.1-1
- Require latest python-moksha-common

* Sat Sep 08 2012 Ralph Bean <rbean@redhat.com> - 1.0.0-5
- Disable test suite for el6.

* Sat Sep 08 2012 Ralph Bean <rbean@redhat.com> - 1.0.0-4
- Remove "Twisted" from the list of deps in setup.py.

* Wed Sep 05 2012 Ralph Bean <rbean@redhat.com> - 1.0.0-3
- Use optflags instead of RPM_OPT_FLAGS to be consistent.

* Wed Sep 05 2012 Ralph Bean <rbean@redhat.com> - 1.0.0-2
- Added RPM_OPT_FLAGS to the build section.

* Tue Sep 04 2012 Ralph Bean <rbean@redhat.com> - 1.0.0-1
- Initial package for Fedora and fork from moksha core.