From 15211f9067eef56d540d1a33b6065c595cd54e81cab9a07f71374aa904fc31d3 Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Fri, 23 Nov 2007 12:38:26 +0000 Subject: [PATCH] hopefully fixed 64 bit OBS-URL: https://build.opensuse.org/package/show/Application:Geo/qgis?expand=0&rev=11 --- qgis.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/qgis.spec b/qgis.spec index 912886f..894797a 100644 --- a/qgis.spec +++ b/qgis.spec @@ -11,12 +11,12 @@ Url: http://www.qgis.org/ Summary: Quantum GIS (QGIS) is designed to be a Geographic Information System (GIS) built for Linux/Unix. Packager: Dirk Stöcker Requires: libgeos >= 2 -Requires: grass >= 6.2.1 Requires: libgdal >= 1.4.1 Requires: sqlite >= 3 Requires: libqt4 >= 4.2 Requires: gsl >= 1.6 Requires: postgresql >= 8 postgresql-libs >= 8 +BuildRequires: python-devel BuildRequires: libgdal-devel >= 1.4.1 BuildRequires: libgeos-devel >= 2 BuildRequires: libproj-devel @@ -38,7 +38,8 @@ Requires: qgis = %{version} %package plugin-grass Summary: GRASS Support Libraries for Quantum GIS Group: Libraries -Requires: qgis = %{version}, grass +Requires: qgis = %{version} +Requires: grass >= 6.2.1 %description Quantum GIS (QGIS) is a user friendly Open Source Geographic Information @@ -90,8 +91,14 @@ export CFLAGS="$RPM_OPT_FLAGS" export QTDIR=/usr export PATH=$PATH:$QTDIR/bin +%ifarch x86_64 +%define libsuffix -DLIB_SUFFIX=64 +%else +%define libsuffix "" +%endif + cmake -D CMAKE_INSTALL_PREFIX=%{_prefix} \ - -D GRASS_PREFIX=/opt/grass \ + -D GRASS_PREFIX=/opt/grass %{libsuffix}\ . #echo "for 'make' run first:"