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): Ein Cliente kompatibel mit Gadu-Gadu
12 Summary(es): Un cliente compatible con Gadu-Gadu
13 Summary(it): Un cliente compatibile con Gadu-Gadu
14 Summary(pl): 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).
64 Ein Cliente kompatibel mit Gadu-Gadu.
67 Un cliente compatible con Gadu-Gadu.
70 Un cliente compatibile con Gadu-Gadu.
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): Biblioteca libgadu
93 Summary(pl): 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
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
107 libgadu está pensada para facilitar añadirle comunicación vía
108 Gadu-Gadu a su software.
110 %description -n libgadu -l pl
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): Biblioteca de desarrollo de libgadu
117 Summary(pl): 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
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
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
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): Biblioteca libgadu estática
145 Summary(pl): 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
155 Statisches libgadu Archiv.
157 %description -n libgadu-static -l es
158 Biblioteca libgadu estática.
160 %description -n libgadu-static -l pl
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)