]> git.pld-linux.org Git - packages/ekg.git/blame - ekg.spec
- use __rm macro, explicit files in system dirs
[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
76599bb9 16Version: 1.7
ec750642 17Release: 16
68bd1e98 18Epoch: 4
c3065a30 19License: GPL v2
d26d141d 20Group: Applications/Communications
76599bb9
AG
21Source0: http://ekg.chmurka.net/%{name}-%{version}.tar.gz
22# Source0-md5: 2aa92b56517fdf09d75519a105772b74
6d45143b 23Source1: %{name}.conf
abccf4f1 24Patch0: %{name}-LDFLAGS.patch
25Patch1: %{name}-lock_reason.patch
76599bb9 26Patch2: %{name}-external_libgadu.patch
127cf97d 27Patch3: %{name}-giflib.patch
ec750642 28Patch4: %{name}-openssl.patch
20951c01 29URL: http://ekg.chmurka.net/
0c6f31ba 30BuildRequires: %{_bindir}/perl
52bc40da 31%{?with_aspell:BuildRequires: aspell-devel}
cc0909ea
JB
32BuildRequires: autoconf
33BuildRequires: automake
127cf97d 34BuildRequires: giflib-devel >= 5.1
d0076d73 35BuildRequires: libgadu-devel >= 4:1.7.0
dad7039f 36%{?with_voip:BuildRequires: libgsm-devel}
7a60042e 37BuildRequires: libjpeg-devel
16f43e8b 38BuildRequires: ncurses-devel
b4f5b154 39BuildRequires: openssl-devel >= 0.9.7d
60ba6353 40BuildRequires: pkgconfig
e725a65a
KK
41%if %{with python}
42BuildRequires: python
43BuildRequires: python-devel
60ba6353 44BuildRequires: python-modules
e725a65a 45%endif
cc0909ea
JB
46BuildRequires: readline-devel
47BuildRequires: zlib-devel
d7b15c2d 48Requires: libgadu >= 4:1.7.0
16fa9a8a 49BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
0f2b10a8 50
51%description
782236ba
AG
52EKG ("Eksperymentalny Klient Gadu-Gadu") is an open source gadu-gadu
53client for UNIX systems. Gadu-Gadu is an instant messaging program,
54very popular in Poland.
55
56EKG features include:
57 - irssi-like ncurses interface
58 - sending and receiving files
59 - voice conversations
60 - launching shell commands on certain events
61 - reading input from pipe
62 - python scripting support
63 - speech synthesis (using an external program)
64 - encryption support
65
66Please note that the program is not internationalized and all messages
b1cbd258 67are in Polish (although the commands are in English).
0f2b10a8 68
7cf2b953 69%description -l de.UTF-8
9cb95678 70Ein Cliente kompatibel mit Gadu-Gadu.
71
7cf2b953 72%description -l es.UTF-8
9cb95678 73Un cliente compatible con Gadu-Gadu.
a1e26334 74
7cf2b953 75%description -l it.UTF-8
9cb95678 76Un cliente compatibile con Gadu-Gadu.
83aa91cc 77
7cf2b953 78%description -l pl.UTF-8
782236ba 79EKG ("Eksperymentalny Klient Gadu-Gadu") jest open source'owym
7cf2b953 80klientem gadu-gadu dla systemów uniksowych. Gadu-Gadu to popularny w
4dd31a27 81Polsce komunikator internetowy.
782236ba 82
7cf2b953
JR
83Możliwości EKG:
84 - interfejs użytkownika podobny do irssi,
85 - wysyłanie i odbieranie plików,
86 - rozmowy głosowe,
87 - uruchamianie poleceń powłoki w określonych sytuacjach,
88 - wczytywanie wejścia z potoku,
89 - wsparcie dla skryptów w języku Python,
90 - synteza mowy (z użyciem zewnętrznego programu),
782236ba
AG
91 - wsparcie dla szyfrowania.
92
7cf2b953
JR
93Program nie jest umiędzynarodowiony i wszystkie komunikaty są po
94polsku (jednak komendy są w języku angielskim).
83aa91cc 95
0f2b10a8 96%prep
76599bb9 97%setup -q
abccf4f1 98%patch0 -p0
bbc3cb88 99%if %{with lock_reason}
abccf4f1 100%patch1 -p1
bbc3cb88 101%endif
76599bb9 102%patch2 -p0
127cf97d 103%patch3 -p1
ec750642 104%patch4 -p1
0f2b10a8 105
106%build
c56e51fa 107%{__aclocal} -I m4
20e60f56 108%{__autoheader}
109%{__autoconf}
8ef2af65 110%configure \
9edc2338 111 CFLAGS_LIBGADU="%{rpmcflags}" \
5c392f9b 112 --enable-dynamic \
cc801eba
MK
113 --enable-shared \
114 --enable-static \
e43df637 115%if %{with pthread}
2079e14d 116 --with-pthread \
e43df637
MM
117%else
118 --without-pthread \
119%endif
7a60042e 120 --without-bind \
dad7039f 121 %{?with_python:--with-python} \
db66f667 122 %{!?with_voip:--without-libgsm} \
52bc40da 123 %{?with_aspell:--enable-aspell} \
eba7c257 124 %{?with_ioctl_daemon:--enable-ioctld}
885cd040 125
9edc2338 126%{__make}
0f2b10a8 127
dad7039f 128%if %{with ioctl_daemon}
885cd040 129%{__make} -C src ioctld
7cf2fdf8 130%endif
131
0f2b10a8 132%install
133rm -rf $RPM_BUILD_ROOT
20e60f56 134install -d $RPM_BUILD_ROOT%{_sysconfdir}
135
d285d758
PG
136%{__make} install install-ekl2 \
137 DESTDIR=$RPM_BUILD_ROOT
0f2b10a8 138
885cd040 139install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
0f2b10a8 140
8775f7e8
ŁJM
141# For libgadu-devel
142
8639b72e
JB
143%{__rm} examples/Makefile examples/Makefile.in examples/.cvsignore
144%{__rm} -r examples/CVS
43a3a70b 145
dad7039f 146%if %{with ioctl_daemon}
cb122163 147install src/ioctld $RPM_BUILD_ROOT%{_bindir}
443240d5
JK
148%endif
149
0f2b10a8 150%clean
151rm -rf $RPM_BUILD_ROOT
152
153%files
154%defattr(644,root,root,755)
76599bb9 155%doc docs/{7thguard,dcc,files,gdb,python,sim,themes,ui-ncurses,vars,voip}.txt
45efdda4 156%{?with_aspell:%doc docs/slownik.txt}
d03bc2d5 157%doc ChangeLog docs/{FAQ,README,TODO,ULOTKA} docs/emoticons.{ansi,sample}
8639b72e
JB
158%attr(755,root,root) %{_bindir}/ekg
159%attr(755,root,root) %{_bindir}/ekl2.pl
160%attr(755,root,root) %{_bindir}/ekl2.sh
dad7039f 161%{?with_ioctl_daemon:%attr(4755,root,root) %{_bindir}/ioctld}
8639b72e 162%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ekg.conf
0c754970 163%{_datadir}/ekg
8639b72e
JB
164%{_mandir}/man1/ekg.1*
165%{_mandir}/man1/ekl2.1*
166%lang(pl) %{_mandir}/pl/man1/ekg.1*
167%lang(pl) %{_mandir}/pl/man1/ekl2.1*
This page took 0.127248 seconds and 4 git commands to generate.