%bcond_without perl
%bcond_without esd
%bcond_without gtkspell
+%bcond_without dbus
#
Summary: GNU Gadu 2 - free talking
Summary(es): GNU Gadu 2 - charlar libremente
Summary(pl): GNU Gadu 2 - wolne gadanie
Name: gg2
-Version: 2.0.6
-Release: 3
+Version: 2.2.3
+Release: 2
Epoch: 3
License: GPL v2+
Group: Applications/Communications
Source0: http://osdn.dl.sourceforge.net/sourceforge/ggadu/%{name}-%{version}.tar.gz
-# Source0-md5: ed977cb5bc00b37c9ceaece94f785b65
+# Source0-md5: 5d38e161612307ea2a7a00f9453678e3
URL: http://www.gnugadu.org/
+Patch0: %{name}-desktop.patch
%{?with_arts:BuildRequires: artsc-devel}
BuildRequires: autoconf
BuildRequires: automake >= 1.7
BuildRequires: gtk+2-devel >= 2.4.0
BuildRequires: libtlen-devel
BuildRequires: libtool
-BuildRequires: loudmouth-devel >= 0.16-4
+BuildRequires: loudmouth-devel >= 0.17.1
BuildRequires: openssl-devel >= 0.9.7d
+%{?with_dbus:BuildRequires: dbus-libs >= 0.22}
%{?with_perl:BuildRequires: perl-devel}
%{?with_gtkspell:BuildRequires: gtkspell-devel}
%{?with_gtkspell:BuildRequires: aspell-devel}
BuildRequires: pkgconfig
BuildRequires: xosd-devel >= 2.0.0
Requires: gg2-ui
+Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Group: Applications/Communications
Provides: %{name}-remote = %{epoch}:%{version}-%{release}
Obsoletes: %{name}-remote
-Provides: gg2-ui
+#Provides: gg2-ui
Requires: %{name} = %{epoch}:%{version}-%{release}
%description plugin-remote
%description plugin-remote -l es
Permite intercambiar los datos con otras aplicaciones.
-
%description plugin-remote -l pl
Wtyczka umo¿liwiaj±ca wymianê informacji z innymi aplikacjami.
-
%package plugin-history-external
Summary: Allow to view GNU Gadu chat history
-Summary(pl): Pozwala przegl±daæ historiê rozmów GNU Gadu.
+Summary(pl): Przegl±danie historii rozmów GNU Gadu
Group: Applications/Communications
Provides: %{name}-history-external = %{epoch}:%{version}-%{release}
Obsoletes: %{name}-history-external
Requires: %{name} = %{epoch}:%{version}-%{release}
%description plugin-history-external
-Allow to view GNU Gadu chat history
+Allow to view GNU Gadu chat history.
%description plugin-history-external -l pl
-Pozwala przegl±daæ historiê rozmów GNU Gadu.
+Wtyczka pozwalaj±ca przegl±daæ historiê rozmów GNU Gadu.
%package plugin-update
Summary: Check for new GNU Gadu newer version
Summary(es): Verifica si hay versiones nuevas de GNU Gadu
-Summary(pl): Sprawdza czy jest dostêpna nowsza wersja GNU Gadu
+Summary(pl): Sprawdzanie dostêpno¶ci nowszej wersji GNU Gadu
Group: Applications/Communications
Provides: %{name}-update = %{epoch}:%{version}-%{release}
Obsoletes: %{name}-update
Verifica si hay nuevas versiones de GNU Gadu.
%description plugin-update -l pl
-Sprawdza czy jest dostêpna nowsza wersja GNU Gadu
+Wtyczka sprawdzaj±ca, czy jest dostêpna nowsza wersja GNU Gadu.
+
+%package plugin-dbus
+Summary: Allow to communicate using D-BUS message bus
+Summary(pl): Komunikacja za pomoc± magistrali D-BUS
+Group: Applications/Communications
+Provides: %{name}-update = %{epoch}:%{version}-%{release}
+Obsoletes: %{name}-update
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description plugin-dbus
+This plugin allows to communicate using D-BUS interface.
+
+%description plugin-dbus -l pl
+Wtyczka pozwala na komunikacjê za pomoc± magistrali D-BUS.
%package themes
Summary: Themes for GNU Gadu 2 GUI
%prep
%setup -q
+%patch0 -p1
%build
-rm -f missing
%{__gettextize}
%{__libtoolize}
%{__aclocal} -I src/plugins/gadu_gadu/libgadu/m4
--with-history-external-viewer \
--with-gghist \
--with%{!?with_gtkspell:out}-gtkspell \
+ --with%{!?with_dbus:out}-dbus \
+ %{?with_dbus:--with-dbus-dir=%{_datadir}/dbus-1.0/services/} \
--%{?with_perl:with}%{!?with_perl:without}-perl \
--with-remote
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/gg2/libupdate_plugin.so
+%if %{with dbus}
+%files plugin-dbus
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/gg2/libdbus_plugin.so
+%{_datadir}/dbus-1.0/services/org.freedesktop.im.GG.service
+%endif
+
%files themes
%defattr(644,root,root,755)
%dir %{_datadir}/gg2/themes