diff options
Diffstat (limited to 'redhat/tdeaddons/tdeaddons-14.0.0.spec')
-rw-r--r-- | redhat/tdeaddons/tdeaddons-14.0.0.spec | 11 |
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" \ |