[packages/python-stomper] new, version 0.2.9
glen
glen at pld-linux.org
Sun Nov 23 01:13:49 CET 2014
commit ca6301b20a318066c618fb9f7f458c2c9f5c8fc8
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Nov 23 02:13:25 2014 +0200
new, version 0.2.9
based on fedora package f0c6153
python-stomper.spec | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
---
diff --git a/python-stomper.spec b/python-stomper.spec
new file mode 100644
index 0000000..ff48d09
--- /dev/null
+++ b/python-stomper.spec
@@ -0,0 +1,66 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+%define commit 9b9fddf
+Summary: A python client implementation of the STOMP protocol
+Name: python-stomper
+Version: 0.2.9
+Release: 1
+License: Apache v2.0
+Group: Development/Languages
+# Latest releases didn't appear on pypi.
+# https://github.com/oisinmulvihill/stomper/issues/8
+#Source0: https://pypi.python.org/packages/source/s/stomper/stomper-%{version}.tar.gz
+Source0: https://github.com/oisinmulvihill/stomper/archive/%{commit}/stomper-%{commit}.tar.gz
+# Source0-md5: 9a86b59224aa322a46598cd0b1d72177
+URL: https://pypi.python.org/pypi/stomper
+BuildRequires: python-modules
+BuildRequires: python-setuptools
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+%if %{with tests}
+BuildRequires: python-nose
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a python client implementation of the STOMP protocol. The
+client is attempting to be transport layer neutral. This module
+provides functions to create and parse STOMP messages in a programatic
+fashion.
+
+%prep
+%setup -qc
+mv stomper-%{commit}*/* .
+
+%build
+%{__python} setup.py build
+
+%if %{with tests}
+PYTHONPATH=. nosetests-%{py_ver} -q
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py \
+ build install \
+ --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/stomper/tests
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%{py_sitescriptdir}/stomper
+%{py_sitescriptdir}/stomper-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-stomper.git/commitdiff/ca6301b20a318066c618fb9f7f458c2c9f5c8fc8
More information about the pld-cvs-commit
mailing list