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