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