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