]> git.pld-linux.org Git - packages/ekg.git/blob - ekg.spec
- up to final 1.6; dropped yesterday_snapshot support
[packages/ekg.git] / ekg.spec
1 #
2 # Conditional build:
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 #
9 Summary:        A client compatible with Gadu-Gadu
10 Summary(de):    Ein Cliente kompatibel mit Gadu-Gadu
11 Summary(es):    Un cliente compatible con Gadu-Gadu
12 Summary(it):    Un cliente compatibile con Gadu-Gadu
13 Summary(pl):    Klient kompatybilny z Gadu-Gadu
14 Name:           ekg
15 Version:        1.6
16 Release:        1
17 Epoch:          4
18 License:        GPL v2
19 Group:          Applications/Communications
20 Source0:        http://dev.null.pl/ekg/%{name}-%{version}.tar.gz
21 # Source0-md5:  1094eee5062d9b9900c4b28bd68fb564
22 Source1:        %{name}.conf
23 URL:            http://dev.null.pl/ekg/
24 %{?with_aspell:BuildRequires:   aspell-devel}
25 BuildRequires:  autoconf
26 BuildRequires:  automake
27 %{?with_voip:BuildRequires:     libgsm-devel}
28 BuildRequires:  libjpeg-devel
29 BuildRequires:  ncurses-devel
30 BuildRequires:  openssl-devel >= 0.9.7d
31 BuildRequires:  %{_bindir}/perl
32 %if %{with python}
33 BuildRequires:  python
34 BuildRequires:  python-devel
35 %endif
36 BuildRequires:  readline-devel
37 BuildRequires:  zlib-devel
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 EKG ("Eksperymentalny Klient Gadu-Gadu") is an open source gadu-gadu
42 client for UNIX systems. Gadu-Gadu is an instant messaging program,
43 very popular in Poland.
44
45 EKG features include:
46   - irssi-like ncurses interface
47   - sending and receiving files
48   - voice conversations
49   - launching shell commands on certain events
50   - reading input from pipe
51   - python scripting support
52   - speech synthesis (using an external program)
53   - encryption support
54
55 Please note that the program is not internationalized and all messages
56 are in Polish (although the commands are in English).
57
58 %description -l de
59 Ein Cliente kompatibel mit Gadu-Gadu.
60
61 %description -l es
62 Un cliente compatible con Gadu-Gadu.
63
64 %description -l it
65 Un cliente compatibile con Gadu-Gadu.
66
67 %description -l pl
68 EKG ("Eksperymentalny Klient Gadu-Gadu") jest open source'owym
69 klientem gadu-gadu dla systemów uniksowych. Gadu-Gadu to popularny w
70 Polsce komunikator internetowy.
71
72 Mo¿liwo¶ci EKG:
73   - interfejs u¿ytkownika podobny do irssi,
74   - wysy³anie i odbieranie plików,
75   - rozmowy g³osowe,
76   - uruchamianie poleceñ pow³oki w okre¶lonych sytuacjach,
77   - wczytywanie wej¶cia z potoku,
78   - wsparcie dla skryptów w jêzyku Python,
79   - synteza mowy (z u¿yciem zewnêtrznego programu),
80   - wsparcie dla szyfrowania.
81
82 Program nie jest umiêdzynarodowiony i wszystkie komunikaty s± po
83 polsku (jednak komendy s± w jêzyku angielskim).
84
85 %package -n libgadu
86 Summary:        libgadu library
87 Summary(es):    Biblioteca libgadu
88 Summary(pl):    Biblioteka libgadu
89 License:        LGPL v2.1
90 Group:          Libraries
91 Obsoletes:      libgg
92
93 %description -n libgadu
94 libgadu is intended to make it easy to add Gadu-Gadu communication
95 support to your software.
96
97 %description -n libgadu -l de
98 Mit libgadu ist es Ihnen möglich auf einfache Weise Gadu-Gadu
99 Kommunikations-Unterstützung in Ihre Software einzubinden.
100
101 %description -n libgadu -l es
102 libgadu está pensada para facilitar añadirle comunicación vía
103 Gadu-Gadu a su software.
104
105 %description -n libgadu -l pl
106 libgadu umo¿liwia ³atwe dodanie do ró¿nych aplikacji komunikacji
107 bazuj±cej na protokole Gadu-Gadu.
108
109 %package -n libgadu-devel
110 Summary:        libgadu development library
111 Summary(es):    Biblioteca de desarrollo de libgadu
112 Summary(pl):    Czê¶æ biblioteki libgadu dla programistów
113 License:        LGPL v2.1
114 Group:          Development/Libraries
115 Requires:       libgadu = %{epoch}:%{version}-%{release}
116 Requires:       openssl-devel
117 Obsoletes:      libgg-devel
118
119 %description -n libgadu-devel
120 The libgadu-devel package contains the header files and some
121 documentation needed to develop application with libgadu.
122
123 %description -n libgadu-devel -l de
124 Das libgadu-devel Paket enthält Header-Files (Kopfzeilenordner) und
125 die Dokumentation die Sie benötigen um mit libgadu Anwendungen zu
126 entwickeln.
127
128 %description -n libgadu-devel -l es
129 El paquete libgadu-devel contiene los ficheros de cabecera, juntos con
130 una documentación, necesarios para desarrollar aplicaciones que usar
131 libgadu.
132
133 %description -n libgadu-devel -l pl
134 Pakiet libgadu-devel zawiera pliki nag³ówkowe i dokumentacjê,
135 potrzebne do kompilowania aplikacji korzystaj±cych z libgadu.
136
137 %package -n libgadu-static
138 Summary:        Static libgadu library
139 Summary(es):    Biblioteca libgadu estática
140 Summary(pl):    Statyczna biblioteka libgadu
141 License:        LGPL v2.1
142 Group:          Development/Libraries
143 Requires:       libgadu-devel = %{epoch}:%{version}-%{release}
144 Obsoletes:      libgg-static
145
146 %description -n libgadu-static
147 Static libgadu library.
148
149 %description -n libgadu-static -l de
150 Statisches libgadu Archiv.
151
152 %description -n libgadu-static -l es
153 Biblioteca libgadu estática.
154
155 %description -n libgadu-static -l pl
156 Statyczna biblioteka libgadu.
157
158 %prep
159 %setup -q
160
161 %build
162 rm -f missing
163 %{__aclocal} -I m4
164 %{__autoheader}
165 %{__autoconf}
166 %configure \
167         --enable-shared \
168         --enable-static \
169 %if %{with pthread}
170         --with-pthread \
171 %else
172         --without-pthread \
173 %endif
174         --without-bind \
175         %{?with_python:--with-python} \
176         %{!?with_voip:--without-libgsm} \
177         %{?with_aspell:--enable-aspell} \
178         %{?with_ioctl_daemon:--enable-ioctld}
179
180 %{__make} \
181         CC="%{__cc}  -Wall -I%{_includedir}/ncurses"
182
183 %if %{with ioctl_daemon}
184 %{__make} -C src ioctld
185 %endif
186
187 %install
188 rm -rf $RPM_BUILD_ROOT
189 install -d $RPM_BUILD_ROOT%{_sysconfdir}
190
191 %{__make} install install-ekl2 \
192         DESTDIR=$RPM_BUILD_ROOT
193
194 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
195
196 # For libgadu-devel
197
198 rm -f examples/Makefile examples/Makefile.in examples/.cvsignore
199 rm -rf examples/CVS
200
201 install -d $RPM_BUILD_ROOT%{_examplesdir}/libgadu-%{version}
202 cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/libgadu-%{version}
203
204 %if %{with ioctl_daemon}
205 install src/ioctld $RPM_BUILD_ROOT%{_bindir}
206 %endif
207
208 cd $RPM_BUILD_ROOT%{_libdir}
209 ln -sf libgadu.so.*.* libgadu.so
210
211 %clean
212 rm -rf $RPM_BUILD_ROOT
213
214 %post   -n libgadu -p /sbin/ldconfig
215 %postun -n libgadu -p /sbin/ldconfig
216
217 %files
218 %defattr(644,root,root,755)
219 %doc docs/{7thguard,dcc,files,gdb,python,sim,themes,ui-ncurses,vars,voip}.txt
220 %{?with_aspell:%doc docs/slownik.txt}
221 %doc ChangeLog docs/{FAQ,README,TODO,ULOTKA} docs/emoticons.{ansi,sample}
222 %attr(755,root,root) %{_bindir}/e*
223 %{?with_ioctl_daemon:%attr(4755,root,root) %{_bindir}/ioctld}
224 %attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/*.conf
225 %{_datadir}/ekg
226 %{_mandir}/man1/*
227 %lang(pl) %{_mandir}/pl/man1/*
228
229 %files -n libgadu
230 %defattr(644,root,root,755)
231 %attr(755,root,root) %{_libdir}/libgadu.so.*.*
232
233 %files -n libgadu-devel
234 %defattr(644,root,root,755)
235 %doc docs/{7thguard,ui,devel-hints,przenosny-kod}.txt docs/protocol.html
236 %doc ChangeLog docs/{README,TODO}
237 %attr(755,root,root) %{_libdir}/libgadu.so
238 %{_includedir}/libgadu.h
239 %{_includedir}/libgadu-config.h
240 %{_pkgconfigdir}/*
241 %{_examplesdir}/libgadu-%{version}
242
243 %files -n libgadu-static
244 %defattr(644,root,root,755)
245 %{_libdir}/libgadu.a
This page took 0.05093 seconds and 3 git commands to generate.