]> git.pld-linux.org Git - packages/ekg.git/blobdiff - ekg.spec
- release 7
[packages/ekg.git] / ekg.spec
index d96784b309caf8f60d104126cb92cf7a1d8f5f7e..76a03ae82bd3e6b37e031cf174abb3165af66ef1 100644 (file)
--- a/ekg.spec
+++ b/ekg.spec
 #
 # Conditional build:
-# _with_ioctl_daemon    - with ioctl_daemon (suid-root!)
-# _with_python          - with python support
-# _with_voip           - with voip support (libgsm)
-
+%bcond_without aspell          # without spell checking
+%bcond_without voip            # without VoIP support
+%bcond_without python          # with python support
+%bcond_without pthread         # build with Posix threads support
+%bcond_with    ioctl_daemon    # with ioctl_daemon (suid root)
+%bcond_with    lock_reason     # with lock_reason patch
+#
 Summary:       A client compatible with Gadu-Gadu
-Summary(de):   Einen client kompatibel zu Gadu-Gadu
-Summary(it):   Esperimentale cliente di Gadu-Gadu
-Summary(pl):   Eksperymentalny Klient Gadu-Gadu
+Summary(de.UTF-8):     Ein Cliente kompatibel mit Gadu-Gadu
+Summary(es.UTF-8):     Un cliente compatible con Gadu-Gadu
+Summary(it.UTF-8):     Un cliente compatibile con Gadu-Gadu
+Summary(pl.UTF-8):     Klient kompatybilny z Gadu-Gadu
 Name:          ekg
-Version:       1.1
-Release:       2
-Epoch:         3
+Version:       1.7
+Release:       7
+Epoch:         4
 License:       GPL v2
 Group:         Applications/Communications
-Source0:       http://dev.null.pl/ekg/%{name}-%{version}.tar.gz
-# Source0-md5: dfcc114d41a942b774b26143c509d90f
+Source0:       http://ekg.chmurka.net/%{name}-%{version}.tar.gz
+# Source0-md5: 2aa92b56517fdf09d75519a105772b74
 Source1:       %{name}.conf
-URL:           http://dev.null.pl/ekg/
+Patch0:                %{name}-LDFLAGS.patch
+Patch1:                %{name}-lock_reason.patch
+Patch2:                %{name}-external_libgadu.patch
+URL:           http://ekg.chmurka.net/
+BuildRequires: %{_bindir}/perl
+%{?with_aspell:BuildRequires:  aspell-devel}
 BuildRequires: autoconf
 BuildRequires: automake
-%{?_with_voip:BuildRequires:   libgsm-devel}
+BuildRequires: libgadu-devel >= 4:1.7.0
+%{?with_voip:BuildRequires:    libgsm-devel}
+BuildRequires: libjpeg-devel
 BuildRequires: ncurses-devel
-BuildRequires: openssl-devel >= 0.9.7
-BuildRequires: %{_bindir}/perl
-%{?_with_python:BuildRequires: python-devel}
+BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: pkgconfig
+%if %{with python}
+BuildRequires: python
+BuildRequires: python-devel
+BuildRequires: python-modules
+%endif
 BuildRequires: readline-devel
 BuildRequires: zlib-devel
+Requires:      libgadu >= 4:1.7.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-A client compatible with Gadu-Gadu.
-
-%description -l de
-Einen client kompatibel zu Gadu-Gadu.
-
-%description -l it
-Esperimentale cliente di Gadu-Gadu.
-
-%description -l pl
-Eksperymentalny Klient Gadu-Gadu.
-
-%package -n libgadu
-Summary:       libgadu library
-Summary(pl):   Biblioteka libgadu
-Group:         Libraries
-Obsoletes:     libgg
-License:       LGPL v2.1
-
-%description -n libgadu
-libgadu is intended to make it easy to add Gadu-Gadu communication
-support to your software.
-
-%description -n libgadu -l de
-Mit libgadu ist es Ihnen möglich auf einfache Weise Gadu-Gadu
-Kommunikations-Unterstützung in Ihre Software einzubinden.
-
-%description -n libgadu -l pl
-libgadu umo¿liwia ³atwe dodanie do ró¿nych aplikacji komunikacji
-bazuj±cej na protokole Gadu-Gadu.
-
-%package -n libgadu-devel
-Summary:       libgadu library development
-Summary(pl):   Czê¶æ biblioteki libgadu dla programistów
-Group:         Development/Libraries
-Requires:      libgadu = %{epoch}:%{version}
-Obsoletes:     libgg-devel
-License:       LGPL
-
-%description -n libgadu-devel
-The libgadu-devel package contains the header files and some
-documentation needed to develop application with libgadu.
-
-%description -n libgadu-devel -l de
-Das libgadu-devel Paket enthält Header-Files (Kopfzeilenordner) und
-die Dokumentation die Sie benötigen um mit libgadu Anwendungen zu
-entwickeln.
-
-%description -n libgadu-devel -l pl
-Pakiet libgadu-devel zawiera pliki nag³ówkowe i dokumentacjê,
-potrzebne do kompilowania aplikacji korzystaj±cych z libgadu.
-
-%package -n libgadu-static
-Summary:       Static libgadu Library
-Summary(pl):   Statyczna biblioteka libgadu
-Group:         Development/Libraries
-Requires:      libgadu-devel = %{epoch}:%{version}
-Obsoletes:     libgg-static
-License:       LGPL
-
-%description -n libgadu-static
-Static libgadu library.
-
-%description -n libgadu-static -l de
-Statisches libgadu Archiv.
-
-%description -n libgadu-static -l pl
-Statyczna biblioteka libgadu.
+EKG ("Eksperymentalny Klient Gadu-Gadu") is an open source gadu-gadu
+client for UNIX systems. Gadu-Gadu is an instant messaging program,
+very popular in Poland.
+
+EKG features include:
+  - irssi-like ncurses interface
+  - sending and receiving files
+  - voice conversations
+  - launching shell commands on certain events
+  - reading input from pipe
+  - python scripting support
+  - speech synthesis (using an external program)
+  - encryption support
+
+Please note that the program is not internationalized and all messages
+are in Polish (although the commands are in English).
+
+%description -l de.UTF-8
+Ein Cliente kompatibel mit Gadu-Gadu.
+
+%description -l es.UTF-8
+Un cliente compatible con Gadu-Gadu.
+
+%description -l it.UTF-8
+Un cliente compatibile con Gadu-Gadu.
+
+%description -l pl.UTF-8
+EKG ("Eksperymentalny Klient Gadu-Gadu") jest open source'owym
+klientem gadu-gadu dla systemów uniksowych. Gadu-Gadu to popularny w
+Polsce komunikator internetowy.
+
+Możliwości EKG:
+  - interfejs użytkownika podobny do irssi,
+  - wysyłanie i odbieranie plików,
+  - rozmowy głosowe,
+  - uruchamianie poleceń powłoki w określonych sytuacjach,
+  - wczytywanie wejścia z potoku,
+  - wsparcie dla skryptów w języku Python,
+  - synteza mowy (z użyciem zewnętrznego programu),
+  - wsparcie dla szyfrowania.
+
+Program nie jest umiędzynarodowiony i wszystkie komunikaty są po
+polsku (jednak komendy są w języku angielskim).
 
 %prep
 %setup -q
+%patch0 -p0
+%if %{with lock_reason}
+%patch1 -p1
+%endif
+%patch2 -p0
 
 %build
-rm -f missing
-%{__aclocal}
+%{__aclocal} -I m4
 %{__autoheader}
 %{__autoconf}
 %configure \
+       CFLAGS_LIBGADU="%{rpmcflags}" \
+       --enable-dynamic \
        --enable-shared \
        --enable-static \
+%if %{with pthread}
        --with-pthread \
-       %{?_with_python:--with-python} \
-       %{?!_with_voip:--without-libgsm} \
-       %{?!_with_ioctl_daemon:--disable-ioctld}
+%else
+       --without-pthread \
+%endif
+       --without-bind \
+       %{?with_python:--with-python} \
+       %{!?with_voip:--without-libgsm} \
+       %{?with_aspell:--enable-aspell} \
+       %{?with_ioctl_daemon:--enable-ioctld}
+
 %{__make}
 
-%if %{?_with_ioctl_daemon:1}0
-cd src
-%{__make} ioctld
-cd ..
+%if %{with ioctl_daemon}
+%{__make} -C src ioctld
 %endif
 
-cd docs/api
-./make.pl
-cd ..
-
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_sysconfdir}
@@ -132,49 +131,28 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}
 %{__make} install install-ekl2 \
        DESTDIR=$RPM_BUILD_ROOT
 
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
 
 # For libgadu-devel
 
-rm examples/Makefile examples/Makefile.in examples/.cvsignore
+rm -f examples/Makefile examples/Makefile.in examples/.cvsignore
+rm -rf examples/CVS
 
-%if %{?_with_ioctl_daemon:1}%{?!_with_ioctl_daemon:0}
+%if %{with ioctl_daemon}
 install src/ioctld $RPM_BUILD_ROOT%{_bindir}
 %endif
 
-cd $RPM_BUILD_ROOT%{_libdir}
-ln -sf libgadu.so.*.* libgadu.so
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post  -n libgadu -p /sbin/ldconfig
-%postun -n libgadu -p /sbin/ldconfig
-
 %files
 %defattr(644,root,root,755)
 %doc docs/{7thguard,dcc,files,gdb,python,sim,themes,ui-ncurses,vars,voip}.txt
+%{?with_aspell:%doc docs/slownik.txt}
 %doc ChangeLog docs/{FAQ,README,TODO,ULOTKA} docs/emoticons.{ansi,sample}
 %attr(755,root,root) %{_bindir}/e*
-%{?_with_ioctl_daemon:%attr(4755,root,root) %{_bindir}/ioctld}
-%attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/*.conf
+%{?with_ioctl_daemon:%attr(4755,root,root) %{_bindir}/ioctld}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
 %{_datadir}/ekg
 %{_mandir}/man1/*
 %lang(pl) %{_mandir}/pl/man1/*
-
-%files -n libgadu
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libgadu.so.*.*
-
-%files -n libgadu-devel
-%defattr(644,root,root,755)
-%doc docs/{7thguard,api,ui,devel-hints,przenosny-kod}.txt docs/protocol.html docs/api/{functions,index,types}.html
-%doc ChangeLog docs/{README,TODO} examples
-%{_libdir}/libgadu.so
-%{_includedir}/libgadu.h
-%{_includedir}/libgadu-config.h
-%{_pkgconfigdir}/*
-
-%files -n libgadu-static
-%defattr(644,root,root,755)
-%attr(644,root,root) %{_libdir}/libgadu.a
This page took 0.064642 seconds and 4 git commands to generate.