+#
+# Conditional build:
+# _with_ipv6 - with IPv6 support
+#
Summary: A GNOME Jabber client
-Summary(es): Klient Jabber dla GNOME
+Summary(pl): Klient Jabber dla GNOME
+Summary(pt_BR): Um cliente GNOME para o Jabber
Name: gabber
-Version: 0.8.2
-Release: 1
+Version: 1.9.4
+Release: 1.1
License: GPL
Group: Applications/Communications
-Group(de): Applikationen/Kommunikation
-Group(pl): Aplikacje/Komunikacja
-Source0: http://prdownloads.sourceforge.net/gabber/%{name}-%{version}.tar.gz
-Patch0: %{name}-DESTDIR.patch
+Source0: http://www.jabberstudio.org/files/gabber/Gabber-%{version}.tar.gz
+# Source0-md5: eea74466431b962349ae9a911f010ea2
+Patch0: %{name}-types.patch
+Patch1: %{name}-conffix.patch
URL: http://gabber.sourceforge.net/
-BuildRequires: gnome-libs-devel >= 1.2.13
-BuildRequires: gtk+-devel >= 1.2.5
-BuildRequires: ORBit-devel
-BuildRequires: libglade-devel
-BuildRequires: libsigc++-devel
-BuildRequires: gtkmm-devel >= 1.1.12
-BuildRequires: gnomemm-devel
-BuildRequires: openssl-devel
-BuildRequires: libunicode-devel
-BuildRequires: iconv >= 2.2.0
-BuildRequires: gettext-devel
-BuildRequires: xml-i18n-tools
-BuildRequires: esound-devel
-BuildRequires: automake
-BuildRequires: autoconf
-BuildRequires: libtool
-Requires: iconv >= 2.2.0
-Prereq: /sbin/ldconfig
-Requires: applnk
+BuildRequires: gconfmm-devel >= 2.0.0
+BuildRequires: jabberoo-devel >= 1.9.1
+BuildRequires: libglademm-devel >= 2.0.0
+BuildRequires: libsigc++12-devel >= 1.2.3
+BuildRequires: aspell-devel
+Requires(post): GConf2
+Requires: gnupg
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _prefix /usr/X11R6
-%define _sysconfdir /etc/X11/GNOME
-%define _mandir %{_prefix}/man
-
%description
-Gabber is a Gnome client for the distributed Open Source instant
+Gabber is a GNOME client for the distributed Open Source instant
messaging system called Jabber. Gabber aims to be a fairly complete
client while remaining easy to use, trying to maintain a balance
between too many features and being powerful enough.
Jabber. Gabber jest kompletnym klientem systemu Jabber pozostaj±c przy
tym prostym w u¿yciu.
+%description -l pt_BR
+Gabber é um cliente GNOME para o sistema distribuído de mensagens
+instantâneas Jabber. Gabber é um cliente completo, sendo poderoso e ao
+mesmo tempo fácil de usar.
+
%prep
-%setup -q
+%setup -q -n Gabber-%{version}
%patch0 -p1
+%patch1 -p1
%build
-rm missing
-libtoolize --copy --force
-xml-i18n-toolize --copy --force
-gettextize --copy --force
-aclocal -I macros
-autoheader
-autoconf
-automake -a -c
+CXXFLAGS="%{rpmcflags}"
%configure \
- --enable-gnome \
- --enable-panel \
- --disable-perl
+ --%{!?debug:dis}%{?debug:en}able-debug \
+ --disable-schemas-install \
+ %{?_with_ipv6:--enable-ipv6}
%{__make}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
- Applicationsdir=%{_applnkdir}/Network/Communications
-
-gzip -9nf AUTHORS NEWS README TODO
+ GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
-%find_lang %{name} --with-gnome --all-name
+# modules are loaded through Glib::Module, i.e. gmodule interface
+rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.{a,la}
%clean
rm -rf $RPM_BUILD_ROOT
-%files -f %{name}.lang
+%post
+%gconf_schema_install
+
+%files
%defattr(644,root,root,755)
-%doc *.gz
-%{_sysconfdir}/*/*/*
+%doc AUTHORS NEWS README TODO
+%{_sysconfdir}/gconf/schemas/*
%attr(755,root,root) %{_bindir}/*
-%{_applnkdir}/Network/Communications/*.desktop
-%{_datadir}/%{name}
-%{_datadir}/omf/%{name}
+%dir %{_libdir}/Gabber
+%attr(755,root,root) %{_libdir}/Gabber/*.so
+%{_datadir}/Gabber
+%{_desktopdir}/*
%{_pixmapsdir}/*
-%{_datadir}/sounds/*