From d8fb4656c679f5a0f11e199ed43b90c312731f80bfabecdf856292d668e9aedb Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Thu, 4 Sep 2008 07:38:13 +0000 Subject: [PATCH] fixed OBS-URL: https://build.opensuse.org/package/show/Application:Geo/qgis?expand=0&rev=56 --- qgis.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/qgis.spec b/qgis.spec index a6af578..3db545c 100644 --- a/qgis.spec +++ b/qgis.spec @@ -75,16 +75,20 @@ export PATH=$PATH:$QTDIR/bin %define lib lib %endif -cmake -Wno-dev \ +%if 0%{?suse_version} <= 1030 +%define intsq -D WITH_INTERNAL_SQLITE3=TRUE \ + -D SQLITE3_INCLUDE_DIR=%{buildroot}/src/core/sqlite3 +%else +%define intsq +%endif + + +cmake -Wno-dev %{intsq} \ -D CMAKE_INSTALL_PREFIX=%{_prefix} \ -D GRASS_PREFIX=/opt/grass\ -D QGIS_LIB_SUBDIR=%{lib} \ -D WITH_BINDINGS=TRUE \ -D QGIS_PLUGIN_SUBDIR=%{lib}/qgis \ -%if 0%{?suse_version} <= 1030 || 0%{?sles_version} == 10 - -D WITH_INTERNAL_SQLITE3=TRUE \ - -D SQLITE3_INCLUDE_DIR=%{buildroot}/src/core/sqlite3 \ -%endif -D QGIS_MANUAL_SUBDIR=share/man #echo "for 'make' run first:"