X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=ekg.spec;h=1fd3e4fc3eb848c0465390fff86e5c8a70afca52;hb=b74fe22692f56091098e866aa19b4dfdceed917b;hp=22ee7a29ceb3e7add2aa65b5743fd6fa0e631fe2;hpb=cd77aa91996db6d1a1ca285024781252da3a6558;p=packages%2Fekg.git diff --git a/ekg.spec b/ekg.spec index 22ee7a2..1fd3e4f 100644 --- a/ekg.spec +++ b/ekg.spec @@ -2,27 +2,31 @@ # Conditional build: # _with_ioctl_daemon - with ioctl_daemon (suid-root!) # _with_python - with python support -# _without_voip - without voip support +# _with_voip - with voip support (libgsm) # + +%define snapshot 20030529 + 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: 1.0 -Release: 1rc2 -Epoch: 2 +Release: 3.%{snapshot}.1 +Epoch: 3 License: GPL Group: Applications/Communications -Source0: http://dev.null.pl/ekg/%{name}-%{version}rc2.tar.gz +# Source0-md5: 4049340e57d0fc99e23662c6ce87c56f +Source0: http://dev.null.pl/ekg/%{name}-%{snapshot}.tar.gz Source1: %{name}.conf URL: http://dev.null.pl/ekg/ BuildRequires: autoconf BuildRequires: automake -%{?!_without_voip:BuildRequires: libgsm-devel} +%{?_with_voip:BuildRequires: libgsm-devel} BuildRequires: ncurses-devel BuildRequires: openssl-devel >= 0.9.7 -BuildRequires: perl +BuildRequires: %{_bindir}/perl %{?_with_python:BuildRequires: python-devel} BuildRequires: readline-devel BuildRequires: zlib-devel @@ -98,9 +102,10 @@ Statisches libgadu Archiv. Statyczna biblioteka libgadu. %prep -%setup -q -n %{name}-%{version}rc2 +%setup -q -n %{name}-%{snapshot} %build +rm -f missing %{__aclocal} %{__autoheader} %{__autoconf} @@ -109,24 +114,26 @@ Statyczna biblioteka libgadu. --enable-static \ --with-pthread \ %{?_with_python:--with-python} \ - %{?_without_voip:--without-libgsm} \ + %{?_with_voip:--with-libgsm} \ %{?!_with_ioctl_daemon:--disable-ioctld} %{__make} -%{?_with_ioctl_daemon: (cd src && %{__make} ioctld )} -( cd docs/api && ./make.pl ) +%if %{?_with_ioctl_daemon:1}0 +cd src +%{__make} ioctld +cd .. +%endif + +cd docs/api +./make.pl +cd .. %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_sysconfdir} -%{__make} install DESTDIR=$RPM_BUILD_ROOT +%{__make} install install-ekl2 DESTDIR=$RPM_BUILD_ROOT -# From 20020310 can be replaced by ,,make install-ekl2'' -install contrib/ekl2.pl $RPM_BUILD_ROOT%{_bindir} -install contrib/ekl2.sh $RPM_BUILD_ROOT%{_bindir} -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 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/ # For libgadu-devel @@ -148,11 +155,11 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/e* -%attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/*.conf %doc docs/{7thguard,dcc,files,gdb,python,sim,themes,ui-ncurses,vars,voip}.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 %{_datadir}/ekg %{_mandir}/man1/* %lang(pl) %{_mandir}/pl/man1/*