[jabberpy] Revert "Retire jabberpy."

Milan Zazrivec mzazrive at fedoraproject.org
Mon Sep 19 08:51:10 UTC 2011


commit a651e4b5b5d14c7561dd59d8318b54b0a08f1083
Author: Milan Zazrivec <mzazrivec at redhat.com>
Date:   Mon Sep 19 10:50:39 2011 +0200

    Revert "Retire jabberpy."
    
    This reverts commit e11bc12ac721fc0b240b3790936cd37d54bf357c.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=739129

 dead.package                 |    1 -
 jabberpy-clean-sockets.patch |   10 +++++
 jabberpy-no-init.patch       |   15 ++++++++
 jabberpy.spec                |   79 ++++++++++++++++++++++++++++++++++++++++++
 sources                      |    1 +
 5 files changed, 105 insertions(+), 1 deletions(-)
---
diff --git a/jabberpy-clean-sockets.patch b/jabberpy-clean-sockets.patch
new file mode 100644
index 0000000..b78d8c1
--- /dev/null
+++ b/jabberpy-clean-sockets.patch
@@ -0,0 +1,10 @@
+--- jabberpy-0.5-0-orig/jabber/xmlstream.py	2004-02-03 11:33:37.000000000 -0500
++++ jabberpy-0.5-0/jabber/xmlstream.py	2007-10-03 14:35:29.000000000 -0400
+@@ -385,7 +385,6 @@
+     def disconnect(self):
+         """Close the stream and socket"""
+         self.write ( u"</stream:stream>" )
+-        while self.process(): pass
+         self._sock.close()
+         self._sock = None
+ 
diff --git a/jabberpy-no-init.patch b/jabberpy-no-init.patch
new file mode 100644
index 0000000..0421242
--- /dev/null
+++ b/jabberpy-no-init.patch
@@ -0,0 +1,15 @@
+diff -urN jabberpy-0.5-0-orig/jabber/__init__.py jabberpy-0.5-0/jabber/__init__.py
+--- jabberpy-0.5-0-orig/jabber/__init__.py	1969-12-31 19:00:00.000000000 -0500
++++ jabberpy-0.5-0/jabber/__init__.py	2004-06-14 18:53:10.000000000 -0400
+@@ -0,0 +1,10 @@
++__all__ = []
++
++import jabber
++
++for __s in dir(jabber):
++    __val = getattr(jabber, __s)
++    globals()[__s] = __val
++    __all__.append(__val)
++    
++del __s, __val
+Binary files jabberpy-0.5-0-orig/jabber/.__init__.py.swp and jabberpy-0.5-0/jabber/.__init__.py.swp differ
diff --git a/jabberpy.spec b/jabberpy.spec
new file mode 100644
index 0000000..e22a96e
--- /dev/null
+++ b/jabberpy.spec
@@ -0,0 +1,79 @@
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+Name:          jabberpy
+Version:       0.5
+# Used like this because upstream releases like 0.5-0
+Release:       0.22%{?dist}
+Summary:       Python xmlstream and jabber IM protocol libs
+
+Group:         Development/Libraries
+License:       LGPLv2+
+URL:           http://sourceforge.net/projects/jabberpy/
+Source0:       http://downloads.sf.net/sourceforge/%{name}/%{name}-%{version}-0.tar.gz
+Patch0:        jabberpy-no-init.patch
+Patch1:        jabberpy-clean-sockets.patch
+
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:     noarch
+
+BuildRequires: python-devel
+Requires:      python
+
+%description
+jabber.py is a Python module for the jabber instant messaging
+protocol. jabber.py deals with the xml parsing and socket code,
+leaving the programmer to concentrate on developing quality jabber
+based applications with Python.
+
+%prep
+%setup -q -n %{name}-%{version}-0
+chmod -x examples/*.py
+%patch0 -p1 -b .no-init
+%patch1 -p1 -b .clean-sockets
+
+%build
+%{__python} setup.py  build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install --root=$RPM_BUILD_ROOT 
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%doc examples README
+%{python_sitelib}/*
+
+
+%changelog
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5-0.22
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Wed Jul 21 2010 David Malcolm <dmalcolm at redhat.com> - 0.5-0.21
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5-0.20
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5-0.19
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 0.5-0.18
+- Rebuild for Python 2.6
+
+* Fri Oct 24 2008 Michael Stahnke <stahnma at fedoraproject.org> 0.5.0.17
+- Minor Spec tweaks for review
+
+* Mon Oct 10 2008 Michael Stahnke <stahnma at fedoraproject.org> 0.5-0.16
+- Clean up for Fedora Review and submission
+
+* Wed Sep  3 2008 Jesus Rodriguez <jesusr at redhat.com> 0.5-0.15
+- remove reliance on external version file
+
+* Tue Oct 09 2007 Pradeep Kilambi <pkilambi at redhat.com>
+- clean dangling ports left out by jabberpy
+
+* Mon Jun 14 2004 Mihai Ibanescu <misa at redhat.com>
+- Initial build
+- Patched to add a __init__ file
diff --git a/sources b/sources
new file mode 100644
index 0000000..225a428
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+cbb9a1126bdc39ff49af605fb55c282e  jabberpy-0.5-0.tar.gz


More information about the scm-commits mailing list