]>
Commit | Line | Data |
---|---|---|
885cd040 JB |
1 | # |
2 | # Conditional build: | |
52bc40da | 3 | %bcond_without aspell # without spell checking |
885cd040 | 4 | %bcond_without voip # without VoIP support |
d9c5c558 | 5 | %bcond_without python # with python support |
5914ec6b | 6 | %bcond_without pthread # build with Posix threads support |
885cd040 | 7 | %bcond_with ioctl_daemon # with ioctl_daemon (suid root) |
bbc3cb88 | 8 | %bcond_with lock_reason # with lock_reason patch |
885cd040 | 9 | # |
16fa9a8a | 10 | Summary: A client compatible with Gadu-Gadu |
1dbf50e3 ER |
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 | |
16fa9a8a | 15 | Name: ekg |
f76d8cf2 | 16 | Version: 1.7 |
403885a3 | 17 | Release: 2 |
68bd1e98 | 18 | Epoch: 4 |
c3065a30 | 19 | License: GPL v2 |
d26d141d | 20 | Group: Applications/Communications |
20951c01 | 21 | Source0: http://ekg.chmurka.net/%{name}-%{version}.tar.gz |
f76d8cf2 | 22 | # Source0-md5: 2aa92b56517fdf09d75519a105772b74 |
6d45143b | 23 | Source1: %{name}.conf |
abccf4f1 | 24 | Patch0: %{name}-LDFLAGS.patch |
25 | Patch1: %{name}-lock_reason.patch | |
20951c01 | 26 | URL: http://ekg.chmurka.net/ |
0c6f31ba | 27 | BuildRequires: %{_bindir}/perl |
52bc40da | 28 | %{?with_aspell:BuildRequires: aspell-devel} |
cc0909ea JB |
29 | BuildRequires: autoconf |
30 | BuildRequires: automake | |
dad7039f | 31 | %{?with_voip:BuildRequires: libgsm-devel} |
7a60042e | 32 | BuildRequires: libjpeg-devel |
16f43e8b | 33 | BuildRequires: ncurses-devel |
b4f5b154 | 34 | BuildRequires: openssl-devel >= 0.9.7d |
e725a65a KK |
35 | %if %{with python} |
36 | BuildRequires: python | |
37 | BuildRequires: python-devel | |
38 | %endif | |
cc0909ea JB |
39 | BuildRequires: readline-devel |
40 | BuildRequires: zlib-devel | |
5c392f9b | 41 | Requires: libgadu = %{epoch}:%{version}-%{release} |
16fa9a8a | 42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
0f2b10a8 | 43 | |
44 | %description | |
782236ba AG |
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. | |
48 | ||
49 | EKG features include: | |
50 | - irssi-like ncurses interface | |
51 | - sending and receiving files | |
52 | - voice conversations | |
53 | - launching shell commands on certain events | |
54 | - reading input from pipe | |
55 | - python scripting support | |
56 | - speech synthesis (using an external program) | |
57 | - encryption support | |
58 | ||
59 | Please note that the program is not internationalized and all messages | |
b1cbd258 | 60 | are in Polish (although the commands are in English). |
0f2b10a8 | 61 | |
7cf2b953 | 62 | %description -l de.UTF-8 |
9cb95678 | 63 | Ein Cliente kompatibel mit Gadu-Gadu. |
64 | ||
7cf2b953 | 65 | %description -l es.UTF-8 |
9cb95678 | 66 | Un cliente compatible con Gadu-Gadu. |
a1e26334 | 67 | |
7cf2b953 | 68 | %description -l it.UTF-8 |
9cb95678 | 69 | Un cliente compatibile con Gadu-Gadu. |
83aa91cc | 70 | |
7cf2b953 | 71 | %description -l pl.UTF-8 |
782236ba | 72 | EKG ("Eksperymentalny Klient Gadu-Gadu") jest open source'owym |
7cf2b953 | 73 | klientem gadu-gadu dla systemów uniksowych. Gadu-Gadu to popularny w |
4dd31a27 | 74 | Polsce komunikator internetowy. |
782236ba | 75 | |
7cf2b953 JR |
76 | Możliwości EKG: |
77 | - interfejs użytkownika podobny do irssi, | |
78 | - wysyłanie i odbieranie plików, | |
79 | - rozmowy głosowe, | |
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), | |
782236ba AG |
84 | - wsparcie dla szyfrowania. |
85 | ||
7cf2b953 JR |
86 | Program nie jest umiędzynarodowiony i wszystkie komunikaty są po |
87 | polsku (jednak komendy są w języku angielskim). | |
83aa91cc | 88 | |
acb47067 TP |
89 | %package -n libgadu |
90 | Summary: libgadu library | |
1dbf50e3 ER |
91 | Summary(es.UTF-8): Biblioteca libgadu |
92 | Summary(pl.UTF-8): Biblioteka libgadu | |
885cd040 | 93 | License: LGPL v2.1 |
b409b67d | 94 | Group: Libraries |
be17e097 | 95 | Obsoletes: libgg |
b409b67d | 96 | |
acb47067 TP |
97 | %description -n libgadu |
98 | libgadu is intended to make it easy to add Gadu-Gadu communication | |
16fa9a8a | 99 | support to your software. |
b409b67d | 100 | |
7cf2b953 JR |
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. | |
7c7dd56c | 104 | |
7cf2b953 JR |
105 | %description -n libgadu -l es.UTF-8 |
106 | libgadu está pensada para facilitar añadirle comunicación vía | |
9cb95678 | 107 | Gadu-Gadu a su software. |
108 | ||
7cf2b953 JR |
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. | |
7e8ece47 | 112 | |
acb47067 | 113 | %package -n libgadu-devel |
9cb95678 | 114 | Summary: libgadu development library |
1dbf50e3 ER |
115 | Summary(es.UTF-8): Biblioteca de desarrollo de libgadu |
116 | Summary(pl.UTF-8): Część biblioteki libgadu dla programistów | |
885cd040 | 117 | License: LGPL v2.1 |
b409b67d | 118 | Group: Development/Libraries |
260759fd | 119 | Requires: libgadu = %{epoch}:%{version}-%{release} |
885cd040 | 120 | Requires: openssl-devel |
be17e097 | 121 | Obsoletes: libgg-devel |
b409b67d | 122 | |
acb47067 TP |
123 | %description -n libgadu-devel |
124 | The libgadu-devel package contains the header files and some | |
125 | documentation needed to develop application with libgadu. | |
b409b67d | 126 | |
7cf2b953 JR |
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 | |
e995c2fc | 130 | entwickeln. |
7c7dd56c | 131 | |
7cf2b953 | 132 | %description -n libgadu-devel -l es.UTF-8 |
9cb95678 | 133 | El paquete libgadu-devel contiene los ficheros de cabecera, juntos con |
7cf2b953 | 134 | una documentación, necesarios para desarrollar aplicaciones que usar |
9cb95678 | 135 | libgadu. |
136 | ||
7cf2b953 JR |
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. | |
7e8ece47 | 140 | |
acb47067 | 141 | %package -n libgadu-static |
9cb95678 | 142 | Summary: Static libgadu library |
1dbf50e3 ER |
143 | Summary(es.UTF-8): Biblioteca libgadu estática |
144 | Summary(pl.UTF-8): Statyczna biblioteka libgadu | |
885cd040 | 145 | License: LGPL v2.1 |
40399069 | 146 | Group: Development/Libraries |
260759fd | 147 | Requires: libgadu-devel = %{epoch}:%{version}-%{release} |
be17e097 | 148 | Obsoletes: libgg-static |
40399069 | 149 | |
acb47067 TP |
150 | %description -n libgadu-static |
151 | Static libgadu library. | |
40399069 | 152 | |
7cf2b953 | 153 | %description -n libgadu-static -l de.UTF-8 |
7c7dd56c ŁJM |
154 | Statisches libgadu Archiv. |
155 | ||
7cf2b953 JR |
156 | %description -n libgadu-static -l es.UTF-8 |
157 | Biblioteca libgadu estática. | |
9cb95678 | 158 | |
7cf2b953 | 159 | %description -n libgadu-static -l pl.UTF-8 |
7e8ece47 | 160 | Statyczna biblioteka libgadu. |
161 | ||
0f2b10a8 | 162 | %prep |
924a7ec8 | 163 | %setup -q |
abccf4f1 | 164 | %patch0 -p0 |
bbc3cb88 | 165 | %if %{with lock_reason} |
abccf4f1 | 166 | %patch1 -p1 |
bbc3cb88 | 167 | %endif |
0f2b10a8 | 168 | |
169 | %build | |
c56e51fa | 170 | %{__aclocal} -I m4 |
20e60f56 | 171 | %{__autoheader} |
172 | %{__autoconf} | |
8ef2af65 | 173 | %configure \ |
9edc2338 | 174 | CFLAGS_LIBGADU="%{rpmcflags}" \ |
5c392f9b | 175 | --enable-dynamic \ |
cc801eba MK |
176 | --enable-shared \ |
177 | --enable-static \ | |
e43df637 | 178 | %if %{with pthread} |
2079e14d | 179 | --with-pthread \ |
e43df637 MM |
180 | %else |
181 | --without-pthread \ | |
182 | %endif | |
7a60042e | 183 | --without-bind \ |
dad7039f | 184 | %{?with_python:--with-python} \ |
db66f667 | 185 | %{!?with_voip:--without-libgsm} \ |
52bc40da | 186 | %{?with_aspell:--enable-aspell} \ |
eba7c257 | 187 | %{?with_ioctl_daemon:--enable-ioctld} |
885cd040 | 188 | |
9edc2338 | 189 | %{__make} |
0f2b10a8 | 190 | |
dad7039f | 191 | %if %{with ioctl_daemon} |
885cd040 | 192 | %{__make} -C src ioctld |
7cf2fdf8 | 193 | %endif |
194 | ||
0f2b10a8 | 195 | %install |
196 | rm -rf $RPM_BUILD_ROOT | |
20e60f56 | 197 | install -d $RPM_BUILD_ROOT%{_sysconfdir} |
198 | ||
d285d758 PG |
199 | %{__make} install install-ekl2 \ |
200 | DESTDIR=$RPM_BUILD_ROOT | |
0f2b10a8 | 201 | |
885cd040 | 202 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} |
0f2b10a8 | 203 | |
8775f7e8 ŁJM |
204 | # For libgadu-devel |
205 | ||
260759fd JB |
206 | rm -f examples/Makefile examples/Makefile.in examples/.cvsignore |
207 | rm -rf examples/CVS | |
43a3a70b | 208 | |
fd2ca1b4 | 209 | install -d $RPM_BUILD_ROOT%{_examplesdir}/libgadu-%{version} |
260759fd | 210 | cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/libgadu-%{version} |
8775f7e8 | 211 | |
dad7039f | 212 | %if %{with ioctl_daemon} |
cb122163 | 213 | install src/ioctld $RPM_BUILD_ROOT%{_bindir} |
443240d5 JK |
214 | %endif |
215 | ||
f96028e7 JB |
216 | cd $RPM_BUILD_ROOT%{_libdir} |
217 | ln -sf libgadu.so.*.* libgadu.so | |
218 | ||
0f2b10a8 | 219 | %clean |
220 | rm -rf $RPM_BUILD_ROOT | |
221 | ||
d26d141d | 222 | %post -n libgadu -p /sbin/ldconfig |
acb47067 | 223 | %postun -n libgadu -p /sbin/ldconfig |
16fa9a8a | 224 | |
0f2b10a8 | 225 | %files |
226 | %defattr(644,root,root,755) | |
5ff60259 | 227 | %doc docs/{7thguard,dcc,files,gdb,python,sim,themes,ui-ncurses,vars,voip}.txt |
45efdda4 | 228 | %{?with_aspell:%doc docs/slownik.txt} |
d03bc2d5 | 229 | %doc ChangeLog docs/{FAQ,README,TODO,ULOTKA} docs/emoticons.{ansi,sample} |
0f7cf26d | 230 | %attr(755,root,root) %{_bindir}/e* |
dad7039f | 231 | %{?with_ioctl_daemon:%attr(4755,root,root) %{_bindir}/ioctld} |
059bcb29 | 232 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf |
0c754970 | 233 | %{_datadir}/ekg |
16fa9a8a TP |
234 | %{_mandir}/man1/* |
235 | %lang(pl) %{_mandir}/pl/man1/* | |
236 | ||
acb47067 | 237 | %files -n libgadu |
6d8fed3b | 238 | %defattr(644,root,root,755) |
f96028e7 | 239 | %attr(755,root,root) %{_libdir}/libgadu.so.*.* |
b409b67d | 240 | |
acb47067 | 241 | %files -n libgadu-devel |
b409b67d | 242 | %defattr(644,root,root,755) |
c308fa79 | 243 | %doc docs/{7thguard,ui,devel-hints,przenosny-kod}.txt docs/protocol.html |
43a3a70b | 244 | %doc ChangeLog docs/{README,TODO} |
260759fd | 245 | %attr(755,root,root) %{_libdir}/libgadu.so |
acb47067 | 246 | %{_includedir}/libgadu.h |
c2957aa0 | 247 | %{_includedir}/libgadu-config.h |
5c392f9b | 248 | %{_pkgconfigdir}/libgadu.pc |
260759fd | 249 | %{_examplesdir}/libgadu-%{version} |
40399069 | 250 | |
acb47067 | 251 | %files -n libgadu-static |
6d8fed3b | 252 | %defattr(644,root,root,755) |
260759fd | 253 | %{_libdir}/libgadu.a |