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