From a221ed54aa985c004d35de3c9f47f575dcaafaba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sun, 16 Mar 2014 13:00:13 +0100 Subject: RPM packaging: update R14 packages --- redhat/tdeaddons/tdeaddons-14.0.0.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'redhat/tdeaddons/tdeaddons-14.0.0.spec') diff --git a/redhat/tdeaddons/tdeaddons-14.0.0.spec b/redhat/tdeaddons/tdeaddons-14.0.0.spec index 85287a9cd..40270cfc7 100644 --- a/redhat/tdeaddons/tdeaddons-14.0.0.spec +++ b/redhat/tdeaddons/tdeaddons-14.0.0.spec @@ -55,12 +55,16 @@ BuildRequires: SDL-devel BuildRequires: alsa-lib-devel BuildRequires: openssl-devel -# DB4 support +# DB4/DB5 support %if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version} >= 1220 || 0%{?mdkversion} || 0%{?mgaversion} %define with_db 1 %if 0%{?mgaversion} || 0%{?mdkversion} +%if 0%{?pclinuxos} +BuildRequires: db4-devel +%else BuildRequires: db5-devel %endif +%endif %if 0%{?fedora} >= 18 BuildRequires: libdb-devel BuildRequires: libdb-cxx-devel @@ -681,9 +685,14 @@ if ! rpm -E %%cmake|grep -q "cd build"; then cd build fi +# Help cmake to find DB headers ... if [ -d "/usr/include/db53" ]; then export CMAKE_INCLUDE_PATH="/usr/include/db53" fi +if [ -d "/usr/include/db4" ]; then + export CMAKE_INCLUDE_PATH="/usr/include/db4" +fi + %cmake \ -DCMAKE_BUILD_TYPE="RelWithDebInfo" \ -- cgit v1.2.1