]> git.pld-linux.org Git - packages/ekg2.git/blobdiff - ekg2.spec
- new, put perl extensions in %{perl_archlib} dir
[packages/ekg2.git] / ekg2.spec
index 8883fbe84062059a577de350628dcbf1aa88e656..a8e60638c695c181964c40d6d9fad24230dd5eae 100644 (file)
--- a/ekg2.spec
+++ b/ekg2.spec
@@ -5,6 +5,7 @@
 %bcond_without aspell                  # build without spell-checking support with aspell
 %bcond_without gadugadu                # don't build gg plugin
 %bcond_without jabber                  # don't build jabber plugin
+%bcond_without gnutls                  # build jabber plugin without libgnutls
 %bcond_without libgsm                  # don't build libgsm plugin
 %bcond_without python                  # don't build Python plugin
 %bcond_without sqlite                  # don't build logsqlite plugin
 %if %{with yesterday_snapshot}
 %define                _snap %(date +%%Y%%m%%d -d yesterday)
 %else
-%define                _snap 20050405
+%define                _snap 20050808
+%endif
+
+%if %{without jabber}
+%undefine with_gnutls
 %endif
 
 Summary:       Multi-protocol instant messaging and chat client
@@ -25,15 +30,14 @@ Epoch:              1
 License:       GPL v2+
 Group:         Applications/Communications
 Source0:       http://www.ekg2.org/archive/%{name}-%{_snap}.tar.gz
-# Source0-md5: e89e8e40cb6c563efb918e808001cf50
-Patch0:                %{name}-pl-po.patch
+# Source0-md5: 3c23c66e92846ea6ac90fd524059b014
 URL:           http://www.ekg2.org/
 %{?with_aspell:BuildRequires:  aspell-devel}
 BuildRequires: autoconf
 BuildRequires: automake
 %{?with_jabber:BuildRequires:  expat-devel}
 BuildRequires: gettext-devel
-%{?with_jabber:BuildRequires:  gnutls-devel >= 1.0.0}
+%{?with_gnutls:BuildRequires:  gnutls-devel >= 1.2.5}
 BuildRequires: gpm-devel
 %{?with_gadugadu:BuildRequires:        libgadu-devel}
 %{?with_libgsm:BuildRequires:  libgsm-devel}
@@ -43,6 +47,7 @@ BuildRequires:        libtool
 BuildRequires: ncurses-devel
 BuildRequires: openssl-devel >= 0.9.7d
 %{?with_python:BuildRequires:  python-devel}
+%{?with_python:BuildRequires:   python}
 BuildRequires: sed >= 4.0
 %{?with_sqlite:BuildRequires:  sqlite-devel}
 %{?with_xosd:BuildRequires:    xosd-devel}
@@ -164,8 +169,8 @@ Wtyczka xosd dla ekg2.
 
 %prep
 %setup -q -n %{name}-%{_snap}
-%patch0 -p1
 sed -i -e 's/AC_LIBLTDL_CONVENIENCE/AC_LIBLTDL_INSTALLABLE/' configure.ac
+sed -i -e 's/\/opt\/sqlite\/lib/\/opt\/sqlite\/lib \/usr\/lib64/' m4/sqlite.m4
 
 %build
 %{__libtoolize} --ltdl
@@ -182,6 +187,7 @@ cd ..
 %configure \
        --with%{!?with_aspell:out}-aspell \
        --with%{!?with_jabber:out}-expat \
+       --with%{!?with_gnutls:out}-libgnutls \
        --with%{!?with_gadugadu:out}-libgadu \
        --with%{!?with_libgsm:out}-libgsm \
        --with%{!?with_python:out}-python \
@@ -260,7 +266,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/%{name}/plugins/ioctld.so
 %{_datadir}/%{name}/plugins/ioctld
-%attr(4755,root,root) %{_libdir}/ioctld
+%attr(4755,root,root) %{_libexecdir}/ioctld
 
 %if %{with sqlite}
 %files plugin-logsqlite
This page took 0.060443 seconds and 4 git commands to generate.