From 2ccbd5bdca400fd83c6bff30a9bcf7be18cc9f6232048346403b60d2cc8403f2 Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Sat, 30 Mar 2013 21:56:11 +0000 Subject: [PATCH] fix build OBS-URL: https://build.opensuse.org/package/show/Application:Geo/qgis?expand=0&rev=158 --- qgis.spec | 56 ++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 21 deletions(-) diff --git a/qgis.spec b/qgis.spec index 7ceb329..7bed4c8 100644 --- a/qgis.spec +++ b/qgis.spec @@ -1,32 +1,44 @@ # +# spec file for package qgis +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + # Please submit bugfixes or comments via http://bugs.opensuse.org/ -# use "osc vc" for *.changes file +# + Name: qgis Version: 1.8.0 -Release: 1 -License: GPL-2.0 +Release: 0 Summary: Quantum GIS (QGIS) is a Geographic Information System (GIS) -Url: http://www.qgis.org/ +License: GPL-2.0 Group: Productivity/Graphics/Visualization/Other +Url: http://www.qgis.org/ Source: %{name}-%{version}.tar.bz2 Source1: %{name}.desktop Source2: %{name}.rpmlintrc -Requires: libgdal1 >= 1.6.0 Requires: gdal +Requires: libgdal1 >= 1.6.0 Requires: libgeos >= 2 %if 0%{?suse_version} > 1030 BuildRequires: sqlite-devel >= 3.5 Requires: sqlite >= 3.5 %endif -BuildRequires: libexpat-devel fdupes python-devel libspatialindex-devel libspatialindex0 +BuildRequires: fdupes +BuildRequires: libexpat-devel +BuildRequires: libspatialindex-devel +BuildRequires: libspatialindex0 +BuildRequires: python-devel BuildRequires: qwt-devel >= 5 -#Requires: libqwt5 -#Requires: gpsbabel -#Requires: gsl >= 1.6 -#Requires: libqt4 >= 4.3 -#Requires: postgresql >= 8 -#Requires: postgresql-libs >= 8 Requires: python-gdal Requires: python-qt4 Requires: python-sip @@ -39,22 +51,23 @@ BuildRequires: python-qt4 BuildRequires: python-sip %endif BuildRequires: -post-build-checks -BuildRequires: FastCGI-devel -BuildRequires: bison -BuildRequires: flex -BuildRequires: grass -BuildRequires: grass-devel -BuildRequires: gsl-devel -BuildRequires: libproj-devel -BuildRequires: txt2tags +BuildRequires: FastCGI-devel +BuildRequires: bison BuildRequires: cmake >= 2.4 +BuildRequires: flex +BuildRequires: gdal +BuildRequires: grass +BuildRequires: grass-devel BuildRequires: gsl >= 1.6 +BuildRequires: gsl-devel BuildRequires: libQtWebKit-devel >= 4.3 BuildRequires: libgdal-devel >= 1.6.0 BuildRequires: libgeos-devel >= 2 +BuildRequires: libproj-devel BuildRequires: libqt4-devel >= 4.3 BuildRequires: libqt4-qt3support >= 4.3 BuildRequires: postgresql-devel >= 8 +BuildRequires: txt2tags BuildRequires: update-desktop-files Obsoletes: qgis10 BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -110,6 +123,7 @@ cmake -Wno-dev %{intsq} \ -D WITH_BINDINGS=TRUE \ -D WITH_SPATIALITE=TRUE \ -D WITH_MAPSERVER=ON \ + -D POSTGRES_LIBRARY=%{_libdir}/libpq.so \ -D QGIS_PLUGIN_SUBDIR=%{lib}/qgis \ -D QGIS_MANUAL_SUBDIR=share/man \ -D QWT_INCLUDE_DIR=/usr/include/qwt5 \ @@ -164,7 +178,7 @@ rm -rf %{buildroot} %exclude %{_libdir}/libqgisgrass.so %exclude %{_libdir}/libqgisgrass.so.%{version} %exclude %{_libdir}/qgis/libgrass* -%doc BUGS COPYING README TODO +%doc BUGS COPYING README %files devel %defattr(-,root,root)