3 %bcond_without aspell # without spell checking
4 %bcond_without voip # without VoIP support
5 %bcond_without python # with python support
6 %bcond_without pthread # build with Posix threads support
7 %bcond_with ioctl_daemon # with ioctl_daemon (suid root)
8 %bcond_with lock_reason # with lock_reason patch
10 Summary: A client compatible with Gadu-Gadu
11 Summary(de.UTF-8): Ein Cliente kompatibel mit Gadu-Gadu
12 Summary(es.UTF-8): Un cliente compatible con Gadu-Gadu
13 Summary(it.UTF-8): Un cliente compatibile con Gadu-Gadu
14 Summary(pl.UTF-8): Klient kompatybilny z Gadu-Gadu
20 Group: Applications/Communications
21 Source0: http://ekg.chmurka.net/%{name}-%{version}.tar.gz
22 # Source0-md5: 2aa92b56517fdf09d75519a105772b74
24 Patch0: %{name}-LDFLAGS.patch
25 Patch1: %{name}-lock_reason.patch
26 URL: http://ekg.chmurka.net/
27 BuildRequires: %{_bindir}/perl
28 %{?with_aspell:BuildRequires: aspell-devel}
29 BuildRequires: autoconf
30 BuildRequires: automake
31 %{?with_voip:BuildRequires: libgsm-devel}
32 BuildRequires: libjpeg-devel
33 BuildRequires: ncurses-devel
34 BuildRequires: openssl-devel >= 0.9.7d
37 BuildRequires: python-devel
39 BuildRequires: readline-devel
40 BuildRequires: zlib-devel
41 Requires: libgadu = %{epoch}:%{version}-%{release}
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 EKG ("Eksperymentalny Klient Gadu-Gadu") is an open source gadu-gadu
46 client for UNIX systems. Gadu-Gadu is an instant messaging program,
47 very popular in Poland.
50 - irssi-like ncurses interface
51 - sending and receiving files
53 - launching shell commands on certain events
54 - reading input from pipe
55 - python scripting support
56 - speech synthesis (using an external program)
59 Please note that the program is not internationalized and all messages
60 are in Polish (although the commands are in English).
62 %description -l de.UTF-8
63 Ein Cliente kompatibel mit Gadu-Gadu.
65 %description -l es.UTF-8
66 Un cliente compatible con Gadu-Gadu.
68 %description -l it.UTF-8
69 Un cliente compatibile con Gadu-Gadu.
71 %description -l pl.UTF-8
72 EKG ("Eksperymentalny Klient Gadu-Gadu") jest open source'owym
73 klientem gadu-gadu dla systemów uniksowych. Gadu-Gadu to popularny w
74 Polsce komunikator internetowy.
77 - interfejs użytkownika podobny do irssi,
78 - wysyłanie i odbieranie plików,
80 - uruchamianie poleceń powłoki w określonych sytuacjach,
81 - wczytywanie wejścia z potoku,
82 - wsparcie dla skryptów w języku Python,
83 - synteza mowy (z użyciem zewnętrznego programu),
84 - wsparcie dla szyfrowania.
86 Program nie jest umiędzynarodowiony i wszystkie komunikaty są po
87 polsku (jednak komendy są w języku angielskim).
90 Summary: libgadu library
91 Summary(es.UTF-8): Biblioteca libgadu
92 Summary(pl.UTF-8): Biblioteka libgadu
97 %description -n libgadu
98 libgadu is intended to make it easy to add Gadu-Gadu communication
99 support to your software.
101 %description -n libgadu -l de.UTF-8
102 Mit libgadu ist es Ihnen möglich auf einfache Weise Gadu-Gadu
103 Kommunikations-Unterstützung in Ihre Software einzubinden.
105 %description -n libgadu -l es.UTF-8
106 libgadu está pensada para facilitar añadirle comunicación vía
107 Gadu-Gadu a su software.
109 %description -n libgadu -l pl.UTF-8
110 libgadu umożliwia łatwe dodanie do różnych aplikacji komunikacji
111 bazującej na protokole Gadu-Gadu.
113 %package -n libgadu-devel
114 Summary: libgadu development library
115 Summary(es.UTF-8): Biblioteca de desarrollo de libgadu
116 Summary(pl.UTF-8): Część biblioteki libgadu dla programistów
118 Group: Development/Libraries
119 Requires: libgadu = %{epoch}:%{version}-%{release}
120 Requires: openssl-devel
121 Obsoletes: libgg-devel
123 %description -n libgadu-devel
124 The libgadu-devel package contains the header files and some
125 documentation needed to develop application with libgadu.
127 %description -n libgadu-devel -l de.UTF-8
128 Das libgadu-devel Paket enthält Header-Files (Kopfzeilenordner) und
129 die Dokumentation die Sie benötigen um mit libgadu Anwendungen zu
132 %description -n libgadu-devel -l es.UTF-8
133 El paquete libgadu-devel contiene los ficheros de cabecera, juntos con
134 una documentación, necesarios para desarrollar aplicaciones que usar
137 %description -n libgadu-devel -l pl.UTF-8
138 Pakiet libgadu-devel zawiera pliki nagłówkowe i dokumentację,
139 potrzebne do kompilowania aplikacji korzystających z libgadu.
141 %package -n libgadu-static
142 Summary: Static libgadu library
143 Summary(es.UTF-8): Biblioteca libgadu estática
144 Summary(pl.UTF-8): Statyczna biblioteka libgadu
146 Group: Development/Libraries
147 Requires: libgadu-devel = %{epoch}:%{version}-%{release}
148 Obsoletes: libgg-static
150 %description -n libgadu-static
151 Static libgadu library.
153 %description -n libgadu-static -l de.UTF-8
154 Statisches libgadu Archiv.
156 %description -n libgadu-static -l es.UTF-8
157 Biblioteca libgadu estática.
159 %description -n libgadu-static -l pl.UTF-8
160 Statyczna biblioteka libgadu.
165 %if %{with lock_reason}
174 CFLAGS_LIBGADU="%{rpmcflags}" \
184 %{?with_python:--with-python} \
185 %{!?with_voip:--without-libgsm} \
186 %{?with_aspell:--enable-aspell} \
187 %{?with_ioctl_daemon:--enable-ioctld}
191 %if %{with ioctl_daemon}
192 %{__make} -C src ioctld
196 rm -rf $RPM_BUILD_ROOT
197 install -d $RPM_BUILD_ROOT%{_sysconfdir}
199 %{__make} install install-ekl2 \
200 DESTDIR=$RPM_BUILD_ROOT
202 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
206 rm -f examples/Makefile examples/Makefile.in examples/.cvsignore
209 install -d $RPM_BUILD_ROOT%{_examplesdir}/libgadu-%{version}
210 cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/libgadu-%{version}
212 %if %{with ioctl_daemon}
213 install src/ioctld $RPM_BUILD_ROOT%{_bindir}
216 cd $RPM_BUILD_ROOT%{_libdir}
217 ln -sf libgadu.so.*.* libgadu.so
220 rm -rf $RPM_BUILD_ROOT
222 %post -n libgadu -p /sbin/ldconfig
223 %postun -n libgadu -p /sbin/ldconfig
226 %defattr(644,root,root,755)
227 %doc docs/{7thguard,dcc,files,gdb,python,sim,themes,ui-ncurses,vars,voip}.txt
228 %{?with_aspell:%doc docs/slownik.txt}
229 %doc ChangeLog docs/{FAQ,README,TODO,ULOTKA} docs/emoticons.{ansi,sample}
230 %attr(755,root,root) %{_bindir}/e*
231 %{?with_ioctl_daemon:%attr(4755,root,root) %{_bindir}/ioctld}
232 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
235 %lang(pl) %{_mandir}/pl/man1/*
238 %defattr(644,root,root,755)
239 %attr(755,root,root) %{_libdir}/libgadu.so.*.*
241 %files -n libgadu-devel
242 %defattr(644,root,root,755)
243 %doc docs/{7thguard,ui,devel-hints,przenosny-kod}.txt docs/protocol.html
244 %doc ChangeLog docs/{README,TODO}
245 %attr(755,root,root) %{_libdir}/libgadu.so
246 %{_includedir}/libgadu.h
247 %{_includedir}/libgadu-config.h
248 %{_pkgconfigdir}/libgadu.pc
249 %{_examplesdir}/libgadu-%{version}
251 %files -n libgadu-static
252 %defattr(644,root,root,755)