From 38c1ef29a41f939420e7946dc9448a2cb8569646 Mon Sep 17 00:00:00 2001 From: stevetraylen Date: Oct 03 2009 21:26:37 +0000 Subject: Initial Import rhbz#526544 --- diff --git a/.cvsignore b/.cvsignore index e69de29..a6bfb28 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +stomp.py-2.0.4.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..21098bf --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +stomppy-2_0_4-1_fc11:HEAD:stomppy-2.0.4-1.fc11.src.rpm:1254605169 diff --git a/sources b/sources index e69de29..3ce8f41 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +2cb207ffc52280bab5457523b90a8f11 stomp.py-2.0.4.tar.gz diff --git a/stomppy-rm-bang-python.patch b/stomppy-rm-bang-python.patch new file mode 100644 index 0000000..a854a33 --- /dev/null +++ b/stomppy-rm-bang-python.patch @@ -0,0 +1,8 @@ +diff -uNr stomp.py-2.0.2.ORIG/stomp/stomp.py stomp.py-2.0.2/stomp/stomp.py +--- stomp.py-2.0.2.ORIG/stomp/stomp.py 2009-09-30 20:27:10.685618642 +0200 ++++ stomp.py-2.0.2/stomp/stomp.py 2009-09-30 20:56:49.564606800 +0200 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + + import math + import random diff --git a/stomppy.spec b/stomppy.spec new file mode 100644 index 0000000..8f8e921 --- /dev/null +++ b/stomppy.spec @@ -0,0 +1,60 @@ +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: stomppy +Version: 2.0.4 +Release: 1%{?dist} +Summary: Python stomp client for messaging + +Group: Development/Libraries +License: ASL 2.0 +URL: http://code.google.com/p/stomppy/ +Source0: http://stomppy.googlecode.com/files/stomp.py-%{version}.tar.gz +Patch1: %{name}-rm-bang-python.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: python-devel + +%description +stomp.py is a Python client library for accessing messaging servers +(such as ActiveMQ or JBoss Messaging) using the STOMP protocol. It can also +be run as a standalone, command-line client for testing. + +%prep +%setup -q -n stomp.py-%{version} +%patch1 -p1 +# Remove dos line feeds from tests. +%{__sed} -i 's/\r//' test/testlistener.py +%{__sed} -i 's/\r//' test/rabbitmq.py +%{__sed} -i 's/\r//' test/basic.py + +%build +%{__python} setup.py build + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +rm -rf $RPM_BUILD_ROOT%{python_sitelib}/test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%{python_sitelib}/* +%doc test LICENSE + +%changelog +* Wed Sep 30 2009 Steve Traylen - 2.0.4-1 +- Update to 2.0.4 + remove patch to allow building with out network. + +* Wed Sep 30 2009 Steve Traylen - 2.0.2-3 +- Remove some dos line feeds + +* Tue Sep 29 2009 Steve Traylen - 2.0.2-2 +- Add patch to allow build without working network. + +* Mon Sep 7 2009 Steve Traylen - 2.0.2-1 +- Initial version. +