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