+++ /dev/null
-diff -urN gajim-0.7.1/src/common/xmpp/transports.py fix/gajim-0.7.1/src/common/xmpp/transports.py
---- gajim-0.7.1/src/common/xmpp/transports.py 2005-06-05 12:56:36.000000000 +0200
-+++ fix/gajim-0.7.1/src/common/xmpp/transports.py 2005-06-15 01:47:56.000000000 +0200
-@@ -32,6 +32,12 @@
- from client import PlugIn
- from protocol import *
-
-+try:
-+ import dns.resolver
-+except:
-+ pass
-+
-+
- class error:
- """An exception to be raised in case of low-level errors in methods of 'transports' module."""
- def __init__(self,comment):
-@@ -50,6 +56,28 @@
- PlugIn.__init__(self)
- self.DBG_LINE='socket'
- self._exported_methods=[self.send,self.disconnect]
-+
-+ # SRV resolver
-+ if 'dns' in globals(): # if dnspython is available support SRV
-+ host, port = server
-+ possible_queries = [
-+ "_xmpp-client._tcp." + host,
-+ "_jabber._tcp." + host,
-+ ]
-+
-+ for query in possible_queries:
-+ try:
-+ answers = [x for x in dns.resolver.query(query, 'SRV')]
-+ if answers:
-+ host = str (answers[0].target)
-+ port = int (answers[0].port)
-+ break
-+ except:
-+ pass
-+
-+ server = (host, port)
-+ # end of SRV resolver
-+
- self._server = server
-
- def plugin(self, owner):
+++ /dev/null
-Summary: A Jabber client written in PyGTK
-Summary(pl): Klient Jabbera napisany w PyGTK
-Name: gajim
-Version: 0.7.1
-Release: 1
-License: GPL
-Group: Applications/Communications
-Source0: http://gajim.org/downloads/gajim-0.7.1.tar.bz2
-# Source0-md5: f795d550749d78839d1b6a554bbff545
-Patch0: %{name}-SRV.patch
-Patch1: %{name}-makefile.patch
-URL: http://www.gajim.org/
-BuildRequires: gtkspell-devel
-BuildRequires: gettext-devel
-BuildRequires: python-pygtk-devel
-%pyrequires_eq python-modules
-%pyrequires_eq python
-Requires: python-dns
-Requires: python-gnome-extras-egg >= 2.10.0
-Requires: python-gnome-extras-gtkspell >= 2.10.0
-Requires: python-pygtk-glade >= 2.6.0
-Requires: python-pygtk-gtk >= 2.6.0
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Gajim is a Jabber client written in PyGTK. The goal of Gajim's
-developers is to provide a full featured and easy to use XMPP client
-for the GTK+ users. Gajim does not require GNOME to run, eventhough it
-exists with it nicely.
-
-%description -l pl
-Gajim to klient Jabbera napisany w PyGTK. Celem twórców Gajima jest
-dostarczenie w pe³ni funkcjonalnego i ³atwego w u¿yciu klienta XMPP
-dla u¿ytkowników GTK+. Gajim nie wymaga do dzia³ania GNOME, choæ
-dzia³a z nim ³adnie.
-
-%prep
-%setup -q
-%patch0 -p1
-%patch1 -p1
-
-%build
-%{__make} \
- PREFIX=%{_prefix} \
- LIBDIR=/%{_lib}
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%{__make} install \
- PREFIX=%{_prefix} \
- LIBDIR=/%{_lib} \
- DESTDIR=$RPM_BUILD_ROOT
-
-rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/{setup_win32.pyo}
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr(644,root,root,755)
-%doc AUTHORS README Changelog doc/*
-%attr(755,root,root) %{_bindir}/*
-%dir %{_libdir}/%{name}
-%attr(755,root,root) %{_libdir}/%{name}/*.so
-%{_datadir}/%{name}
-%{_desktopdir}/*.desktop
-%{_mandir}/man1/*
-%{_pixmapsdir}/*.png