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