]> git.pld-linux.org Git - packages/ekg.git/blob - ekg.spec
- use LDFLAGS when linking libgadu
[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://ekg.chmurka.net/%{name}-%{version}.tar.gz
21 # Source0-md5:  1094eee5062d9b9900c4b28bd68fb564
22 Source1:        %{name}.conf
23 Patch0:         %{name}-jpeg.patch
24 URL:            http://ekg.chmurka.net/
25 BuildRequires:  %{_bindir}/perl
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 %if %{with python}
34 BuildRequires:  python
35 BuildRequires:  python-devel
36 %endif
37 BuildRequires:  readline-devel
38 BuildRequires:  zlib-devel
39 Requires:       libgadu = %{epoch}:%{version}-%{release}
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
162 %patch0 -p1
163
164 %build
165 %{__aclocal} -I m4
166 %{__autoheader}
167 %{__autoconf}
168 %configure \
169         --enable-dynamic \
170         --enable-shared \
171         --enable-static \
172 %if %{with pthread}
173         --with-pthread \
174 %else
175         --without-pthread \
176 %endif
177         --without-bind \
178         %{?with_python:--with-python} \
179         %{!?with_voip:--without-libgsm} \
180         %{?with_aspell:--enable-aspell} \
181         %{?with_ioctl_daemon:--enable-ioctld}
182
183 %{__make} \
184         CC="%{__cc} %{rpmcflags} -Wall -I/usr/include/ncurses"
185
186 %if %{with ioctl_daemon}
187 %{__make} -C src ioctld
188 %endif
189
190 %install
191 rm -rf $RPM_BUILD_ROOT
192 install -d $RPM_BUILD_ROOT%{_sysconfdir}
193
194 %{__make} install install-ekl2 \
195         DESTDIR=$RPM_BUILD_ROOT
196
197 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
198
199 # For libgadu-devel
200
201 rm -f examples/Makefile examples/Makefile.in examples/.cvsignore
202 rm -rf examples/CVS
203
204 install -d $RPM_BUILD_ROOT%{_examplesdir}/libgadu-%{version}
205 cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/libgadu-%{version}
206
207 %if %{with ioctl_daemon}
208 install src/ioctld $RPM_BUILD_ROOT%{_bindir}
209 %endif
210
211 cd $RPM_BUILD_ROOT%{_libdir}
212 ln -sf libgadu.so.*.* libgadu.so
213
214 %clean
215 rm -rf $RPM_BUILD_ROOT
216
217 %post   -n libgadu -p /sbin/ldconfig
218 %postun -n libgadu -p /sbin/ldconfig
219
220 %files
221 %defattr(644,root,root,755)
222 %doc docs/{7thguard,dcc,files,gdb,python,sim,themes,ui-ncurses,vars,voip}.txt
223 %{?with_aspell:%doc docs/slownik.txt}
224 %doc ChangeLog docs/{FAQ,README,TODO,ULOTKA} docs/emoticons.{ansi,sample}
225 %attr(755,root,root) %{_bindir}/e*
226 %{?with_ioctl_daemon:%attr(4755,root,root) %{_bindir}/ioctld}
227 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
228 %{_datadir}/ekg
229 %{_mandir}/man1/*
230 %lang(pl) %{_mandir}/pl/man1/*
231
232 %files -n libgadu
233 %defattr(644,root,root,755)
234 %attr(755,root,root) %{_libdir}/libgadu.so.*.*
235
236 %files -n libgadu-devel
237 %defattr(644,root,root,755)
238 %doc docs/{7thguard,ui,devel-hints,przenosny-kod}.txt docs/protocol.html
239 %doc ChangeLog docs/{README,TODO}
240 %attr(755,root,root) %{_libdir}/libgadu.so
241 %{_includedir}/libgadu.h
242 %{_includedir}/libgadu-config.h
243 %{_pkgconfigdir}/libgadu.pc
244 %{_examplesdir}/libgadu-%{version}
245
246 %files -n libgadu-static
247 %defattr(644,root,root,755)
248 %{_libdir}/libgadu.a
This page took 0.057275 seconds and 3 git commands to generate.