+%bcond_with logdb # server-side message logging support for mysql5 driver
+
%define _snap 20070926r390
Summary: Ejabberds native MySQL drivers
Summary(pl.UTF-8): Natywne sterowniki do MySQL dla ejabberda
Name: ejabberd-mysql
Version: 0
-Release: 0.%{_snap}.1
+Release: 1.%{_snap}.0
License: GPL
Group: Applications/Communications
# get it from https://svn.process-one.net/ejabberd-modules/mysql/trunk/src/ and drop onto distfiles
Source0: %{name}.tar.gz
# Source0-md5: 3f3b5c59ebb5a807ec2d6c5ec31e795b
+Patch0: %{name}-logdb_mysql5.patch
URL: http://ejabberd.jabber.ru/
BuildRequires: erlang >= R9C
BuildRequires: rpmbuild(macros) >= 1.268
%prep
%setup -q -n %{name}
+%if %{with logdb}
+%patch0 -p0
+%endif
%build
erlc mysql*.erl