3 %bcond_without tests # do not perform "make test"
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
8 Summary: A python client implementation of the STOMP protocol
13 Group: Development/Languages
14 # Latest releases didn't appear on pypi.
15 # https://github.com/oisinmulvihill/stomper/issues/8
16 #Source0: https://pypi.python.org/packages/source/s/stomper/stomper-%{version}.tar.gz
17 Source0: https://github.com/oisinmulvihill/stomper/archive/%{commit}/stomper-%{commit}.tar.gz
18 # Source0-md5: 9a86b59224aa322a46598cd0b1d72177
19 URL: https://pypi.python.org/pypi/stomper
20 BuildRequires: python-modules
21 BuildRequires: python-setuptools
22 BuildRequires: rpm-pythonprov
23 BuildRequires: rpmbuild(macros) >= 1.710
25 BuildRequires: python-nose
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 This is a python client implementation of the STOMP protocol. The
32 client is attempting to be transport layer neutral. This module
33 provides functions to create and parse STOMP messages in a programatic
38 mv stomper-%{commit}*/* .
44 PYTHONPATH=. nosetests-%{py_ver} -q
48 rm -rf $RPM_BUILD_ROOT
51 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/stomper/tests
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{py_sitescriptdir}/stomper
62 %{py_sitescriptdir}/stomper-%{version}-py*.egg-info