#
# Conditional build:
+%bcond_without aspell # without spell checking
%bcond_without voip # without VoIP support
%bcond_with python # with python support
%bcond_with ioctl_daemon # with ioctl_daemon (suid root)
#
-%define snap 20040524
+%define snap 20040628
Summary: A client compatible with Gadu-Gadu
Summary(de): Ein Cliente kompatibel mit Gadu-Gadu
Summary(pl): Klient kompatybilny z Gadu-Gadu
Name: ekg
Version: 1.5
-Release: 0.%{snap}.2
+#Release: 0.%{snap}.3
+Release: 4
Epoch: 4
License: GPL v2
Group: Applications/Communications
-Source0: http://dev.null.pl/ekg/%{name}-%{snap}.tar.gz
-# Source0-md5: 5ce1e29047e4b7a1df7fef3a1abb1fd3
+#Source0: http://dev.null.pl/ekg/%{name}-%{snap}.tar.gz
+Source0: http://dev.null.pl/ekg/%{name}-%{version}.tar.gz
+# Source0-md5: 721ebfe7b13e9531b30d558465e6695f
Source1: %{name}.conf
Patch0: %{name}-kadu-0_3_6.patch
URL: http://dev.null.pl/ekg/
+%{?with_aspell:BuildRequires: aspell-devel}
BuildRequires: autoconf
BuildRequires: automake
%{?with_voip:BuildRequires: libgsm-devel}
Statyczna biblioteka libgadu.
%prep
-%setup -q -n %{name}-%{snap}
+#%setup -q -n %{name}-%{snap}
+%setup -q -n %{name}-%{version}
#%patch0 -p1
%build
--without-bind \
%{?with_python:--with-python} \
%{!?with_voip:--without-libgsm} \
+ %{?with_aspell:--enable-aspell} \
%{!?with_ioctl_daemon:--disable-ioctld}
%{__make} \
- CC="%{__cc} %{rpmcflags} -Wall -I/usr/include/ncurses"
+ CC="%{__cc} %{rpmcflags} -Wall -I%{_includedir}/ncurses"
%if %{with ioctl_daemon}
%{__make} -C src ioctld
%files
%defattr(644,root,root,755)
%doc docs/{7thguard,dcc,files,gdb,python,sim,themes,ui-ncurses,vars,voip}.txt
+%{?with_aspell:%doc docs/slownik.txt}
%doc ChangeLog docs/{FAQ,README,TODO,ULOTKA} docs/emoticons.{ansi,sample}
%attr(755,root,root) %{_bindir}/e*
%{?with_ioctl_daemon:%attr(4755,root,root) %{_bindir}/ioctld}