-#
-%define snap 20050604
-#
Summary: A Jabber client written in PyGTK
Summary(pl): Klient Jabbera napisany w PyGTK
Name: gajim
-Version: 0.7
-Release: 1.%{snap}.1
-#Release: 0.2
-License: GPL
+Version: 0.11
+Release: 1
+Epoch: 1
+License: GPL v2
Group: Applications/Communications
-#Source0: http://gajim.org/downloads/gajim-0.7.tar.bz2
-Source0: gajim-snap-%{snap}.tar.bz2
-# Source0-md5: 48c7687ff9fc19a99775764fe532c4bd
-Patch0: %{name}-SRV.patch
+Source0: http://www.gajim.org/downloads/%{name}-%{version}.tar.bz2
+# Source0-md5: 7ac7ac6fdfc515cb927adf21793856fa
URL: http://www.gajim.org/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gettext-devel
BuildRequires: gtkspell-devel
+BuildRequires: intltool
+BuildRequires: libtool
+BuildRequires: python-pygtk-devel >= 2.8.0
+BuildRequires: rpmbuild(macros) >= 1.177
+BuildRequires: rpm-pythonprov
+BuildRequires: xorg-lib-libXScrnSaver-devel
%pyrequires_eq python-modules
%pyrequires_eq python
-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
+Requires: python-docutils >= 0.4-2
+Requires: python-dns
+Requires: python-pygtk-glade >= 2.8.0
+Requires: python-sqlite
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
dzia³a z nim ³adnie.
%prep
-%setup -q -n %{name}
-%patch0 -p1
+%setup -q
%build
+%{__intltoolize}
+%{__aclocal} -I m4
+%{__libtoolize}
+%{__autoheader}
+%{__autoconf}
+%{__automake}
+%configure
%{__make} \
- PREFIX=%{_prefix}
+ CC="%{__cc}" \
+ 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}
+rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
+
+%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%post
+%banner %{name} -e << EOF
+For full functionality, you need to install:
+- avahi-discover (for zeroconf chat over local networks)
+- python-dbus (for gajim-remote and notification-daemon support)
+- python-gnome-desktop-keyring (for secure password storage)
+- python-gnome-gconf (for xmpp url-handler in GNOME)
+EOF
+
+%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS README Changelog doc/*
+%doc AUTHORS ChangeLog README THANKS
%attr(755,root,root) %{_bindir}/*
%dir %{_libdir}/%{name}
%attr(755,root,root) %{_libdir}/%{name}/*.so