]> git.pld-linux.org Git - packages/ekg.git/blob - ekg.spec
- aply LDFLAGS.patch (actualy it breaks build)
[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 %bcond_with     lock_reason     # with lock_reason patch
9 #
10 Summary:        A client compatible with Gadu-Gadu
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
15 Name:           ekg
16 Version:        1.7
17 Release:        1
18 Epoch:          4
19 License:        GPL v2
20 Group:          Applications/Communications
21 Source0:        http://ekg.chmurka.net/%{name}-%{version}.tar.gz
22 # Source0-md5:  2aa92b56517fdf09d75519a105772b74
23 Source1:        %{name}.conf
24 Patch0:         %{name}-LDFLAGS.patch
25 Patch1:         %{name}-lock_reason.patch
26 URL:            http://ekg.chmurka.net/
27 BuildRequires:  %{_bindir}/perl
28 %{?with_aspell:BuildRequires:   aspell-devel}
29 BuildRequires:  autoconf
30 BuildRequires:  automake
31 %{?with_voip:BuildRequires:     libgsm-devel}
32 BuildRequires:  libjpeg-devel
33 BuildRequires:  ncurses-devel
34 BuildRequires:  openssl-devel >= 0.9.7d
35 %if %{with python}
36 BuildRequires:  python
37 BuildRequires:  python-devel
38 %endif
39 BuildRequires:  readline-devel
40 BuildRequires:  zlib-devel
41 Requires:       libgadu = %{epoch}:%{version}-%{release}
42 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44 %description
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
60 are in Polish (although the commands are in English).
61
62 %description -l de.UTF-8
63 Ein Cliente kompatibel mit Gadu-Gadu.
64
65 %description -l es.UTF-8
66 Un cliente compatible con Gadu-Gadu.
67
68 %description -l it.UTF-8
69 Un cliente compatibile con Gadu-Gadu.
70
71 %description -l pl.UTF-8
72 EKG ("Eksperymentalny Klient Gadu-Gadu") jest open source'owym
73 klientem gadu-gadu dla systemów uniksowych. Gadu-Gadu to popularny w
74 Polsce komunikator internetowy.
75
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),
84   - wsparcie dla szyfrowania.
85
86 Program nie jest umiędzynarodowiony i wszystkie komunikaty są po
87 polsku (jednak komendy są w języku angielskim).
88
89 %package -n libgadu
90 Summary:        libgadu library
91 Summary(es.UTF-8):      Biblioteca libgadu
92 Summary(pl.UTF-8):      Biblioteka libgadu
93 License:        LGPL v2.1
94 Group:          Libraries
95 Obsoletes:      libgg
96
97 %description -n libgadu
98 libgadu is intended to make it easy to add Gadu-Gadu communication
99 support to your software.
100
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.
104
105 %description -n libgadu -l es.UTF-8
106 libgadu está pensada para facilitar añadirle comunicación vía
107 Gadu-Gadu a su software.
108
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.
112
113 %package -n libgadu-devel
114 Summary:        libgadu development library
115 Summary(es.UTF-8):      Biblioteca de desarrollo de libgadu
116 Summary(pl.UTF-8):      Część biblioteki libgadu dla programistów
117 License:        LGPL v2.1
118 Group:          Development/Libraries
119 Requires:       libgadu = %{epoch}:%{version}-%{release}
120 Requires:       openssl-devel
121 Obsoletes:      libgg-devel
122
123 %description -n libgadu-devel
124 The libgadu-devel package contains the header files and some
125 documentation needed to develop application with libgadu.
126
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
130 entwickeln.
131
132 %description -n libgadu-devel -l es.UTF-8
133 El paquete libgadu-devel contiene los ficheros de cabecera, juntos con
134 una documentación, necesarios para desarrollar aplicaciones que usar
135 libgadu.
136
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.
140
141 %package -n libgadu-static
142 Summary:        Static libgadu library
143 Summary(es.UTF-8):      Biblioteca libgadu estática
144 Summary(pl.UTF-8):      Statyczna biblioteka libgadu
145 License:        LGPL v2.1
146 Group:          Development/Libraries
147 Requires:       libgadu-devel = %{epoch}:%{version}-%{release}
148 Obsoletes:      libgg-static
149
150 %description -n libgadu-static
151 Static libgadu library.
152
153 %description -n libgadu-static -l de.UTF-8
154 Statisches libgadu Archiv.
155
156 %description -n libgadu-static -l es.UTF-8
157 Biblioteca libgadu estática.
158
159 %description -n libgadu-static -l pl.UTF-8
160 Statyczna biblioteka libgadu.
161
162 %prep
163 %setup -q
164 %patch0 -p0
165 %if %{with lock_reason}
166 %patch1 -p1
167 %endif
168
169 %build
170 %{__aclocal} -I m4
171 %{__autoheader}
172 %{__autoconf}
173 %configure \
174         CFLAGS_LIBGADU="%{rpmcflags}" \
175         --enable-dynamic \
176         --enable-shared \
177         --enable-static \
178 %if %{with pthread}
179         --with-pthread \
180 %else
181         --without-pthread \
182 %endif
183         --without-bind \
184         %{?with_python:--with-python} \
185         %{!?with_voip:--without-libgsm} \
186         %{?with_aspell:--enable-aspell} \
187         %{?with_ioctl_daemon:--enable-ioctld}
188
189 %{__make}
190
191 %if %{with ioctl_daemon}
192 %{__make} -C src ioctld
193 %endif
194
195 %install
196 rm -rf $RPM_BUILD_ROOT
197 install -d $RPM_BUILD_ROOT%{_sysconfdir}
198
199 %{__make} install install-ekl2 \
200         DESTDIR=$RPM_BUILD_ROOT
201
202 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
203
204 # For libgadu-devel
205
206 rm -f examples/Makefile examples/Makefile.in examples/.cvsignore
207 rm -rf examples/CVS
208
209 install -d $RPM_BUILD_ROOT%{_examplesdir}/libgadu-%{version}
210 cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/libgadu-%{version}
211
212 %if %{with ioctl_daemon}
213 install src/ioctld $RPM_BUILD_ROOT%{_bindir}
214 %endif
215
216 cd $RPM_BUILD_ROOT%{_libdir}
217 ln -sf libgadu.so.*.* libgadu.so
218
219 %clean
220 rm -rf $RPM_BUILD_ROOT
221
222 %post   -n libgadu -p /sbin/ldconfig
223 %postun -n libgadu -p /sbin/ldconfig
224
225 %files
226 %defattr(644,root,root,755)
227 %doc docs/{7thguard,dcc,files,gdb,python,sim,themes,ui-ncurses,vars,voip}.txt
228 %{?with_aspell:%doc docs/slownik.txt}
229 %doc ChangeLog docs/{FAQ,README,TODO,ULOTKA} docs/emoticons.{ansi,sample}
230 %attr(755,root,root) %{_bindir}/e*
231 %{?with_ioctl_daemon:%attr(4755,root,root) %{_bindir}/ioctld}
232 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
233 %{_datadir}/ekg
234 %{_mandir}/man1/*
235 %lang(pl) %{_mandir}/pl/man1/*
236
237 %files -n libgadu
238 %defattr(644,root,root,755)
239 %attr(755,root,root) %{_libdir}/libgadu.so.*.*
240
241 %files -n libgadu-devel
242 %defattr(644,root,root,755)
243 %doc docs/{7thguard,ui,devel-hints,przenosny-kod}.txt docs/protocol.html
244 %doc ChangeLog docs/{README,TODO}
245 %attr(755,root,root) %{_libdir}/libgadu.so
246 %{_includedir}/libgadu.h
247 %{_includedir}/libgadu-config.h
248 %{_pkgconfigdir}/libgadu.pc
249 %{_examplesdir}/libgadu-%{version}
250
251 %files -n libgadu-static
252 %defattr(644,root,root,755)
253 %{_libdir}/libgadu.a
This page took 0.104675 seconds and 3 git commands to generate.