]> git.pld-linux.org Git - packages/ekg.git/blobdiff - ekg.spec
-- reverse bcond [without-ncurses]
[packages/ekg.git] / ekg.spec
index 2888ea66dcea5791fb30f66fdbffffb665bebf24..ff920bff8e6997bfea78e64135ac04eb74422b4f 100644 (file)
--- a/ekg.spec
+++ b/ekg.spec
@@ -1,23 +1,27 @@
 #
 # Conditional build:
-# _with_ioctl_daemon - with ioctl_daemon (suid-root!)
+# _with_ioctl_daemon    - with ioctl_daemon (suid-root!)
+# _without_ncurses     - without new experimental ui
+# _with_python          - with python support
+# _without_voip                - without voip support
 #
 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
 Name:          ekg
-Version:       20020616
+Version:       20020909
 Release:       1
 Epoch:         1
 License:       GPL
 Group:         Applications/Communications
 Source0:       http://dev.null.pl/ekg/%{name}-%{version}.tar.gz
 URL:           http://dev.null.pl/ekg/
-BuildRequires: autoconf
+BuildRequires: perl
 BuildRequires: ncurses-devel
 BuildRequires: readline-devel
-BuildRequires: libgsm-devel
+%{?!_without_voip:BuildRequires: libgsm-devel}
+%{?_with_python:BuildRequires: python-devel}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -93,32 +97,27 @@ Statyczna biblioteka libgadu.
 %setup -q
 
 %build
-%{__autoconf}
 %configure \
-       --with-shared \
+       --enable-shared \
+       --enable-static \
+       --enable-force-readline \
+       %{?_with_python:--with-python} \
+       %{?!_without_ncurses:--enable-ui-ncurses} \
+       %{?_without_voip:--without-libgsm} \
        %{?!debug:--without-debug} \
-       %{?!_with_ioctl_daemon:--without-ioctld}
-
+       %{?!_with_ioctl_daemon:--disable-ioctld}
 %{__make}
 
+( cd docs/api && ./make.pl )
+
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}} \
-       $RPM_BUILD_ROOT{%{_mandir}/{,pl/}man1,%{_datadir}/ekg/themes}
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-install src/ekg $RPM_BUILD_ROOT%{_bindir}
 install contrib/ekl2.pl $RPM_BUILD_ROOT%{_bindir}
 install contrib/ekl2.sh $RPM_BUILD_ROOT%{_bindir}
-install lib/libgadu.h $RPM_BUILD_ROOT%{_includedir}
-install lib/libgadu.a $RPM_BUILD_ROOT%{_libdir}
-install lib/libgadu.so.* $RPM_BUILD_ROOT%{_libdir}
-
-install themes/*.theme $RPM_BUILD_ROOT%{_datadir}/ekg/themes
-
-install docs/ekg.man.pl $RPM_BUILD_ROOT%{_mandir}/pl/man1/ekg.1
 install docs/ekl2.man.pl $RPM_BUILD_ROOT%{_mandir}/pl/man1/ekl2.1
 install docs/ekl2.man.en $RPM_BUILD_ROOT%{_mandir}/man1/ekl2.1
-install docs/ekg.man.en $RPM_BUILD_ROOT%{_mandir}/man1/ekg.1
 
 # For libgadu-devel
 
@@ -128,6 +127,9 @@ rm examples/Makefile examples/Makefile.in
 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
 
@@ -137,8 +139,8 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/e*
-%doc docs/{7thguard,dcc,on,themes,vars,emoticons,voip}.txt
-%doc ChangeLog docs/{FAQ,README,TODO,ULOTKA} docs/emoticons.sample
+%doc docs/{7thguard,dcc,emoticons,gdb,on,python,themes,ui,vars,voip}.txt
+%doc ChangeLog docs/{FAQ,README,TODO,ULOTKA} docs/emoticons.{ansi,sample}
 %{?_with_ioctl_daemon:%attr(4755,root,root) %{_bindir}/ioctld}
 %{_datadir}/ekg
 %{_mandir}/man1/*
@@ -146,12 +148,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n libgadu
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libgadu.so.*
+%attr(755,root,root) %{_libdir}/libgadu.so.*.*
 
 %files -n libgadu-devel
 %defattr(644,root,root,755)
-%doc docs/{7thguard,api,devel-hints,dcc-protocol}.txt docs/protocol.html
+%doc docs/{7thguard,api,dcc-protocol,devel-hints,http,przenosny-kod}.txt docs/protocol.html docs/api/ref.functions.html
 %doc ChangeLog docs/{README,TODO} examples
+%{_libdir}/libgadu.so
 %{_includedir}/libgadu.h
 
 %files -n libgadu-static
This page took 0.026447 seconds and 4 git commands to generate.