summaryrefslogtreecommitdiffstats
path: root/redhat/tdeaddons
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2014-03-16 13:00:13 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2014-03-16 13:00:13 +0100
commita221ed54aa985c004d35de3c9f47f575dcaafaba (patch)
tree15114e61b2c45512cf5903c2e0a498202e722c91 /redhat/tdeaddons
parenta0837c0ccd4281fe21a97f284c8c06c1990d5f5e (diff)
downloadtde-packaging-a221ed54aa985c004d35de3c9f47f575dcaafaba.tar.gz
tde-packaging-a221ed54aa985c004d35de3c9f47f575dcaafaba.zip
RPM packaging: update R14 packages
Diffstat (limited to 'redhat/tdeaddons')
-rw-r--r--redhat/tdeaddons/tdeaddons-14.0.0.spec11
1 files changed, 10 insertions, 1 deletions
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" \