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:"