%bcond_without feed # don't build feed plugin
%bcond_without gadugadu # don't build gg plugin
%bcond_without gpg # don't build gpg plugin
-%bcond_without gtk # don't build gtk plugin
+%bcond_with gtk # don't build gtk 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
%if %{with svn}
%define subver svn.%(date +%Y%m%d)
%else
-%define subver 20101007
+%define subver 20101110
%endif
%define rel 1
Group: Applications/Communications
%if %{without svn}
Source0: http://pl.ekg2.org/%{name}-%{subver}.tar.bz2
-# Source0-md5: 207efbb3395d1a98cdc57083d1f641a0
+# Source0-md5: 908ae66c4ab677671423316ed8eb7793
%endif
Patch0: %{name}-perl-install.patch
Patch1: %{name}-gtk.patch
%else
%setup -qcT
cd ..
-svn -q export --force http://toxygen.net/svn/ekg2/trunk %{name}-%{version}
+repo="http://toxygen.net/svn/ekg2/trunk"
+svn -q export --force $repo %{name}-%{version}
cd -
+v=$(LANG=C svn info $repo/INSTALL 2>/dev/null|sed -n 's/^Revision: \([0-9]\+\)$/\1/p')
+if [ "$v" ]; then
+ echo SVN-rev.$v
+ v="SVN rev.$v"
+ sed -i "s/AM_INIT_AUTOMAKE(ekg2, CVS)/AM_INIT_AUTOMAKE(ekg2, \"$v\")/" configure.ac
+fi
+
%endif
%patch0 -p1