%bcond_without aspell # build without spell-checking support with aspell
%bcond_without gadugadu # don't build gg plugin
%bcond_without jabber # don't build jabber plugin
+%bcond_without gnutls # build jabber plugin without libgnutls
%bcond_without libgsm # don't build libgsm plugin
%bcond_without python # don't build Python plugin
%bcond_without sqlite # don't build logsqlite plugin
%if %{with yesterday_snapshot}
%define _snap %(date +%%Y%%m%%d -d yesterday)
%else
-%define _snap 20050129
+%define _snap 20050808
+%endif
+
+%if %{without jabber}
+%undefine with_gnutls
%endif
Summary: Multi-protocol instant messaging and chat client
License: GPL v2+
Group: Applications/Communications
Source0: http://www.ekg2.org/archive/%{name}-%{_snap}.tar.gz
-# Source0-md5: 66c87ecef5a4643ee364544201b32dc3
+# Source0-md5: 3c23c66e92846ea6ac90fd524059b014
URL: http://www.ekg2.org/
%{?with_aspell:BuildRequires: aspell-devel}
BuildRequires: autoconf
BuildRequires: automake
%{?with_jabber:BuildRequires: expat-devel}
BuildRequires: gettext-devel
-%{?with_jabber:BuildRequires: gnutls-devel >= 1.0.0}
+%{?with_gnutls:BuildRequires: gnutls-devel >= 1.2.5}
BuildRequires: gpm-devel
%{?with_gadugadu:BuildRequires: libgadu-devel}
%{?with_libgsm:BuildRequires: libgsm-devel}
BuildRequires: ncurses-devel
BuildRequires: openssl-devel >= 0.9.7d
%{?with_python:BuildRequires: python-devel}
+%{?with_python:BuildRequires: python}
BuildRequires: sed >= 4.0
%{?with_sqlite:BuildRequires: sqlite-devel}
%{?with_xosd:BuildRequires: xosd-devel}
%prep
%setup -q -n %{name}-%{_snap}
sed -i -e 's/AC_LIBLTDL_CONVENIENCE/AC_LIBLTDL_INSTALLABLE/' configure.ac
+sed -i -e 's/\/opt\/sqlite\/lib/\/opt\/sqlite\/lib \/usr\/lib64/' m4/sqlite.m4
%build
%{__libtoolize} --ltdl
%configure \
--with%{!?with_aspell:out}-aspell \
--with%{!?with_jabber:out}-expat \
+ --with%{!?with_gnutls:out}-libgnutls \
--with%{!?with_gadugadu:out}-libgadu \
--with%{!?with_libgsm:out}-libgsm \
--with%{!?with_python:out}-python \
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/%{name}/plugins/ioctld.so
%{_datadir}/%{name}/plugins/ioctld
-%attr(4755,root,root) %{_libdir}/ioctld
+%attr(4755,root,root) %{_libexecdir}/ioctld
%if %{with sqlite}
%files plugin-logsqlite