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: 1094eee5062d9b9900c4b28bd68fb564
24 Patch0: %{name}-jpeg.patch
25 Patch1: %{name}-LDFLAGS.patch
26 Patch2: %{name}-lock_reason.patch
27 URL: http://ekg.chmurka.net/
28 BuildRequires: %{_bindir}/perl
29 %{?with_aspell:BuildRequires: aspell-devel}
30 BuildRequires: autoconf
31 BuildRequires: automake
32 %{?with_voip:BuildRequires: libgsm-devel}
33 BuildRequires: libjpeg-devel
34 BuildRequires: ncurses-devel
35 BuildRequires: openssl-devel >= 0.9.7d
38 BuildRequires: python-devel
40 BuildRequires: readline-devel
41 BuildRequires: zlib-devel
42 Requires: libgadu = %{epoch}:%{version}-%{release}
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 EKG ("Eksperymentalny Klient Gadu-Gadu") is an open source gadu-gadu
47 client for UNIX systems. Gadu-Gadu is an instant messaging program,
48 very popular in Poland.
51 - irssi-like ncurses interface
52 - sending and receiving files
54 - launching shell commands on certain events
55 - reading input from pipe
56 - python scripting support
57 - speech synthesis (using an external program)
60 Please note that the program is not internationalized and all messages
61 are in Polish (although the commands are in English).
63 %description -l de.UTF-8
64 Ein Cliente kompatibel mit Gadu-Gadu.
66 %description -l es.UTF-8
67 Un cliente compatible con Gadu-Gadu.
69 %description -l it.UTF-8
70 Un cliente compatibile con Gadu-Gadu.
72 %description -l pl.UTF-8
73 EKG ("Eksperymentalny Klient Gadu-Gadu") jest open source'owym
74 klientem gadu-gadu dla systemów uniksowych. Gadu-Gadu to popularny w
75 Polsce komunikator internetowy.
78 - interfejs użytkownika podobny do irssi,
79 - wysyłanie i odbieranie plików,
81 - uruchamianie poleceń powłoki w określonych sytuacjach,
82 - wczytywanie wejścia z potoku,
83 - wsparcie dla skryptów w języku Python,
84 - synteza mowy (z użyciem zewnętrznego programu),
85 - wsparcie dla szyfrowania.
87 Program nie jest umiędzynarodowiony i wszystkie komunikaty są po
88 polsku (jednak komendy są w języku angielskim).
91 Summary: libgadu library
92 Summary(es.UTF-8): Biblioteca libgadu
93 Summary(pl.UTF-8): Biblioteka libgadu
98 %description -n libgadu
99 libgadu is intended to make it easy to add Gadu-Gadu communication
100 support to your software.
102 %description -n libgadu -l de.UTF-8
103 Mit libgadu ist es Ihnen möglich auf einfache Weise Gadu-Gadu
104 Kommunikations-Unterstützung in Ihre Software einzubinden.
106 %description -n libgadu -l es.UTF-8
107 libgadu está pensada para facilitar añadirle comunicación vía
108 Gadu-Gadu a su software.
110 %description -n libgadu -l pl.UTF-8
111 libgadu umożliwia łatwe dodanie do różnych aplikacji komunikacji
112 bazującej na protokole Gadu-Gadu.
114 %package -n libgadu-devel
115 Summary: libgadu development library
116 Summary(es.UTF-8): Biblioteca de desarrollo de libgadu
117 Summary(pl.UTF-8): Część biblioteki libgadu dla programistów
119 Group: Development/Libraries
120 Requires: libgadu = %{epoch}:%{version}-%{release}
121 Requires: openssl-devel
122 Obsoletes: libgg-devel
124 %description -n libgadu-devel
125 The libgadu-devel package contains the header files and some
126 documentation needed to develop application with libgadu.
128 %description -n libgadu-devel -l de.UTF-8
129 Das libgadu-devel Paket enthält Header-Files (Kopfzeilenordner) und
130 die Dokumentation die Sie benötigen um mit libgadu Anwendungen zu
133 %description -n libgadu-devel -l es.UTF-8
134 El paquete libgadu-devel contiene los ficheros de cabecera, juntos con
135 una documentación, necesarios para desarrollar aplicaciones que usar
138 %description -n libgadu-devel -l pl.UTF-8
139 Pakiet libgadu-devel zawiera pliki nagłówkowe i dokumentację,
140 potrzebne do kompilowania aplikacji korzystających z libgadu.
142 %package -n libgadu-static
143 Summary: Static libgadu library
144 Summary(es.UTF-8): Biblioteca libgadu estática
145 Summary(pl.UTF-8): Statyczna biblioteka libgadu
147 Group: Development/Libraries
148 Requires: libgadu-devel = %{epoch}:%{version}-%{release}
149 Obsoletes: libgg-static
151 %description -n libgadu-static
152 Static libgadu library.
154 %description -n libgadu-static -l de.UTF-8
155 Statisches libgadu Archiv.
157 %description -n libgadu-static -l es.UTF-8
158 Biblioteca libgadu estática.
160 %description -n libgadu-static -l pl.UTF-8
161 Statyczna biblioteka libgadu.
167 %if %{with lock_reason}
176 CFLAGS_LIBGADU="%{rpmcflags}" \
186 %{?with_python:--with-python} \
187 %{!?with_voip:--without-libgsm} \
188 %{?with_aspell:--enable-aspell} \
189 %{?with_ioctl_daemon:--enable-ioctld}
193 %if %{with ioctl_daemon}
194 %{__make} -C src ioctld
198 rm -rf $RPM_BUILD_ROOT
199 install -d $RPM_BUILD_ROOT%{_sysconfdir}
201 %{__make} install install-ekl2 \
202 DESTDIR=$RPM_BUILD_ROOT
204 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
208 rm -f examples/Makefile examples/Makefile.in examples/.cvsignore
211 install -d $RPM_BUILD_ROOT%{_examplesdir}/libgadu-%{version}
212 cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/libgadu-%{version}
214 %if %{with ioctl_daemon}
215 install src/ioctld $RPM_BUILD_ROOT%{_bindir}
218 cd $RPM_BUILD_ROOT%{_libdir}
219 ln -sf libgadu.so.*.* libgadu.so
222 rm -rf $RPM_BUILD_ROOT
224 %post -n libgadu -p /sbin/ldconfig
225 %postun -n libgadu -p /sbin/ldconfig
228 %defattr(644,root,root,755)
229 %doc docs/{7thguard,dcc,files,gdb,python,sim,themes,ui-ncurses,vars,voip}.txt
230 %{?with_aspell:%doc docs/slownik.txt}
231 %doc ChangeLog docs/{FAQ,README,TODO,ULOTKA} docs/emoticons.{ansi,sample}
232 %attr(755,root,root) %{_bindir}/e*
233 %{?with_ioctl_daemon:%attr(4755,root,root) %{_bindir}/ioctld}
234 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
237 %lang(pl) %{_mandir}/pl/man1/*
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_libdir}/libgadu.so.*.*
243 %files -n libgadu-devel
244 %defattr(644,root,root,755)
245 %doc docs/{7thguard,ui,devel-hints,przenosny-kod}.txt docs/protocol.html
246 %doc ChangeLog docs/{README,TODO}
247 %attr(755,root,root) %{_libdir}/libgadu.so
248 %{_includedir}/libgadu.h
249 %{_includedir}/libgadu-config.h
250 %{_pkgconfigdir}/libgadu.pc
251 %{_examplesdir}/libgadu-%{version}
253 %files -n libgadu-static
254 %defattr(644,root,root,755)