Sync with upstream master
This commit is contained in:
commit
7e7cb97e5c
18
qgis-2.18.12-pyobject-redefined.patch
Normal file
18
qgis-2.18.12-pyobject-redefined.patch
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
commit 91171370514b558ea7f0ae34af7503ddb31d68e6
|
||||||
|
Author: Juergen E. Fischer <jef@norbit.de>
|
||||||
|
Date: Sun Aug 20 10:51:52 2017 +0200
|
||||||
|
|
||||||
|
remove sip workaround (fixes #17038, refs #16071)
|
||||||
|
|
||||||
|
diff --git a/python/core/qgscoordinatetransform.sip b/python/core/qgscoordinatetransform.sip
|
||||||
|
index f9b7854..464952d 100644
|
||||||
|
--- a/python/core/qgscoordinatetransform.sip
|
||||||
|
+++ b/python/core/qgscoordinatetransform.sip
|
||||||
|
@@ -15,7 +15,6 @@
|
||||||
|
class QgsCoordinateTransform : QObject
|
||||||
|
{
|
||||||
|
%TypeHeaderCode
|
||||||
|
-extern PyObject *sipExportedExceptions__core[2]; // workaround: sipExportedExceptions__core is only defined in the first sip part
|
||||||
|
#include <qgscoordinatetransform.h>
|
||||||
|
%End
|
||||||
|
|
36
qgis.spec
36
qgis.spec
|
@ -11,10 +11,6 @@
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?fedora} >= 24
|
|
||||||
%global configure_with_grass7 -D WITH_GRASS7:BOOL=TRUE
|
|
||||||
%endif
|
|
||||||
|
|
||||||
#TODO: Run test suite (see debian/rules)
|
#TODO: Run test suite (see debian/rules)
|
||||||
|
|
||||||
Name: qgis
|
Name: qgis
|
||||||
|
@ -42,6 +38,7 @@ Source5: %{name}-mime.xml
|
||||||
# https://hub.qgis.org/issues/15602
|
# https://hub.qgis.org/issues/15602
|
||||||
# https://github.com/qgis/QGIS/commit/718581ffb12b723f9a3c0ae01b7ec2d8aed9d4bb.patch
|
# https://github.com/qgis/QGIS/commit/718581ffb12b723f9a3c0ae01b7ec2d8aed9d4bb.patch
|
||||||
Patch0: %{name}-lib64.patch
|
Patch0: %{name}-lib64.patch
|
||||||
|
Patch1: %{name}-2.18.12-pyobject-redefined.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:
|
||||||
|
@ -148,7 +145,12 @@ 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
|
Group: Applications/Engineering
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
@ -165,7 +167,7 @@ Requires: PyYAML
|
||||||
Requires: qscintilla-python
|
Requires: qscintilla-python
|
||||||
%{?_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
|
||||||
|
@ -188,6 +190,13 @@ Please refer to %{name}-server-README.fedora for details!
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .lib64
|
%patch0 -p1 -b .lib64
|
||||||
|
|
||||||
|
%if 0%{?fedora} > 26
|
||||||
|
# Solve "error: conflicting declaration 'PyObject* sipExportedExceptions__core [3]'"
|
||||||
|
# https://issues.qgis.org/projects/qgis/repository/revisions/91171370514b558ea7f0ae34af7503ddb31d68e6
|
||||||
|
# https://issues.qgis.org/projects/qgis/repository/revisions/91171370514b558ea7f0ae34af7503ddb31d68e6/diff/python/core/qgscoordinatetransform.sip?format=diff
|
||||||
|
%patch1 -p1 -b .pyobject
|
||||||
|
%endif
|
||||||
|
|
||||||
# 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 {} \+
|
||||||
|
|
||||||
|
@ -221,7 +230,7 @@ gzip ChangeLog
|
||||||
-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_GRASS:BOOL=TRUE \
|
||||||
%{configure_with_grass7} \
|
-D WITH_GRASS7:BOOL=TRUE \
|
||||||
-D GRASS_PREFIX=%{_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 \
|
||||||
|
@ -342,9 +351,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
|
||||||
|
@ -394,7 +403,7 @@ 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}/
|
%{python_sitearch}/%{name}/
|
||||||
|
@ -415,6 +424,13 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
|
||||||
* Mon Aug 28 2017 Daniele Viganò <daniele@vigano.me> - 2.18.12-1
|
* Mon Aug 28 2017 Daniele Viganò <daniele@vigano.me> - 2.18.12-1
|
||||||
- New upstream release
|
- 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
|
* Tue Jul 25 2017 Daniele Viganò <daniele@vigano.me> - 2.18.11-1
|
||||||
- New upstream release
|
- New upstream release
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user