]> git.pld-linux.org Git - packages/ekg.git/blame - ekg.spec
- rel 2
[packages/ekg.git] / ekg.spec
CommitLineData
885cd040
JB
1#
2# Conditional build:
52bc40da 3%bcond_without aspell # without spell checking
885cd040 4%bcond_without voip # without VoIP support
d9c5c558 5%bcond_without python # with python support
5914ec6b 6%bcond_without pthread # build with Posix threads support
885cd040 7%bcond_with ioctl_daemon # with ioctl_daemon (suid root)
bbc3cb88 8%bcond_with lock_reason # with lock_reason patch
885cd040 9#
16fa9a8a 10Summary: A client compatible with Gadu-Gadu
1dbf50e3
ER
11Summary(de.UTF-8): Ein Cliente kompatibel mit Gadu-Gadu
12Summary(es.UTF-8): Un cliente compatible con Gadu-Gadu
13Summary(it.UTF-8): Un cliente compatibile con Gadu-Gadu
14Summary(pl.UTF-8): Klient kompatybilny z Gadu-Gadu
16fa9a8a 15Name: ekg
f76d8cf2 16Version: 1.7
403885a3 17Release: 2
68bd1e98 18Epoch: 4
c3065a30 19License: GPL v2
d26d141d 20Group: Applications/Communications
20951c01 21Source0: http://ekg.chmurka.net/%{name}-%{version}.tar.gz
f76d8cf2 22# Source0-md5: 2aa92b56517fdf09d75519a105772b74
6d45143b 23Source1: %{name}.conf
abccf4f1 24Patch0: %{name}-LDFLAGS.patch
25Patch1: %{name}-lock_reason.patch
20951c01 26URL: http://ekg.chmurka.net/
0c6f31ba 27BuildRequires: %{_bindir}/perl
52bc40da 28%{?with_aspell:BuildRequires: aspell-devel}
cc0909ea
JB
29BuildRequires: autoconf
30BuildRequires: automake
dad7039f 31%{?with_voip:BuildRequires: libgsm-devel}
7a60042e 32BuildRequires: libjpeg-devel
16f43e8b 33BuildRequires: ncurses-devel
b4f5b154 34BuildRequires: openssl-devel >= 0.9.7d
e725a65a
KK
35%if %{with python}
36BuildRequires: python
37BuildRequires: python-devel
38%endif
cc0909ea
JB
39BuildRequires: readline-devel
40BuildRequires: zlib-devel
5c392f9b 41Requires: libgadu = %{epoch}:%{version}-%{release}
16fa9a8a 42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
0f2b10a8 43
44%description
782236ba
AG
45EKG ("Eksperymentalny Klient Gadu-Gadu") is an open source gadu-gadu
46client for UNIX systems. Gadu-Gadu is an instant messaging program,
47very popular in Poland.
48
49EKG 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
59Please note that the program is not internationalized and all messages
b1cbd258 60are in Polish (although the commands are in English).
0f2b10a8 61
7cf2b953 62%description -l de.UTF-8
9cb95678 63Ein Cliente kompatibel mit Gadu-Gadu.
64
7cf2b953 65%description -l es.UTF-8
9cb95678 66Un cliente compatible con Gadu-Gadu.
a1e26334 67
7cf2b953 68%description -l it.UTF-8
9cb95678 69Un cliente compatibile con Gadu-Gadu.
83aa91cc 70
7cf2b953 71%description -l pl.UTF-8
782236ba 72EKG ("Eksperymentalny Klient Gadu-Gadu") jest open source'owym
7cf2b953 73klientem gadu-gadu dla systemów uniksowych. Gadu-Gadu to popularny w
4dd31a27 74Polsce komunikator internetowy.
782236ba 75
7cf2b953
JR
76Moż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),
782236ba
AG
84 - wsparcie dla szyfrowania.
85
7cf2b953
JR
86Program nie jest umiędzynarodowiony i wszystkie komunikaty są po
87polsku (jednak komendy są w języku angielskim).
83aa91cc 88
acb47067
TP
89%package -n libgadu
90Summary: libgadu library
1dbf50e3
ER
91Summary(es.UTF-8): Biblioteca libgadu
92Summary(pl.UTF-8): Biblioteka libgadu
885cd040 93License: LGPL v2.1
b409b67d 94Group: Libraries
be17e097 95Obsoletes: libgg
b409b67d 96
acb47067
TP
97%description -n libgadu
98libgadu is intended to make it easy to add Gadu-Gadu communication
16fa9a8a 99support to your software.
b409b67d 100
7cf2b953
JR
101%description -n libgadu -l de.UTF-8
102Mit libgadu ist es Ihnen möglich auf einfache Weise Gadu-Gadu
103Kommunikations-Unterstützung in Ihre Software einzubinden.
7c7dd56c 104
7cf2b953
JR
105%description -n libgadu -l es.UTF-8
106libgadu está pensada para facilitar añadirle comunicación vía
9cb95678 107Gadu-Gadu a su software.
108
7cf2b953
JR
109%description -n libgadu -l pl.UTF-8
110libgadu umożliwia łatwe dodanie do różnych aplikacji komunikacji
111bazującej na protokole Gadu-Gadu.
7e8ece47 112
acb47067 113%package -n libgadu-devel
9cb95678 114Summary: libgadu development library
1dbf50e3
ER
115Summary(es.UTF-8): Biblioteca de desarrollo de libgadu
116Summary(pl.UTF-8): Część biblioteki libgadu dla programistów
885cd040 117License: LGPL v2.1
b409b67d 118Group: Development/Libraries
260759fd 119Requires: libgadu = %{epoch}:%{version}-%{release}
885cd040 120Requires: openssl-devel
be17e097 121Obsoletes: libgg-devel
b409b67d 122
acb47067
TP
123%description -n libgadu-devel
124The libgadu-devel package contains the header files and some
125documentation needed to develop application with libgadu.
b409b67d 126
7cf2b953
JR
127%description -n libgadu-devel -l de.UTF-8
128Das libgadu-devel Paket enthält Header-Files (Kopfzeilenordner) und
129die Dokumentation die Sie benötigen um mit libgadu Anwendungen zu
e995c2fc 130entwickeln.
7c7dd56c 131
7cf2b953 132%description -n libgadu-devel -l es.UTF-8
9cb95678 133El paquete libgadu-devel contiene los ficheros de cabecera, juntos con
7cf2b953 134una documentación, necesarios para desarrollar aplicaciones que usar
9cb95678 135libgadu.
136
7cf2b953
JR
137%description -n libgadu-devel -l pl.UTF-8
138Pakiet libgadu-devel zawiera pliki nagłówkowe i dokumentację,
139potrzebne do kompilowania aplikacji korzystających z libgadu.
7e8ece47 140
acb47067 141%package -n libgadu-static
9cb95678 142Summary: Static libgadu library
1dbf50e3
ER
143Summary(es.UTF-8): Biblioteca libgadu estática
144Summary(pl.UTF-8): Statyczna biblioteka libgadu
885cd040 145License: LGPL v2.1
40399069 146Group: Development/Libraries
260759fd 147Requires: libgadu-devel = %{epoch}:%{version}-%{release}
be17e097 148Obsoletes: libgg-static
40399069 149
acb47067
TP
150%description -n libgadu-static
151Static libgadu library.
40399069 152
7cf2b953 153%description -n libgadu-static -l de.UTF-8
7c7dd56c
ŁJM
154Statisches libgadu Archiv.
155
7cf2b953
JR
156%description -n libgadu-static -l es.UTF-8
157Biblioteca libgadu estática.
9cb95678 158
7cf2b953 159%description -n libgadu-static -l pl.UTF-8
7e8ece47 160Statyczna biblioteka libgadu.
161
0f2b10a8 162%prep
924a7ec8 163%setup -q
abccf4f1 164%patch0 -p0
bbc3cb88 165%if %{with lock_reason}
abccf4f1 166%patch1 -p1
bbc3cb88 167%endif
0f2b10a8 168
169%build
c56e51fa 170%{__aclocal} -I m4
20e60f56 171%{__autoheader}
172%{__autoconf}
8ef2af65 173%configure \
9edc2338 174 CFLAGS_LIBGADU="%{rpmcflags}" \
5c392f9b 175 --enable-dynamic \
cc801eba
MK
176 --enable-shared \
177 --enable-static \
e43df637 178%if %{with pthread}
2079e14d 179 --with-pthread \
e43df637
MM
180%else
181 --without-pthread \
182%endif
7a60042e 183 --without-bind \
dad7039f 184 %{?with_python:--with-python} \
db66f667 185 %{!?with_voip:--without-libgsm} \
52bc40da 186 %{?with_aspell:--enable-aspell} \
eba7c257 187 %{?with_ioctl_daemon:--enable-ioctld}
885cd040 188
9edc2338 189%{__make}
0f2b10a8 190
dad7039f 191%if %{with ioctl_daemon}
885cd040 192%{__make} -C src ioctld
7cf2fdf8 193%endif
194
0f2b10a8 195%install
196rm -rf $RPM_BUILD_ROOT
20e60f56 197install -d $RPM_BUILD_ROOT%{_sysconfdir}
198
d285d758
PG
199%{__make} install install-ekl2 \
200 DESTDIR=$RPM_BUILD_ROOT
0f2b10a8 201
885cd040 202install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
0f2b10a8 203
8775f7e8
ŁJM
204# For libgadu-devel
205
260759fd
JB
206rm -f examples/Makefile examples/Makefile.in examples/.cvsignore
207rm -rf examples/CVS
43a3a70b 208
fd2ca1b4 209install -d $RPM_BUILD_ROOT%{_examplesdir}/libgadu-%{version}
260759fd 210cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/libgadu-%{version}
8775f7e8 211
dad7039f 212%if %{with ioctl_daemon}
cb122163 213install src/ioctld $RPM_BUILD_ROOT%{_bindir}
443240d5
JK
214%endif
215
f96028e7
JB
216cd $RPM_BUILD_ROOT%{_libdir}
217ln -sf libgadu.so.*.* libgadu.so
218
0f2b10a8 219%clean
220rm -rf $RPM_BUILD_ROOT
221
d26d141d 222%post -n libgadu -p /sbin/ldconfig
acb47067 223%postun -n libgadu -p /sbin/ldconfig
16fa9a8a 224
0f2b10a8 225%files
226%defattr(644,root,root,755)
5ff60259 227%doc docs/{7thguard,dcc,files,gdb,python,sim,themes,ui-ncurses,vars,voip}.txt
45efdda4 228%{?with_aspell:%doc docs/slownik.txt}
d03bc2d5 229%doc ChangeLog docs/{FAQ,README,TODO,ULOTKA} docs/emoticons.{ansi,sample}
0f7cf26d 230%attr(755,root,root) %{_bindir}/e*
dad7039f 231%{?with_ioctl_daemon:%attr(4755,root,root) %{_bindir}/ioctld}
059bcb29 232%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
0c754970 233%{_datadir}/ekg
16fa9a8a
TP
234%{_mandir}/man1/*
235%lang(pl) %{_mandir}/pl/man1/*
236
acb47067 237%files -n libgadu
6d8fed3b 238%defattr(644,root,root,755)
f96028e7 239%attr(755,root,root) %{_libdir}/libgadu.so.*.*
b409b67d 240
acb47067 241%files -n libgadu-devel
b409b67d 242%defattr(644,root,root,755)
c308fa79 243%doc docs/{7thguard,ui,devel-hints,przenosny-kod}.txt docs/protocol.html
43a3a70b 244%doc ChangeLog docs/{README,TODO}
260759fd 245%attr(755,root,root) %{_libdir}/libgadu.so
acb47067 246%{_includedir}/libgadu.h
c2957aa0 247%{_includedir}/libgadu-config.h
5c392f9b 248%{_pkgconfigdir}/libgadu.pc
260759fd 249%{_examplesdir}/libgadu-%{version}
40399069 250
acb47067 251%files -n libgadu-static
6d8fed3b 252%defattr(644,root,root,755)
260759fd 253%{_libdir}/libgadu.a
This page took 0.242037 seconds and 4 git commands to generate.