-%define snap 20021204
+%define snap 20030125
Summary: GNU Gadu 2 - free talking
Summary(pl): GNU Gadu 2 - wolne gadanie
Epoch: 1
License: GPL v2+
Group: Applications/Communications
-Source0: http://www.hakore.com/~krzak/gg2/%{name}-%{snap}.tar.bz2
+Source0: http://www.hakore.com/~krzak/gg2/%{name}-%{snap}.tar.gz
+Source1: %{name}.desktop
URL: http://gadu.gnu.pl/
#BuildRequires: arts-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: esound-devel >= 0.2.7
-BuildRequires: glib2-devel >= 2.0.1
-BuildRequires: gtk+2-devel >= 2.0.1
+BuildRequires: iksemel-devel >= 0.0.1
+BuildRequires: glib2-devel >= 2.1.0
+BuildRequires: gtk+2-devel >= 2.1.0
BuildRequires: libgadu-devel >= 20021123
BuildRequires: libtlen-devel
BuildRequires: libtool
BuildRequires: intltool
BuildRequires: xosd-devel >= 2.0.0
+BuildRequires: pkgconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _prefix /usr/X11R6
-
%description
Gadu-Gadu and Tlen.pl and any other instant messanger client with
GTK+2 GUI on GNU/GPL.
%description tlen -l pl
Wtyczka protoko³u Tlen.pl.
+%package jabber
+Summary: Jabber.org plugin
+Summary(pl): Wtyczka protoko³u Jabber
+Group: Applications/Communications
+Requires: %{name} = %{version}
+
+%description jabber
+Jabber protocol plugin.
+
+%description jabber -l pl
+Wtyczka protoko³u Jabber.org.
+
%package sound-esd
Summary: Sound support with ESD
Summary(pl): Obs³uga d¼wiêku poprzez ESD
%build
rm -f missing
+glib-gettextize --copy --force
+intltoolize --copy --force
%{__libtoolize}
%{__aclocal}
%{__automake}
--with-gtk2-gui \
--with-gadu-gadu \
--with-tlen \
+ --with-jabber \
--with-xosd \
--with-docklet \
--with-esd \
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/applications
+install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/applications
+install -d $RPM_BUILD_ROOT%{_pixmapsdir}/
+install $RPM_BUILD_ROOT%{_datadir}/%{name}/pixmaps/online.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm
+
%find_lang %{name} --all-name --with-gnome
%clean
%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/gg2
%dir %{_libdir}/gg2
+%{_datadir}/%{name}/sounds
%files gui-gtk+2
%defattr(644,root,root,755)
%{_datadir}/gg2/pixmaps/*png
%{_datadir}/gg2/pixmaps/*gif
+%{_pixmapsdir}/%{name}.xpm
+%{_datadir}/applications/gg2.desktop
+
%files emoticons
%attr(755,root,root) %{_datadir}/gg2/pixmaps/emoticons
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/gg2/libtlen_plugin.so
+%files jabber
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/gg2/libjabber_plugin.so
+
%files sound-esd
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/gg2/libsound_esd_plugin.so