Compare commits

...

85 Commits

Author SHA1 Message Date
Daniele Viganò ddd228299e
Update to 2.18.28 2019-01-21 10:54:00 +01:00
Daniele Viganò 40fd875349
Merge remote-tracking branch 'upstream/master' into daniviga-2.18 2018-12-24 09:37:27 +01:00
Miro Hrončok a922834d86 https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2 2018-11-15 12:53:56 +01:00
Sandro Mani 52294d0c6a Update to 2.18.25 2018-11-14 14:46:22 +01:00
Daniele Viganò 540be35e32
Fix PYTHON detection in SAGA 2018-11-08 09:29:46 +01:00
Daniele Viganò 76d410fa2c
QGIS 2.18.25 2018-11-08 00:22:37 +01:00
Daniele Viganò 2b9a89c7b6
Update SAGA for F29 2018-11-08 00:20:00 +01:00
Daniele Viganò 03aae78e8b
Sync with upstream 2018-11-08 00:19:35 +01:00
Sandro Mani cc17e22c1f Fix build with namespaced SIP; fix grass detection; fix grass script shebangs; fix Requires 2018-11-03 00:45:40 +01:00
Daniele Viganò 543c1934d6
Bump to 2.18.24 2018-09-15 23:50:05 +02:00
Pavel Raiskup 9a6b3b94db BuildRequires: s/postgresql-devel/libpq-devel/
That's because we moved libpq.so.5 into libpq package.

Related: rhbz#1618698, rhbz#1623764
2018-09-06 10:12:05 +02:00
Daniele Viganò c05f89e123
Bump to 2.18.23 2018-08-17 22:03:32 +02:00
Daniele Viganò ee3ec81d19
Bump to 2.18.22 2018-08-17 22:02:43 +02:00
Igor Gnatenko 86abed4013
python-devel → python2-devel
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-07-30 00:28:02 +02:00
Igor Gnatenko 5d08ec0f5a
%{python_sitearch} → %{python2_sitearch}
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-07-30 00:22:30 +02:00
Fedora Release Engineering d928d50069 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 03:00:12 +00:00
Daniele Viganò e4b93eff37 Merge branch 'daniviga-2.18.21' of dani/copr-dani-qgis into daniviga-2.18 2018-06-22 18:11:21 +02:00
Daniele Viganò 21c972dc2a Bump to 2.18.21 2018-06-22 17:21:30 +02:00
Volker Fröhlich eb7c5f94bc New upstream version 2.18.20 2018-06-17 15:34:17 +02:00
Daniele Viganò 821f0b1ecc Merge branch 'saga-f28' of dani/copr-dani-qgis into daniviga-2.18 2018-05-25 13:12:23 +02:00
Daniele Viganò 8d63296d07 Make SAGA package compatible with F28 2018-05-25 13:11:15 +02:00
Daniele Viganò 66fc89d1d8 Merge branch 'daniviga-2.18.20' of dani/copr-dani-qgis into daniviga-2.18 2018-05-21 10:32:38 +02:00
Daniele Viganò 27aaa03624 Bump to 2.18.20 2018-05-21 09:00:03 +02:00
Daniele Viganò fcb55677dd Merge branch 'grass74-f27' of dani/copr-dani-qgis into daniviga-2.18 2018-05-21 08:55:51 +02:00
Daniele Viganò d8e957e901 Add compatibility with GRASS 7.4 2018-04-27 19:17:15 +02:00
Daniele Viganò 863954ab48 Merge branch 'master' of http://pkgs.fedoraproject.org/git/rpms/qgis into daniviga-2.18.19 2018-04-24 19:21:38 +02:00
Daniele Viganò 1c6091d95f Bump to 2.18.18 2018-04-24 19:16:48 +02:00
Daniele Viganò 349d16f03b Bump to 2.18.18 2018-04-24 19:14:15 +02:00
Daniele Viganò 02880312c0 Merge branch 'daniviga-2.18.17' of dani/copr-dani-qgis into daniviga-2.18 2018-03-24 15:22:14 +01:00
Volker Froehlich 60b15c1d7e Rebuild for Grass 2018-03-03 07:53:31 +01:00
Daniele Viganò 68fdda4223 Bump to 2.18.17 2018-02-28 10:21:47 +01:00
Fedora Release Engineering c950aaccf0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 12:11:34 +00:00
Volker Froehlich 8bbec483cd Another Group keyword 2018-02-08 19:01:52 +01:00
Volker Froehlich 224d6a2a6e Remove Group keyword 2018-02-08 18:56:56 +01:00
Daniele Viganò 869be93c79 Merge branch 'daniviga-2.18.16' of dani/copr-dani-qgis into daniviga-2.18 2018-01-22 17:05:12 +00:00
Daniele Viganò 56c43c5a30 Bump to 2.18.16 2018-01-22 18:01:00 +01:00
Volker Froehlich 9167471aa1 New version 2.18.16 2018-01-20 12:42:14 +01:00
Daniele Viganò d6d3512392 Merge branch 'saga-gcc' of dani/copr-dani-qgis into daniviga-2.18 2018-01-18 14:16:12 +00:00
Daniele Viganò 12781d6967 Fix build failure on rawhide 2018-01-18 14:40:06 +01:00
Daniele Viganò 3b6fe99412 Port Debian patches to solve segfaults with shapefiles 2018-01-18 14:35:53 +01:00
Daniele Viganò 17420e24b7 Merge branch 'daniviga-2.18.15' of dani/copr-dani-qgis into daniviga-2.18 2018-01-18 13:33:46 +00:00
Daniele Viganò b2b1d54d5b Bump to 2.18.15 2017-12-10 11:46:06 +00:00
Volker Froehlich 94069edd31 New version 2.18.15 2017-12-09 02:13:53 +01:00
Volker Froehlich 25f13fb192 New upstream release 2.18.14 2017-11-07 09:59:53 +01:00
Daniele Viganò b902ba6720 Merge branch 'daniviga-2.18.14' of dani/copr-dani-qgis into daniviga-2.18 2017-10-27 14:06:44 +00:00
Daniele Viganò 16f4dfbc35 Bump to 2.18.14 2017-10-27 16:06:28 +02:00
Daniele Viganò 3a9a7603bc Merge branch 'daniviga-2.18.3' of dani/copr-dani-qgis into daniviga-2.18 2017-09-30 12:54:00 +00:00
Daniele Viganò a8c0c43b64 Cleanup files 2017-09-30 14:52:18 +02:00
Daniele Viganò 2ec248640a Merge branch 'daniviga-2.18.3' of dani/copr-dani-qgis into daniviga-2.18 2017-09-28 10:07:18 +00:00
Daniele Viganò b7ff2586bf Remove SIP-4.19-related patch 2017-09-25 19:00:11 +02:00
Daniele Viganò c32ec1ab33 Bump to 2.18.13 2017-09-25 15:33:54 +02:00
Daniele Viganò f5ce81f06d Merge branch 'pyhton2-saga' of dani/copr-dani-qgis into daniviga-2.18 2017-08-29 07:45:26 +00:00
Daniele Viganò 2d2df9d258 Merge branch 'daniviga-2.18.12' of dani/copr-dani-qgis into daniviga-2.18 2017-08-29 07:25:35 +00:00
Daniele Viganò 8192a026ed Python 2 binary package renamed to python2-saga 2017-08-29 09:25:01 +02:00
Daniele Viganò 7e7cb97e5c Sync with upstream master 2017-08-28 21:39:11 +02:00
Daniele Viganò 654373f227 Bump to 2.18.12 2017-08-28 15:16:08 +02:00
Daniele Viganò 8b738f8d6d Merge branch 'daniviga-2.18.11' of dani/copr-dani-qgis into daniviga-2.18 2017-08-28 13:08:39 +00:00
Volker Froehlich 466f350b03 New version 2.18.12 and fix for SIP-4.19-related build failure 2017-08-23 09:15:59 +02:00
Zbigniew Jędrzejewski-Szmek 272e902b1f Also add Provides for the old name without %_isa 2017-08-19 16:42:18 -04:00
Zbigniew Jędrzejewski-Szmek fb7bb13fe3 Python 2 binary package renamed to python2-qgis 2017-08-19 09:43:37 -04:00
Fedora Release Engineering 2010e1c555 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 07:11:10 +00:00
Fedora Release Engineering 6833749b42 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 12:35:03 +00:00
Daniele Viganò 0c5424710b Bump to 2.18.11 2017-07-25 09:59:10 +02:00
Volker Froehlich 3b31dfbe55 New version 2.8.11 2017-07-22 08:45:25 +02:00
Daniele Viganò d5e00f3862 Merge branch 'daniviga-2.18-sync' of dani/copr-dani-qgis into daniviga-2.18 2017-07-18 09:29:41 +00:00
Daniele Viganò d675da6614 Sync with upstream Fedora repo 2017-07-18 09:00:59 +02:00
Igor Gnatenko 33d97c3a57 Rebuild due to bug in RPM (RHBZ #1468476)
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2017-07-07 13:11:33 +02:00
Rex Dieter 303b6f6c8c rebuild (sip) 2017-07-06 06:42:39 -05:00
Sandro Mani 5f0a0a090e Bump release for NVR parity with F26 2017-07-03 20:09:40 +02:00
Volker Fröhlich 35f3eec274 Rebuild for Grass 7.2 2017-06-29 22:32:50 +02:00
Sandro Mani 776b1c79e9 Drop unnecessary qgis-2.18.10-sip.patch 2017-06-29 16:28:54 +02:00
Sandro Mani 1506ed414c Drop unnecessary qgis-2.18.10-sip.patch 2017-06-29 16:16:12 +02:00
Volker Fröhlich ed258f8422 Merge branch 'master' into f26 2017-06-28 08:50:39 +02:00
Volker Fröhlich 86062bf7a0 Add SIP patch to hopefully restore building 2017-06-28 08:49:20 +02:00
Sandro Mani 20e8b1f938 Merge branch 'master' into f26 2017-06-26 16:43:32 +02:00
Sandro Mani 29df9e04b3 Disable parallel build for now to avoid build failures 2017-06-26 16:42:09 +02:00
Volker Fröhlich 7e14c09165 New version 2.18.10 2017-06-25 10:55:27 +02:00
Volker Fröhlich 9b753f950b Merge branch 'master' into f26 2017-06-02 01:01:28 +02:00
Volker Fröhlich 6429480d0f New upstream release 2.18.9 2017-05-31 23:24:20 +02:00
Volker Fröhlich e5c2853c68 New version 2.18.8 2017-05-20 00:38:39 +02:00
Volker Fröhlich 23aed9fd0c New version 2.18.8 2017-05-19 22:58:11 +02:00
Fedora Release Engineering b6f86ffe21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild 2017-05-15 20:06:01 +00:00
Volker Fröhlich bd28c5f6b0 New release 2.18.7 2017-04-23 12:08:12 +02:00
Volker Fröhlich d6fcd43af5 New upstream version 2.18.6 2017-04-08 18:11:28 +02:00
Volker Froehlich 4f8a527219 New version 2.18.5 2017-03-25 12:18:50 +01:00
10 changed files with 536 additions and 262 deletions

22
.gitignore vendored
View File

@ -1,11 +1,11 @@
/qgis-2.18.0.tar.bz2 /qgis-2.18.17.tar.bz2
/qgis-2.18.1.tar.bz2 /qgis-2.18.18.tar.bz2
/qgis-2.18.2.tar.bz2 /qgis-2.18.19.tar.bz2
/qgis-2.18.3.tar.bz2 /qgis-2.18.20.tar.bz2
/qgis-2.18.4.tar.bz2 /qgis-2.18.21.tar.bz2
/qgis-2.18.5.tar.bz2 /qgis-2.18.22.tar.bz2
/qgis-2.18.6.tar.bz2 /qgis-2.18.23.tar.bz2
/qgis-2.18.7.tar.bz2 /qgis-2.18.24.tar.bz2
/qgis-2.18.8.tar.bz2 /qgis-2.18.25.tar.bz2
/qgis-2.18.9.tar.bz2 /qgis-2.18.27.tar.bz2
/qgis-2.18.10.tar.bz2 /qgis-2.18.28.tar.bz2

45
qgis-2.18.20-grass.patch Normal file
View File

@ -0,0 +1,45 @@
diff -rupN qgis-2.18.20/src/plugins/grass/scripts/db.connect-login.pg.py qgis-2.18.20-new/src/plugins/grass/scripts/db.connect-login.pg.py
--- qgis-2.18.20/src/plugins/grass/scripts/db.connect-login.pg.py 2018-05-18 14:01:08.000000000 +0200
+++ qgis-2.18.20-new/src/plugins/grass/scripts/db.connect-login.pg.py 2018-11-02 13:24:02.276460662 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# -*- coding: utf-8 -*-
"""
diff -rupN qgis-2.18.20/src/plugins/grass/scripts/qgis.v.kernel.rast.py qgis-2.18.20-new/src/plugins/grass/scripts/qgis.v.kernel.rast.py
--- qgis-2.18.20/src/plugins/grass/scripts/qgis.v.kernel.rast.py 2018-05-18 14:01:08.000000000 +0200
+++ qgis-2.18.20-new/src/plugins/grass/scripts/qgis.v.kernel.rast.py 2018-11-02 13:24:00.489411796 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# -*- coding: utf-8 -*-
"""
diff -rupN qgis-2.18.20/src/plugins/grass/scripts/qgis.v.upgrade.py qgis-2.18.20-new/src/plugins/grass/scripts/qgis.v.upgrade.py
--- qgis-2.18.20/src/plugins/grass/scripts/qgis.v.upgrade.py 2018-05-18 14:01:08.000000000 +0200
+++ qgis-2.18.20-new/src/plugins/grass/scripts/qgis.v.upgrade.py 2018-11-02 13:23:58.663361863 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# -*- coding: utf-8 -*-
"""
diff -rupN qgis-2.18.20/src/plugins/grass/scripts/r.external.all.py qgis-2.18.20-new/src/plugins/grass/scripts/r.external.all.py
--- qgis-2.18.20/src/plugins/grass/scripts/r.external.all.py 2018-05-18 14:01:08.000000000 +0200
+++ qgis-2.18.20-new/src/plugins/grass/scripts/r.external.all.py 2018-11-02 13:23:56.175293827 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# -*- coding: utf-8 -*-
"""
diff -rupN qgis-2.18.20/src/plugins/grass/scripts/v.out.ogr.pg.py qgis-2.18.20-new/src/plugins/grass/scripts/v.out.ogr.pg.py
--- qgis-2.18.20/src/plugins/grass/scripts/v.out.ogr.pg.py 2018-05-18 14:01:08.000000000 +0200
+++ qgis-2.18.20-new/src/plugins/grass/scripts/v.out.ogr.pg.py 2018-11-02 13:23:54.063236074 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# -*- coding: utf-8 -*-
"""

48
qgis-2.18.20-sip.patch Normal file
View File

@ -0,0 +1,48 @@
diff -rupN qgis-2.18.20/python/PyQt/PyQt4/QtCore.py qgis-2.18.20-new/python/PyQt/PyQt4/QtCore.py
--- qgis-2.18.20/python/PyQt/PyQt4/QtCore.py 2018-05-18 14:01:08.000000000 +0200
+++ qgis-2.18.20-new/python/PyQt/PyQt4/QtCore.py 2018-11-01 22:07:20.597278848 +0100
@@ -23,7 +23,7 @@ __copyright__ = '(C) 2015, Matthias Kuhn
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'
-import sip
+import PyQt4.sip as sip
for api in ["QDate", "QDateTime", "QString", "QTextStream", "QTime", "QUrl", "QVariant"]:
sip.setapi(api, 2)
diff -rupN qgis-2.18.20/python/PyQt/PyQt4/uic/pyuic.py qgis-2.18.20-new/python/PyQt/PyQt4/uic/pyuic.py
--- qgis-2.18.20/python/PyQt/PyQt4/uic/pyuic.py 2018-05-18 14:01:08.000000000 +0200
+++ qgis-2.18.20-new/python/PyQt/PyQt4/uic/pyuic.py 2018-11-01 22:07:15.417251277 +0100
@@ -24,7 +24,7 @@ __copyright__ = '(C) 2016, Jürgen E. Fi
__revision__ = '$Format:%H$'
-import sip
+import PyQt4.sip as sip
for api in ["QDate", "QDateTime", "QString", "QTextStream", "QTime", "QUrl", "QVariant"]:
sip.setapi(api, 2)
diff -rupN qgis-2.18.20/src/python/qgspythonutilsimpl.cpp qgis-2.18.20-new/src/python/qgspythonutilsimpl.cpp
--- qgis-2.18.20/src/python/qgspythonutilsimpl.cpp 2018-05-18 14:01:08.000000000 +0200
+++ qgis-2.18.20-new/src/python/qgspythonutilsimpl.cpp 2018-11-01 22:07:08.002211865 +0100
@@ -122,7 +122,7 @@ bool QgsPythonUtilsImpl::checkSystemImpo
runString( "sys.path = [" + newpaths.join( "," ) + "] + sys.path" );
// import SIP
- if ( !runString( "import sip",
+ if ( !runString( "import PyQt4.sip as sip",
QObject::tr( "Couldn't load SIP module." ) + '\n' + QObject::tr( "Python support will be disabled." ) ) )
{
return false;
diff -rupN qgis-2.18.20/tests/src/python/test_qgsmaplayerregistry.py qgis-2.18.20-new/tests/src/python/test_qgsmaplayerregistry.py
--- qgis-2.18.20/tests/src/python/test_qgsmaplayerregistry.py 2018-05-18 14:01:08.000000000 +0200
+++ qgis-2.18.20-new/tests/src/python/test_qgsmaplayerregistry.py 2018-11-01 22:06:59.632167456 +0100
@@ -15,7 +15,7 @@ __revision__ = '$Format:%H$'
from qgis.core import QgsMapLayerRegistry, QgsVectorLayer, QgsMapLayer
from qgis.testing import start_app, unittest
from qgis.PyQt.QtCore import QT_VERSION_STR
-import sip
+import PyQt4.sip as sip
try:
from qgis.PyQt.QtTest import QSignalSpy

View File

@ -1,7 +1,6 @@
diff -up qgis-2.16.2/CMakeLists.txt.lib64 qgis-2.16.2/CMakeLists.txt diff -rupN qgis-2.18.25/cmake/PyQtMacros.cmake qgis-2.18.25-new/cmake/PyQtMacros.cmake
diff -up qgis-2.16.2/cmake/PyQtMacros.cmake.lib64 qgis-2.16.2/cmake/PyQtMacros.cmake --- qgis-2.18.25/cmake/PyQtMacros.cmake 2018-10-26 13:59:08.000000000 +0200
--- qgis-2.16.2/cmake/PyQtMacros.cmake.lib64 2016-08-26 05:58:37.000000000 -0600 +++ qgis-2.18.25-new/cmake/PyQtMacros.cmake 2018-11-14 00:15:36.247074662 +0100
+++ qgis-2.16.2/cmake/PyQtMacros.cmake 2016-09-21 16:25:55.921411011 -0600
@@ -42,7 +42,7 @@ MACRO(PYQT_WRAP_UI outfiles ) @@ -42,7 +42,7 @@ MACRO(PYQT_WRAP_UI outfiles )
ELSE(WIN32) ELSE(WIN32)
# TODO osx # TODO osx

176
qgis.spec
View File

@ -1,12 +1,8 @@
#TODO: Fix error message with processing plug-in in regards to pyspatialite # This package depends on automagic byte compilation
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
%global _python_bytecompile_extra 1
# Limit the number of concurrent make to avoid failures due races: #TODO: Fix error message with processing plug-in in regards to pyspatialite
# qgsprojectionselector.h:14:10: fatal error: ui_qgsprojectionselectorbase.h: No such file or directory
# #include <ui_qgsprojectionselectorbase.h>
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%if %(grep -c processor /proc/cpuinfo) > 4
%_smp_mflags -j4
%endif
# Shared lib calls exit # Shared lib calls exit
# https://hub.qgis.org/issues/2854 # https://hub.qgis.org/issues/2854
@ -19,17 +15,18 @@
%endif %endif
%endif %endif
%if 0%{?fedora} >= 24 %if 0%{?fedora} >= 27
%global configure_with_grass7 -D WITH_GRASS7:BOOL=TRUE %define grass grass74
%else
%define grass grass72
%endif %endif
#TODO: Run test suite (see debian/rules) #TODO: Run test suite (see debian/rules)
Name: qgis Name: qgis
Version: 2.18.10 Version: 2.18.28
Release: 2%{?dist} Release: 1%{?dist}
Summary: A user friendly Open Source Geographic Information System Summary: A user friendly Open Source Geographic Information System
Group: Applications/Engineering
# http://hub.qgis.org/issues/3789 # http://hub.qgis.org/issues/3789
License: GPLv3+ with exceptions License: GPLv3+ with exceptions
@ -48,13 +45,13 @@ Source4: %{name}-server-README.fedora
Source5: %{name}-mime.xml Source5: %{name}-mime.xml
# Fix builds on 64-bit machines # Fix builds on 64-bit machines
# https://hub.qgis.org/issues/15602 # https://hub.qgis.org/issues/15602
# https://github.com/qgis/QGIS/commit/718581ffb12b723f9a3c0ae01b7ec2d8aed9d4bb.patch
Patch0: %{name}-lib64.patch Patch0: %{name}-lib64.patch
# Fix some SIP related FTBFS issues # Fix sip import for namespaced sip
# workaround (?): RuntimeError: qgis._core cannot import type 'QList<QVariant>' from PyQt4.QtCore Patch1: %{name}-2.18.20-sip.patch
# workaround (?): RuntimeError: qgis._core cannot import type 'QList<QPolygonF>' from PyQt4.QtCore
Patch1: qgis_sip-ftbfs.patch # Fix grass scripts shebangs
Patch2: %{name}-2.18.20-grass.patch
# Some plug-ins need Pyspatialite (bundled) # Some plug-ins need Pyspatialite (bundled)
# The license is not totally clear, see: # The license is not totally clear, see:
@ -82,7 +79,7 @@ BuildRequires: libspatialite-devel
BuildRequires: libspatialite-devel BuildRequires: libspatialite-devel
%endif %endif
BuildRequires: postgresql-devel BuildRequires: libpq-devel
BuildRequires: proj-devel BuildRequires: proj-devel
BuildRequires: PyQt4-devel BuildRequires: PyQt4-devel
# PyQwt doesn't support qwt6, so just turn it off for now on RHEL # PyQwt doesn't support qwt6, so just turn it off for now on RHEL
@ -95,8 +92,8 @@ BuildRequires: qca2-devel
BuildRequires: qextserialport-devel BuildRequires: qextserialport-devel
BuildRequires: qjson-devel BuildRequires: qjson-devel
BuildRequires: qscintilla-devel BuildRequires: qscintilla-devel
BuildRequires: qscintilla-python BuildRequires: python2-qscintilla
BuildRequires: qscintilla-python-devel BuildRequires: python2-qscintilla-devel
BuildRequires: qt4-devel BuildRequires: qt4-devel
#BuildRequires: qt-mobility-devel #BuildRequires: qt-mobility-devel
BuildRequires: qt4-webkit-devel BuildRequires: qt4-webkit-devel
@ -119,7 +116,7 @@ Requires: qca-ossl
# We don't want to provide private Python extension libs # We don't want to provide private Python extension libs
%if (0%{?fedora} || 0%{?rhel} > 6) %if (0%{?fedora} || 0%{?rhel} > 6)
%global __provides_exclude_from ^(%{python_sitearch}|%{_libdir}/%{name}/plugins)/.*\.so(\.%{version})?$ %global __provides_exclude_from ^(%{python2_sitearch}|%{_libdir}/%{name}/plugins)/.*\.so(\.%{version})?$
%endif %endif
%if 0%{?rhel} == 6 %if 0%{?rhel} == 6
@ -140,7 +137,6 @@ and USGS ASCII DEM.
%package devel %package devel
Summary: Development Libraries for the QGIS Summary: Development Libraries for the QGIS
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel %description devel
@ -148,7 +144,6 @@ Development packages for QGIS including the C header files.
%package grass %package grass
Summary: GRASS Support Libraries for QGIS Summary: GRASS Support Libraries for QGIS
Group: Applications/Engineering
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
# The plug-in requires more than just the grass-libs. # The plug-in requires more than just the grass-libs.
@ -161,29 +156,32 @@ Requires: grass%{?_isa} = %{grass_version}
%description grass %description grass
GRASS plugin for QGIS required to interface with the GRASS system. GRASS plugin for QGIS required to interface with the GRASS system.
%package python %package -n python2-qgis
%{?python_provide:%python_provide python2-qgis}
# Remove before F30
Provides: %{name}-python = %{version}-%{release}
Provides: %{name}-python%{?_isa} = %{version}-%{release}
Obsoletes: %{name}-python < %{version}-%{release}
Summary: Python integration and plug-ins for QGIS Summary: Python integration and plug-ins for QGIS
Group: Applications/Engineering
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: gdal-python Requires: python2-gdal
Requires: PyQt4-webkit Requires: PyQt4-webkit
Requires: python-httplib2 Requires: python2-httplib2
Requires: python-jinja2 Requires: python2-jinja2
Requires: python-matplotlib Requires: python2-matplotlib
Requires: python-OWSLib Requires: python2-owslib
Requires: python-psycopg2 Requires: python2-psycopg2
Requires: python-pygments Requires: python2-pygments
Requires: python-six Requires: python2-six
Requires: PyYAML Requires: python2-pyyaml
Requires: qscintilla-python Requires: python2-qscintilla
%{?_sip_api:Requires: sip-api(%{_sip_api_major}) >= %{_sip_api}} %{?_sip_api:Requires: sip-api(%{_sip_api_major}) >= %{_sip_api}}
%description python %description -n python2-qgis
Python integration and plug-ins for QGIS. Python integration and plug-ins for QGIS.
%package server %package server
Summary: FCGI-based OGC web map server Summary: FCGI-based OGC web map server
Group: Applications/Engineering
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: mod_fcgid Requires: mod_fcgid
Provides: mapserver = %{version}-%{release} Provides: mapserver = %{version}-%{release}
@ -200,9 +198,8 @@ Please refer to %{name}-server-README.fedora for details!
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .lib64 %patch0 -p1 -b .lib64
%if 0%{?fedora} == 26
%patch1 -p1 -b .sip %patch1 -p1 -b .sip
%endif %patch2 -p1 -b .grass
# Remove executable permissions from source code files # Remove executable permissions from source code files
find . \( -name "*.cpp" -o -name "*.h" \) -type f -perm /111 -execdir chmod -x {} \+ find . \( -name "*.cpp" -o -name "*.h" \) -type f -perm /111 -execdir chmod -x {} \+
@ -236,9 +233,8 @@ gzip ChangeLog
-D QGIS_MANUAL_SUBDIR=/share/man \ -D QGIS_MANUAL_SUBDIR=/share/man \
-D QGIS_CGIBIN_SUBDIR=%{_libexecdir}/%{name} \ -D QGIS_CGIBIN_SUBDIR=%{_libexecdir}/%{name} \
-D WITH_BINDINGS:BOOL=TRUE \ -D WITH_BINDINGS:BOOL=TRUE \
-D WITH_GRASS:BOOL=TRUE \ -D WITH_GRASS7:BOOL=TRUE \
%{configure_with_grass7} \ -D GRASS_PREFIX7=%{_libdir}/%{grass} \
-D GRASS_PREFIX=%{_libdir}/grass \
-D WITH_CUSTOM_WIDGETS:BOOL=TRUE \ -D WITH_CUSTOM_WIDGETS:BOOL=TRUE \
-D BINDINGS_GLOBAL_INSTALL:BOOL=TRUE \ -D BINDINGS_GLOBAL_INSTALL:BOOL=TRUE \
-D ENABLE_TESTS:BOOL=FALSE \ -D ENABLE_TESTS:BOOL=FALSE \
@ -256,13 +252,17 @@ gzip ChangeLog
-D WITH_PYSPATIALITE:BOOL=FALSE \ -D WITH_PYSPATIALITE:BOOL=FALSE \
-D WITH_SERVER:BOOL=TRUE \ -D WITH_SERVER:BOOL=TRUE \
-D WITH_TOUCH:BOOL=TRUE \ -D WITH_TOUCH:BOOL=TRUE \
-D WITH_INTERNAL_FUTURE=FALSE \
%{configure_with_spatialite} \ %{configure_with_spatialite} \
. .
#-D WITH_QTMOBILITY:BOOL=TRUE \ #-D WITH_QTMOBILITY:BOOL=TRUE \
# Doesn't build, as of 2.10, known issue # Doesn't build, as of 2.10, known issue
#-D WITH_GLOBE:BOOL=TRUE #-D WITH_GLOBE:BOOL=TRUE
make %{?_smp_mflags} # Parallel build appears to occasionally result in build failures
# (UI form headers generated too late)
# TODO: Re-check with QGIS-3.0
make
%install %install
@ -355,9 +355,9 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%postun grass -p /sbin/ldconfig %postun grass -p /sbin/ldconfig
%post python -p /sbin/ldconfig %post -n python2-qgis -p /sbin/ldconfig
%postun python -p /sbin/ldconfig %postun -n python2-qgis -p /sbin/ldconfig
%files -f %{name}.lang %files -f %{name}.lang
%doc BUGS NEWS Exception_to_GPL_for_Qt.txt ChangeLog.gz %doc BUGS NEWS Exception_to_GPL_for_Qt.txt ChangeLog.gz
@ -407,11 +407,11 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%{_libdir}/%{name}/grass/ %{_libdir}/%{name}/grass/
%{_datadir}/%{name}/grass/ %{_datadir}/%{name}/grass/
%files python %files -n python2-qgis
%{_libdir}/libqgispython.so.* %{_libdir}/libqgispython.so.*
%{_datadir}/%{name}/python/ %{_datadir}/%{name}/python/
%{python_sitearch}/%{name}/ %{python2_sitearch}/%{name}/
%{python_sitearch}/PyQt4/uic/widget-plugins/ %{python2_sitearch}/PyQt4/uic/widget-plugins/
%exclude %{python_sitearch}/%{name}/server/ %exclude %{python_sitearch}/%{name}/server/
%exclude %{python_sitearch}/%{name}/_server.so %exclude %{python_sitearch}/%{name}/_server.so
@ -420,11 +420,85 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}-server.conf %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}-server.conf
%{_libdir}/lib%{name}_server.so.* %{_libdir}/lib%{name}_server.so.*
%{_libexecdir}/%{name}/ %{_libexecdir}/%{name}/
%{python_sitearch}/%{name}/server/ %{python2_sitearch}/%{name}/server/
%{python_sitearch}/%{name}/_server.so %{python2_sitearch}/%{name}/_server.so
%changelog %changelog
* Mon Jan 21 2019 Daniele Viganò <daniele@vigano.me> - 2.18.28-1
- New upstream release
* Mon Dec 24 2018 Daniele Viganò <daniele@vigano.me> - 2.18.27-1
- New upstream release
* Thu Nov 08 2018 Daniele Viganò <daniele@vigano.me> - 2.18.25-1
- New upstream release
* Thu Nov 08 2018 Daniele Viganò <daniele@vigano.me> - 2.18.24-2
- Sync with upstream
* Sat Nov 03 2018 Sandro Mani <manisandro@gmail.com> - 2.18.20-3
- Fix broken requires
- Fix build with namespaced SIP
- Fix grass detection
- Fix grass script shebangs
* Sat Sep 15 2018 Daniele Viganò <daniele@vigano.me> - 2.18.24-1
- New upstream release
* Fri Aug 17 2018 Daniele Viganò <daniele@vigano.me> - 2.18.23-1
- New upstream release
* Sun Jul 22 2018 Daniele Viganò <daniele@vigano.me> - 2.18.22-1
- New upstream release
* Fri Jun 22 2018 Daniele Viganò <daniele@vigano.me> - 2.18.21-1
- New upstream release
* Mon May 21 2018 Daniele Viganò <daniele@vigano.me> - 2.18.20-1
- New upstream release
* Fri Apr 27 2018 Daniele Viganò <daniele@vigano.me> - 2.18.19-2
- Rebuild for GRASS 7.4
* Mon Apr 23 2018 Daniele Viganò <daniele@vigano.me> - 2.18.19-1
- New upstream release
* Sat Mar 24 2018 Daniele Viganò <daniele@vigano.me> - 2.18.18-1
- New upstream release
* Wed Feb 28 2018 Daniele Viganò <daniele@vigano.me> - 2.18.17-1
- New upstream release
* Mon Jan 22 2018 Daniele Viganò <daniele@vigano.me> - 2.18.16-1
- New upstream release
* Sun Dec 10 2017 Daniele Viganò <daniele@vigano.me> - 2.18.15-1
- New upstream release
* Fri Oct 27 2017 Daniele Viganò <daniele@vigano.me> - 2.18.14-1
- New upstream release
* Mon Sep 25 2017 Daniele Viganò <daniele@vigano.me> - 2.18.13-2
- Remove SIP-4.19-related patch
* Mon Sep 25 2017 Daniele Viganò <daniele@vigano.me> - 2.18.13-1
- New upstream release
* Tue Aug 22 2017 Volker Froehlich <volker27@gmx.at> - 2.18.12-1
- Add patch to solve SIP-4.19-related build failure
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.18.11-4
- Python 2 binary package renamed to python2-qgis
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
* Tue Jul 25 2017 Daniele Viganò <daniele@vigano.me> - 2.18.11-1
- New upstream release
* Mon Jul 17 2017 Daniele Viganò <daniele@vigano.me> - 2.18.10-6
- Rebuild for F26 GA
- Sync with Fedora upstream http://pkgs.fedoraproject.org/cgit/rpms/qgis.git
* Mon Jun 26 2017 Daniele Viganò <daniele@vigano.me> - 2.18.10-2 * Mon Jun 26 2017 Daniele Viganò <daniele@vigano.me> - 2.18.10-2
- Limit maximum number of concurrent make - Limit maximum number of concurrent make

View File

@ -1,186 +0,0 @@
diff --git a/python/core/conversions.sip b/python/core/conversions.sip
index f07d3ab1db..948821e91e 100644
--- a/python/core/conversions.sip
+++ b/python/core/conversions.sip
@@ -2041,3 +2041,178 @@ register_from_qvariant_convertor = (void (*)(FromQVariantConvertorFn))sipImportS
register_from_qvariant_convertor(null_from_qvariant_convertor);
%End
%End
+
+// QList<QVariant> is implemented as a Python list.
+%MappedType QList<QVariant> /TypeHintIn="Sequence[QVariant]", TypeHintOut="List[QVariant]", TypeHintValue="[]"/
+{
+%TypeHeaderCode
+#include <qlist.h>
+%End
+
+%ConvertFromTypeCode
+ // Create the list.
+ PyObject *l;
+
+ if ((l = PyList_New(sipCpp->size())) == NULL)
+ return NULL;
+
+ // Set the list elements.
+ for (int i = 0; i < sipCpp->size(); ++i)
+ {
+ QVariant *t = new QVariant(sipCpp->at(i));
+ PyObject *tobj;
+
+ if ((tobj = sipConvertFromNewType(t, sipType_QVariant, sipTransferObj)) == NULL)
+ {
+ Py_DECREF(l);
+ delete t;
+
+ return NULL;
+ }
+
+ PyList_SET_ITEM(l, i, tobj);
+ }
+
+ return l;
+%End
+
+%ConvertToTypeCode
+ SIP_SSIZE_T len;
+
+ // Check the type if that is all that is required.
+ if (sipIsErr == NULL)
+ {
+ if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
+ return 0;
+
+ for (SIP_SSIZE_T i = 0; i < len; ++i)
+ {
+ PyObject *itm = PySequence_ITEM(sipPy, i);
+ bool ok = (itm && sipCanConvertToType(itm, sipType_QVariant, SIP_NOT_NONE));
+
+ Py_XDECREF(itm);
+
+ if (!ok)
+ return 0;
+ }
+
+ return 1;
+ }
+
+ QList<QVariant> *ql = new QList<QVariant>;
+ len = PySequence_Size(sipPy);
+
+ for (SIP_SSIZE_T i = 0; i < len; ++i)
+ {
+ PyObject *itm = PySequence_ITEM(sipPy, i);
+ int state;
+ QVariant *t = reinterpret_cast<QVariant *>(sipConvertToType(itm, sipType_QVariant, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));
+
+ Py_DECREF(itm);
+
+ if (*sipIsErr)
+ {
+ sipReleaseType(t, sipType_QVariant, state);
+
+ delete ql;
+ return 0;
+ }
+
+ ql->append(*t);
+
+ sipReleaseType(t, sipType_QVariant, state);
+ }
+
+ *sipCppPtr = ql;
+
+ return sipGetState(sipTransferObj);
+%End
+};
+
+
+// QList<QPolygonF> is implemented as a Python list.
+%MappedType QList<QPolygonF> /TypeHintIn="Sequence[QPolygonF]", TypeHintOut="List[QPolygonF]", TypeHintValue="[]"/
+{
+%TypeHeaderCode
+#include <qlist.h>
+%End
+
+%ConvertFromTypeCode
+ // Create the list.
+ PyObject *l;
+
+ if ((l = PyList_New(sipCpp->size())) == NULL)
+ return NULL;
+
+ // Set the list elements.
+ for (int i = 0; i < sipCpp->size(); ++i)
+ {
+ QPolygonF *t = new QPolygonF(sipCpp->at(i));
+ PyObject *tobj;
+
+ if ((tobj = sipConvertFromNewType(t, sipType_QPolygonF, sipTransferObj)) == NULL)
+ {
+ Py_DECREF(l);
+ delete t;
+
+ return NULL;
+ }
+
+ PyList_SET_ITEM(l, i, tobj);
+ }
+
+ return l;
+%End
+
+%ConvertToTypeCode
+ SIP_SSIZE_T len;
+
+ // Check the type if that is all that is required.
+ if (sipIsErr == NULL)
+ {
+ if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
+ return 0;
+
+ for (SIP_SSIZE_T i = 0; i < len; ++i)
+ {
+ PyObject *itm = PySequence_ITEM(sipPy, i);
+ bool ok = (itm && sipCanConvertToType(itm, sipType_QPolygonF, SIP_NOT_NONE));
+
+ Py_XDECREF(itm);
+
+ if (!ok)
+ return 0;
+ }
+
+ return 1;
+ }
+
+ QList<QPolygonF> *ql = new QList<QPolygonF>;
+ len = PySequence_Size(sipPy);
+
+ for (SIP_SSIZE_T i = 0; i < len; ++i)
+ {
+ PyObject *itm = PySequence_ITEM(sipPy, i);
+ int state;
+ QPolygonF *t = reinterpret_cast<QPolygonF *>(sipConvertToType(itm, sipType_QPolygonF, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));
+
+ Py_DECREF(itm);
+
+ if (*sipIsErr)
+ {
+ sipReleaseType(t, sipType_QPolygonF, state);
+
+ delete ql;
+ return 0;
+ }
+
+ ql->append(*t);
+
+ sipReleaseType(t, sipType_QPolygonF, state);
+ }
+
+ *sipCppPtr = ql;
+
+ return sipGetState(sipTransferObj);
+%End
+};
--
2.12.0

View File

@ -0,0 +1,135 @@
From f3c103afb8be0e3fc79c0777ae9bfbd7d3ebdca3 Mon Sep 17 00:00:00 2001
Applied-Upstream: https://sourceforge.net/p/saga-gis/code/ci/f3c103afb8be0e3fc79c0777ae9bfbd7d3ebdca3/
From: oconrad <conrad@geowiss.uni-hamburg.de>
Date: Thu, 18 Aug 2016 13:01:36 +0200
Subject: saga_api, CSG_MetaData, gcc v6 compatibility: is_valid() function
removed (you can use () operator to check if a child entry with given name
exists)
diff --git a/saga-gis/src/saga_core/saga_api/metadata.cpp b/saga-gis/src/saga_core/saga_api/metadata.cpp
index 030be0c..4e2f135 100644
--- a/src/saga_core/saga_api/metadata.cpp
+++ b/src/saga_core/saga_api/metadata.cpp
@@ -174,17 +174,6 @@ void CSG_MetaData::Destroy(void)
///////////////////////////////////////////////////////////
//---------------------------------------------------------
-bool CSG_MetaData::is_Valid(void) const
-{
- return( this != NULL );
-}
-
-
-///////////////////////////////////////////////////////////
-// //
-///////////////////////////////////////////////////////////
-
-//---------------------------------------------------------
CSG_MetaData * CSG_MetaData::Add_Child(void)
{
return( Ins_Child(-1) );
diff --git a/saga-gis/src/saga_core/saga_api/metadata.h b/saga-gis/src/saga_core/saga_api/metadata.h
index 905a668..858be49 100644
--- a/src/saga_core/saga_api/metadata.h
+++ b/src/saga_core/saga_api/metadata.h
@@ -157,8 +157,6 @@ public:
const CSG_MetaData & operator [] (int Index) const { return( *Get_Child(Index ) ); }
const CSG_MetaData & operator [] (const CSG_String &Name) const { return( *Get_Child(_Get_Child(Name)) ); }
- bool is_Valid (void) const;
-
int Get_Property_Count (void) const { return( m_Prop_Names.Get_Count() ); }
const CSG_String & Get_Property_Name (int i) const { return( m_Prop_Names [i] ); }
const SG_Char * Get_Property (int i) const { return( i >= 0 && i < m_Prop_Values.Get_Count() ? m_Prop_Values[i].c_str() : NULL ); }
diff --git a/saga-gis/src/saga_core/saga_api/projections.cpp b/saga-gis/src/saga_core/saga_api/projections.cpp
index d84d386..638c0da 100644
--- a/src/saga_core/saga_api/projections.cpp
+++ b/src/saga_core/saga_api/projections.cpp
@@ -220,7 +220,7 @@ double SG_Get_Projection_Unit_To_Meter (TSG_Projection_Unit Unit)
//---------------------------------------------------------
bool SG_Set_Projection_Unit (const CSG_MetaData &m, TSG_Projection_Unit &Unit, CSG_String &Name, double &To_Meter)
{
- if( m["UNIT"].is_Valid() )
+ if( m("UNIT") )
{
if( m["UNIT"].Get_Property("name", Name) && (Unit = SG_Get_Projection_Unit(Name)) != SG_PROJ_UNIT_Undefined )
{
@@ -1042,8 +1042,8 @@ bool CSG_Projections::WKT_to_Proj4(CSG_String &Proj4, const CSG_String &WKT) con
// ]
if( !m.Get_Name().Cmp("GEOGCS") )
{
- if( !m["DATUM"].is_Valid()
- || !m["DATUM"]["SPHEROID"].is_Valid()
+ if( !m("DATUM")
+ || !m["DATUM"]("SPHEROID")
|| m["DATUM"]["SPHEROID"].Get_Children_Count() != 2
|| !m["DATUM"]["SPHEROID"][0].Get_Content().asDouble(a) || a <= 0.0
|| !m["DATUM"]["SPHEROID"][1].Get_Content().asDouble(d) || d < 0.0 )
@@ -1056,7 +1056,7 @@ bool CSG_Projections::WKT_to_Proj4(CSG_String &Proj4, const CSG_String &WKT) con
Proj4 += CSG_String::Format(SG_T(" +a=%f"), a); // Semimajor radius of the ellipsoid axis
Proj4 += CSG_String::Format(SG_T(" +b=%f"), d > 0.0 ? a - a / d : a); // Semiminor radius of the ellipsoid axis
- if( m["DATUM"]["TOWGS84"].is_Valid() && m["DATUM"]["TOWGS84"].Get_Children_Count() == 7 )
+ if( m["DATUM"]("TOWGS84") && m["DATUM"]["TOWGS84"].Get_Children_Count() == 7 )
{
for(i=0; i<7; i++)
{
@@ -1064,7 +1064,7 @@ bool CSG_Projections::WKT_to_Proj4(CSG_String &Proj4, const CSG_String &WKT) con
}
}
- if( m["PRIMEM"].is_Valid() && m["PRIMEM"].Get_Content().asDouble(d) && d != 0.0 )
+ if( m("PRIMEM") && m["PRIMEM"].Get_Content().asDouble(d) && d != 0.0 )
{
Proj4 += CSG_String::Format(SG_T(" +pm=%f"), d);
}
@@ -1090,7 +1090,7 @@ bool CSG_Projections::WKT_to_Proj4(CSG_String &Proj4, const CSG_String &WKT) con
// ]
if( !m.Get_Name().Cmp(SG_T("PROJCS")) )
{
- if( !m["PROJECTION"].is_Valid() )
+ if( !m("PROJECTION") )
{
SG_UI_Msg_Add_Error(CSG_String::Format(SG_T(">> WKT: %s"), _TL("no projection specified")));
@@ -1104,9 +1104,9 @@ bool CSG_Projections::WKT_to_Proj4(CSG_String &Proj4, const CSG_String &WKT) con
return( false );
}
- if( !m["GEOGCS"].is_Valid()
- || !m["GEOGCS"]["DATUM"].is_Valid()
- || !m["GEOGCS"]["DATUM"]["SPHEROID"].is_Valid()
+ if( !m("GEOGCS")
+ || !m["GEOGCS"]("DATUM")
+ || !m["GEOGCS"]["DATUM"]("SPHEROID")
|| m["GEOGCS"]["DATUM"]["SPHEROID"].Get_Children_Count() != 2
|| !m["GEOGCS"]["DATUM"]["SPHEROID"][0].Get_Content().asDouble(a) || a <= 0.0
|| !m["GEOGCS"]["DATUM"]["SPHEROID"][1].Get_Content().asDouble(d) || d < 0.0 )
@@ -1121,7 +1121,7 @@ bool CSG_Projections::WKT_to_Proj4(CSG_String &Proj4, const CSG_String &WKT) con
Proj4 += CSG_String::Format(SG_T(" +a=%f"), a);
Proj4 += CSG_String::Format(SG_T(" +b=%f"), d <= 0.0 ? a : a - a / d); // Semiminor radius of the ellipsoid axis
- if( m["GEOGCS"]["DATUM"]["TOWGS84"].is_Valid() && m["GEOGCS"]["DATUM"]["TOWGS84"].Get_Children_Count() == 7 )
+ if( m["GEOGCS"]["DATUM"]("TOWGS84") && m["GEOGCS"]["DATUM"]["TOWGS84"].Get_Children_Count() == 7 )
{
for(i=0; i<7; i++)
{
@@ -1129,7 +1129,7 @@ bool CSG_Projections::WKT_to_Proj4(CSG_String &Proj4, const CSG_String &WKT) con
}
}
- if( m["PRIMEM"].is_Valid() && m["PRIMEM"].Get_Content().asDouble(d) && d != 0.0 )
+ if( m("PRIMEM") && m["PRIMEM"].Get_Content().asDouble(d) && d != 0.0 )
{
Proj4 += CSG_String::Format(SG_T(" +pm=%f"), d);
}
@@ -1149,7 +1149,7 @@ bool CSG_Projections::WKT_to_Proj4(CSG_String &Proj4, const CSG_String &WKT) con
}
}
- if( m["UNIT"].is_Valid() && m["UNIT"].Get_Content().asDouble(d) && d != 0.0 && d != 1.0 )
+ if( m("UNIT") && m["UNIT"].Get_Content().asDouble(d) && d != 0.0 && d != 1.0 )
{
Proj4 += CSG_String::Format(SG_T(" +to_meter=%f"), d);
}

View File

@ -0,0 +1,132 @@
Description: Fix spelling errors.
* minium -> minimum
* coodinate -> coordinate
* contributers -> contributors
* ins't -> isn't
* Internation -> International
Author: Bas Couwenberg <sebastic@debian.org>
Forwarded: https://sourceforge.net/p/saga-gis/patches/15/
Applied-Upstream: https://sourceforge.net/p/saga-gis/code/ci/ed0361f4a2d25ac727cc184ceaca3125ef6c7dfe/
https://sourceforge.net/p/saga-gis/code/ci/450e5927b0b0759d23b8b31258cc431e9d5aa844/
--- a/src/modules/grid/grid_filter/Filter_Multi_Dir_Lee.cpp
+++ b/src/modules/grid/grid_filter/Filter_Multi_Dir_Lee.cpp
@@ -190,7 +190,7 @@ CFilter_Multi_Dir_Lee::CFilter_Multi_Dir
Set_Author(_TL("Copyrights (c) 2003 by Andre Ringeler"));
Set_Description (_TW(
- "The module searches for the minium variance within 16 directions "
+ "The module searches for the minimum variance within 16 directions "
"and applies a Lee Filter in the direction of minimum variance. The "
"filter is edge-preserving and can be used to remove speckle noise "
"from SAR images or to smooth DTMs. Applied to DTMs, this filter "
--- a/src/modules/terrain_analysis/ta_hydrology/Flow_RecursiveDown.cpp
+++ b/src/modules/terrain_analysis/ta_hydrology/Flow_RecursiveDown.cpp
@@ -128,7 +128,7 @@ CFlow_RecursiveDown::CFlow_RecursiveDown
Parameters.Add_Value(
NULL , "MINDQV" , _TL("DEMON - Min. DQV"),
- _TL("DEMON - Minium Drainage Quota Volume (DQV) for traced flow tubes"),
+ _TL("DEMON - Minimum Drainage Quota Volume (DQV) for traced flow tubes"),
PARAMETER_TYPE_Double , 0.0, 0.0, true, 1.0, true
);
--- a/src/saga_core/saga_gui/res/saga.bra.txt
+++ b/src/saga_core/saga_gui/res/saga.bra.txt
@@ -1216,7 +1216,7 @@ TEXT TRANSLATION
"DEM without Sinks" "MDE sem skins"
"DEMON" "DEMON"
"DEMON - Min. DQV" "DEMON - Min. DQV"
-"DEMON - Minium Drainage Quota Volume (DQV) for traced flow tubes" "DEMON - Volume mínimo de drenagem do contigente (DQV) para tubos de fluxo rastreados"
+"DEMON - Minimum Drainage Quota Volume (DQV) for traced flow tubes" "DEMON - Volume mínimo de drenagem do contigente (DQV) para tubos de fluxo rastreados"
"DESCRIPTION" "Descrição"
"DIFF_MEAN" "DIFF_MEAN"
"DN" "DN"
--- a/src/saga_core/saga_gui/res/saga.ger.txt
+++ b/src/saga_core/saga_gui/res/saga.ger.txt
@@ -1216,7 +1216,7 @@ TEXT TRANSLATION
"DEM without Sinks" ""
"DEMON" "DEMON"
"DEMON - Min. DQV" ""
-"DEMON - Minium Drainage Quota Volume (DQV) for traced flow tubes" "DEMON - Minimales Abflussquotenvolumen (DQV) für aufgezeichnete Fließröhren"
+"DEMON - Minimum Drainage Quota Volume (DQV) for traced flow tubes" "DEMON - Minimales Abflussquotenvolumen (DQV) für aufgezeichnete Fließröhren"
"DESCRIPTION" "BESCHREIBUNG"
"DIFF_MEAN" "DIFFERENZ_DURCHSCHNITT"
"DN" ""
--- a/src/saga_core/saga_gui/res/saga.lng.txt
+++ b/src/saga_core/saga_gui/res/saga.lng.txt
@@ -1216,7 +1216,7 @@ TEXT TRANSLATION
"DEM without Sinks" ""
"DEMON" ""
"DEMON - Min. DQV" ""
-"DEMON - Minium Drainage Quota Volume (DQV) for traced flow tubes" ""
+"DEMON - Minimum Drainage Quota Volume (DQV) for traced flow tubes" ""
"DESCRIPTION" ""
"DIFF_MEAN" ""
"DN" ""
--- a/src/modules/projection/pj_proj4/crs_grid_geogcoords.cpp
+++ b/src/modules/projection/pj_proj4/crs_grid_geogcoords.cpp
@@ -79,7 +79,7 @@ CCRS_Grid_GeogCoords::CCRS_Grid_GeogCoor
Set_Description (_TW(
"Creates for a given grid geographic coordinate information, "
"i.e. two grids specifying the longitude and latitude for each cell. "
- "The coodinate system of the input grid has to be defined. "
+ "The coordinate system of the input grid has to be defined. "
));
Set_Description (Get_Description() + "\n" + CSG_CRSProjector::Get_Description());
--- a/src/saga_core/saga_cmd/man/saga_cmd.1
+++ b/src/saga_core/saga_cmd/man/saga_cmd.1
@@ -221,7 +221,7 @@ Multiple input files can be specified by
On the website of \fIhttp://www.saga\-gis.org\fR, a list of known bugs can be found and new bug reports can be submitted.
.SH "AUTHORS"
.IX Header "AUTHORS"
-\&\fB\s-1SAGA\s0\fR was written by Olaf Conrad with help from a large number of contributers. This manual page was written by Johan Van de Wauw.
+\&\fB\s-1SAGA\s0\fR was written by Olaf Conrad with help from a large number of contributors. This manual page was written by Johan Van de Wauw.
Both are released under the \s-1GNU\s0 General Public License v2.
.PP
More info \fIhttp://www.saga\-gis.org\fR
--- a/src/saga_core/saga_gui/man/saga_gui.1
+++ b/src/saga_core/saga_gui/man/saga_gui.1
@@ -142,7 +142,7 @@ Graphical user interface to the System f
On the project website: \fIhttp://www.saga\-gis.org\fR, a list of known bugs can be found and new bug reports can be submitted.
.SH "AUTHORS"
.IX Header "AUTHORS"
-\&\fB\s-1SAGA\s0\fR was written by Olaf Conrad with help from a large number of contributers. This manual page was written by Johan Van de Wauw.
+\&\fB\s-1SAGA\s0\fR was written by Olaf Conrad with help from a large number of contributors. This manual page was written by Johan Van de Wauw.
Both are released under the \s-1GNU\s0 General Public License v2.
.PP
More info \fIhttp://www.saga\-gis.org\fR
--- a/src/modules/pointcloud/pointcloud_tools/pc_reclass_extract.cpp
+++ b/src/modules/pointcloud/pointcloud_tools/pc_reclass_extract.cpp
@@ -91,7 +91,7 @@ CPC_Reclass_Extract::CPC_Reclass_Extract
"In addition to these settings, two special cases ('NoData values' and 'other values' not "
"included in the parameter setup) are supported:\n"
"In mode (a) and (b) the 'NoData option' is evaluated before the method settings, in mode "
- "(c) the option is evaluated only if the NoData value ins't included in the lookup table.\n"
+ "(c) the option is evaluated only if the NoData value isn't included in the lookup table.\n"
"The 'other values' option is always evaluated after checking the method settings.\n\n")
);
--- a/src/saga_core/saga_api/projections.cpp
+++ b/src/saga_core/saga_api/projections.cpp
@@ -1639,7 +1639,7 @@ bool CSG_Projections::_Set_Dictionary(CS
{ "hammer" , " ", "Hammer_Eckert_Greifendorff" , "*) Hammer & Eckert-Greifendorff" },
{ "hatano" , " ", "Hatano_Asymmetrical_Equal_Area" , "*) Hatano Asymmetrical Equal Area" },
{ "igh" , " ", "World_Goode_Homolosine_Land" , "*) Interrupted Goode Homolosine" },
- { "imw_p" , " ", "Internation_Map_of_the_World_Polyconic" , "*) Internation Map of the World Polyconic" },
+ { "imw_p" , " ", "International_Map_of_the_World_Polyconic" , "*) International Map of the World Polyconic" },
{ "kav5" , " ", "Kavraisky_V" , "*) Kavraisky V" },
{ "kav7" , " ", "Kavraisky_VII" , "*) Kavraisky VII" },
{ "krovak" , " ", "Krovak" , "Krovak" },
--- a/src/saga_core/saga_gui/res/saga_dic.txt
+++ b/src/saga_core/saga_gui/res/saga_dic.txt
@@ -50,7 +50,7 @@ PROJ4 DIR WKT DESC
"hammer" " " "Hammer_Eckert_Greifendorff" "*) Hammer & Eckert-Greifendorff"
"hatano" " " "Hatano_Asymmetrical_Equal_Area" "*) Hatano Asymmetrical Equal Area"
"igh" " " "Interrupted_Goodes_Homolosine" "*) Interrupted Goode's Homolosine"
-"imw_p" " " "Internation_Map_of_the_World_Polyconic" "*) Internation Map of the World Polyconic"
+"imw_p" " " "International_Map_of_the_World_Polyconic" "*) International Map of the World Polyconic"
"kav5" " " "Kavraisky_V" "*) Kavraisky V"
"kav7" " " "Kavraisky_VII" "*) Kavraisky VII"
"krovak" " " "Krovak" "Krovak"

View File

@ -1,6 +1,6 @@
Name: saga Name: saga
Version: 2.3.1 Version: 2.3.1
Release: 1%{?dist} Release: 5%{?dist}
Summary: Geographic information system with an API for processing geodata Summary: Geographic information system with an API for processing geodata
Group: Applications/Engineering Group: Applications/Engineering
@ -12,7 +12,10 @@ License: GPLv2 and LGPLv2
URL: http://www.saga-gis.org URL: http://www.saga-gis.org
#Source0: https://sourceforge.net/projects/saga-gis/files/SAGA%20-%202.3/SAGA%20%{version}/saga_%{version}_gpl2.tar.gz #Source0: https://sourceforge.net/projects/saga-gis/files/SAGA%20-%202.3/SAGA%20%{version}/saga_%{version}_gpl2.tar.gz
Source0: %{name}_%{version}_gpl2.tar.gz Source0: %{name}_%{version}_gpl2.tar.gz
Patch0: %{name}-projections-gcc6.patch
Patch1: %{name}-spelling-errors.patch
BuildRequires: gcc-c++
BuildRequires: libappstream-glib BuildRequires: libappstream-glib
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils
BuildRequires: libtool automake autoconf BuildRequires: libtool automake autoconf
@ -37,12 +40,17 @@ SAGA is a geographic information system (GIS) with a special API
for geographic data processing. This API makes it easy to implement for geographic data processing. This API makes it easy to implement
new algorithms. The SAGA API supports grid data, vector data, and tables. new algorithms. The SAGA API supports grid data, vector data, and tables.
%package python %package -n python2-saga
%{?python_provide:%python_provide python2-saga}
# Remove before F30
Provides: %{name}-python = %{version}-%{release}
Provides: %{name}-python%{?_isa} = %{version}-%{release}
Obsoletes: %{name}-python < %{version}-%{release}
Summary: SAGA Python interface Summary: SAGA Python interface
Group: Applications/Engineering Group: Applications/Engineering
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
%description python %description -n python2-saga
Python interface for SAGA Python interface for SAGA
%package devel %package devel
@ -58,11 +66,14 @@ This package includes the headers and development libraries for SAGA.
# See https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering#Usage and https://fedorahosted.org/fpc/ticket/76 # See https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering#Usage and https://fedorahosted.org/fpc/ticket/76
#TODO: Check if provides are proper #TODO: Check if provides are proper
%global __provides_exclude_from ^%{python_sitearch}/.*\.so$ %global __provides_exclude_from ^%{python2_sitearch}/.*\.so$
%global __provides_requires_from ^%{python_sitearch}/.*\.so$ %global __provides_requires_from ^%{python2_sitearch}/.*\.so$
%prep %prep
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -p1
# Convert to UNIX line-breaks # Convert to UNIX line-breaks
sed -i 's/\r//' AUTHORS sed -i 's/\r//' AUTHORS
@ -75,6 +86,7 @@ sed -i -e 's,qhull/qhull_a.h,libqhull/qhull_a.h,' \
%endif %endif
%build %build
export PYTHON=python2.7
# wxGTK3 3.0.1-3 moved wx-config to libexecdir # wxGTK3 3.0.1-3 moved wx-config to libexecdir
PATH=$PATH:%{_libexecdir}/wxGTK3/ PATH=$PATH:%{_libexecdir}/wxGTK3/
autoreconf -fi autoreconf -fi
@ -104,7 +116,7 @@ make install DESTDIR=%{buildroot}
# Drop libtool archives # Drop libtool archives
rm -rf %{buildroot}/%{_libdir}/saga/lib*.la \ rm -rf %{buildroot}/%{_libdir}/saga/lib*.la \
%{buildroot}/%{_libdir}/saga/libsaga_*.la %{buildroot}/%{_libdir}/saga/libsaga_*.la
rm -rf %{buildroot}/%{python_sitearch}/*.la \ rm -rf %{buildroot}/%{python2_sitearch}/*.la \
%{buildroot}/%{_libdir}/*.la %{buildroot}/%{_libdir}/*.la
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
@ -126,9 +138,9 @@ appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.a
%{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/appdata/%{name}.appdata.xml
%{_mandir}/man1/%{name}_*1* %{_mandir}/man1/%{name}_*1*
%files python %files -n python2-saga
%{python_sitearch}/*.py* %{python2_sitearch}/*.py*
%{python_sitearch}/*.so %{python2_sitearch}/*.so
%files devel %files devel
%{_includedir}/%{name}/ %{_includedir}/%{name}/
@ -140,6 +152,21 @@ appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.a
%changelog %changelog
* Wed Nov 7 2018 Daniele Viganò <daniele@vigano.me> - 2.3.1-5
- Make package compatible with F29
* Fri May 25 2018 Daniele Viganò <daniele@vigano.me> - 2.3.1-4
- Make package compatible with F28
* Thu Jan 18 2018 Daniele Viganò <daniele@vigano.me> - 2.3.1-3
- Add from Debian to address segfaults with shapefiles and newer GCC
- Add a patch from Debian to fix spelling
* Tue Aug 29 2017 Daniele Viganò <daniele@vigano.me> - 2.3.1-2
- Sync with upstream master
- Python 2 binary package renamed to python2-saga
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
* Thu Jun 29 2017 Daniele Viganò <daniele@vigano.me> - 2.3.1-1 * Thu Jun 29 2017 Daniele Viganò <daniele@vigano.me> - 2.3.1-1
- Update to SAGA 2.3.1 (with some non-free components disabled) - Update to SAGA 2.3.1 (with some non-free components disabled)

View File

@ -1 +1 @@
SHA512 (qgis-2.18.10.tar.bz2) = 7f72515b72842a8612675c552f0091ca8b7075bda7fa3dbad09641532148af98cbeb17ee0eb3518204e59ce3a87db2eaef9ba57192ee5ade183b1c300e7a96d8 SHA512 (qgis-2.18.28.tar.bz2) = dd7178a965cd03f44a7dda439352fbf465ee594c90fbb9dc62ab0d4da58ab4718990f2de3582c929eab9e86511da8c3997af3285aea95a729f29915062a10fa7