]>
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 |
76599bb9 | 16 | Version: 1.7 |
2dd3d0d3 | 17 | Release: 15 |
68bd1e98 | 18 | Epoch: 4 |
c3065a30 | 19 | License: GPL v2 |
d26d141d | 20 | Group: Applications/Communications |
76599bb9 AG |
21 | Source0: http://ekg.chmurka.net/%{name}-%{version}.tar.gz |
22 | # Source0-md5: 2aa92b56517fdf09d75519a105772b74 | |
6d45143b | 23 | Source1: %{name}.conf |
abccf4f1 | 24 | Patch0: %{name}-LDFLAGS.patch |
25 | Patch1: %{name}-lock_reason.patch | |
76599bb9 | 26 | Patch2: %{name}-external_libgadu.patch |
127cf97d | 27 | Patch3: %{name}-giflib.patch |
20951c01 | 28 | URL: http://ekg.chmurka.net/ |
0c6f31ba | 29 | BuildRequires: %{_bindir}/perl |
52bc40da | 30 | %{?with_aspell:BuildRequires: aspell-devel} |
cc0909ea JB |
31 | BuildRequires: autoconf |
32 | BuildRequires: automake | |
127cf97d | 33 | BuildRequires: giflib-devel >= 5.1 |
d0076d73 | 34 | BuildRequires: libgadu-devel >= 4:1.7.0 |
dad7039f | 35 | %{?with_voip:BuildRequires: libgsm-devel} |
7a60042e | 36 | BuildRequires: libjpeg-devel |
16f43e8b | 37 | BuildRequires: ncurses-devel |
b4f5b154 | 38 | BuildRequires: openssl-devel >= 0.9.7d |
60ba6353 | 39 | BuildRequires: pkgconfig |
e725a65a KK |
40 | %if %{with python} |
41 | BuildRequires: python | |
42 | BuildRequires: python-devel | |
60ba6353 | 43 | BuildRequires: python-modules |
e725a65a | 44 | %endif |
cc0909ea JB |
45 | BuildRequires: readline-devel |
46 | BuildRequires: zlib-devel | |
d7b15c2d | 47 | Requires: libgadu >= 4:1.7.0 |
16fa9a8a | 48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
0f2b10a8 | 49 | |
50 | %description | |
782236ba AG |
51 | EKG ("Eksperymentalny Klient Gadu-Gadu") is an open source gadu-gadu |
52 | client for UNIX systems. Gadu-Gadu is an instant messaging program, | |
53 | very popular in Poland. | |
54 | ||
55 | EKG features include: | |
56 | - irssi-like ncurses interface | |
57 | - sending and receiving files | |
58 | - voice conversations | |
59 | - launching shell commands on certain events | |
60 | - reading input from pipe | |
61 | - python scripting support | |
62 | - speech synthesis (using an external program) | |
63 | - encryption support | |
64 | ||
65 | Please note that the program is not internationalized and all messages | |
b1cbd258 | 66 | are in Polish (although the commands are in English). |
0f2b10a8 | 67 | |
7cf2b953 | 68 | %description -l de.UTF-8 |
9cb95678 | 69 | Ein Cliente kompatibel mit Gadu-Gadu. |
70 | ||
7cf2b953 | 71 | %description -l es.UTF-8 |
9cb95678 | 72 | Un cliente compatible con Gadu-Gadu. |
a1e26334 | 73 | |
7cf2b953 | 74 | %description -l it.UTF-8 |
9cb95678 | 75 | Un cliente compatibile con Gadu-Gadu. |
83aa91cc | 76 | |
7cf2b953 | 77 | %description -l pl.UTF-8 |
782236ba | 78 | EKG ("Eksperymentalny Klient Gadu-Gadu") jest open source'owym |
7cf2b953 | 79 | klientem gadu-gadu dla systemów uniksowych. Gadu-Gadu to popularny w |
4dd31a27 | 80 | Polsce komunikator internetowy. |
782236ba | 81 | |
7cf2b953 JR |
82 | Możliwości EKG: |
83 | - interfejs użytkownika podobny do irssi, | |
84 | - wysyłanie i odbieranie plików, | |
85 | - rozmowy głosowe, | |
86 | - uruchamianie poleceń powłoki w określonych sytuacjach, | |
87 | - wczytywanie wejścia z potoku, | |
88 | - wsparcie dla skryptów w języku Python, | |
89 | - synteza mowy (z użyciem zewnętrznego programu), | |
782236ba AG |
90 | - wsparcie dla szyfrowania. |
91 | ||
7cf2b953 JR |
92 | Program nie jest umiędzynarodowiony i wszystkie komunikaty są po |
93 | polsku (jednak komendy są w języku angielskim). | |
83aa91cc | 94 | |
0f2b10a8 | 95 | %prep |
76599bb9 | 96 | %setup -q |
abccf4f1 | 97 | %patch0 -p0 |
bbc3cb88 | 98 | %if %{with lock_reason} |
abccf4f1 | 99 | %patch1 -p1 |
bbc3cb88 | 100 | %endif |
76599bb9 | 101 | %patch2 -p0 |
127cf97d | 102 | %patch3 -p1 |
0f2b10a8 | 103 | |
104 | %build | |
c56e51fa | 105 | %{__aclocal} -I m4 |
20e60f56 | 106 | %{__autoheader} |
107 | %{__autoconf} | |
8ef2af65 | 108 | %configure \ |
9edc2338 | 109 | CFLAGS_LIBGADU="%{rpmcflags}" \ |
5c392f9b | 110 | --enable-dynamic \ |
cc801eba MK |
111 | --enable-shared \ |
112 | --enable-static \ | |
e43df637 | 113 | %if %{with pthread} |
2079e14d | 114 | --with-pthread \ |
e43df637 MM |
115 | %else |
116 | --without-pthread \ | |
117 | %endif | |
7a60042e | 118 | --without-bind \ |
dad7039f | 119 | %{?with_python:--with-python} \ |
db66f667 | 120 | %{!?with_voip:--without-libgsm} \ |
52bc40da | 121 | %{?with_aspell:--enable-aspell} \ |
eba7c257 | 122 | %{?with_ioctl_daemon:--enable-ioctld} |
885cd040 | 123 | |
9edc2338 | 124 | %{__make} |
0f2b10a8 | 125 | |
dad7039f | 126 | %if %{with ioctl_daemon} |
885cd040 | 127 | %{__make} -C src ioctld |
7cf2fdf8 | 128 | %endif |
129 | ||
0f2b10a8 | 130 | %install |
131 | rm -rf $RPM_BUILD_ROOT | |
20e60f56 | 132 | install -d $RPM_BUILD_ROOT%{_sysconfdir} |
133 | ||
d285d758 PG |
134 | %{__make} install install-ekl2 \ |
135 | DESTDIR=$RPM_BUILD_ROOT | |
0f2b10a8 | 136 | |
885cd040 | 137 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} |
0f2b10a8 | 138 | |
8775f7e8 ŁJM |
139 | # For libgadu-devel |
140 | ||
260759fd JB |
141 | rm -f examples/Makefile examples/Makefile.in examples/.cvsignore |
142 | rm -rf examples/CVS | |
43a3a70b | 143 | |
dad7039f | 144 | %if %{with ioctl_daemon} |
cb122163 | 145 | install src/ioctld $RPM_BUILD_ROOT%{_bindir} |
443240d5 JK |
146 | %endif |
147 | ||
0f2b10a8 | 148 | %clean |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
151 | %files | |
152 | %defattr(644,root,root,755) | |
76599bb9 | 153 | %doc docs/{7thguard,dcc,files,gdb,python,sim,themes,ui-ncurses,vars,voip}.txt |
45efdda4 | 154 | %{?with_aspell:%doc docs/slownik.txt} |
d03bc2d5 | 155 | %doc ChangeLog docs/{FAQ,README,TODO,ULOTKA} docs/emoticons.{ansi,sample} |
0f7cf26d | 156 | %attr(755,root,root) %{_bindir}/e* |
dad7039f | 157 | %{?with_ioctl_daemon:%attr(4755,root,root) %{_bindir}/ioctld} |
059bcb29 | 158 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf |
0c754970 | 159 | %{_datadir}/ekg |
16fa9a8a TP |
160 | %{_mandir}/man1/* |
161 | %lang(pl) %{_mandir}/pl/man1/* |