%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.2.0
-Release: 1
+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: 922561225eefaf1b2c1b13d772002581
+# Source0-md5: 5d38e161612307ea2a7a00f9453678e3
URL: http://www.gnugadu.org/
+Patch0: %{name}-desktop.patch
%{?with_arts:BuildRequires: artsc-devel}
BuildRequires: autoconf
BuildRequires: automake >= 1.7
BuildRequires: libtool
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-update -l pl
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
Summary(es): Temas para el GUI de GNU Gadu 2
%prep
%setup -q
+%patch0 -p1
%build
%{__gettextize}
--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