Accepting request 607382 from home:bruno_friedmann:branches:Application:Geo
- Upgrade to new 2.3.0 version See details https://trac.osgeo.org/gdal/wiki/Release/2.3.0-News + Source code is now hosted on github + RFC 70: Guessing output format from output file name extension for utilities https://trac.osgeo.org/gdal/wiki/rfc70_output_format_guess + RFC 68: C++11 Compilation requirement https://trac.osgeo.org/gdal/wiki/rfc68_cplusplus11 GDAL now requires a C++11 compatible compiler. External code using GDAL C++ API will also need to enable at least C++11 compilation mode, if the compiler defaults to C++98/C++03. + Stricter const-ness in OGRGeomFieldDefn, OGRFeatureDefn and OGRFeature classes, impacting out-of-tree drivers that subclass them. - Packaging : redone patches against new version + GDALmake.opt.in.patch + gdal-libproj.patch - Add optional support to ECW5 JPEG lib support disabled by default OBS-URL: https://build.opensuse.org/request/show/607382 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/gdal?expand=0&rev=60
This commit is contained in:
parent
ffc5ccf679
commit
9df2edffde
@ -1,12 +1,12 @@
|
|||||||
diff -rup a/GDALmake.opt.in b/GDALmake.opt.in
|
diff -rup a/GDALmake.opt.in b/GDALmake.opt.in
|
||||||
--- a/GDALmake.opt.in 2017-04-28 18:07:38.000000000 +0200
|
--- a/GDALmake.opt.in 2018-05-04 18:05:45.000000000 +0200
|
||||||
+++ b/GDALmake.opt.in 2017-05-19 21:11:58.318459759 +0200
|
+++ b/GDALmake.opt.in 2018-05-14 09:47:11.178524546 +0200
|
||||||
@@ -67,7 +67,7 @@ INST_DOCS = @exec_prefix@/doc
|
@@ -67,7 +67,7 @@ INST_DOCS = @exec_prefix@/doc
|
||||||
INST_MAN = @mandir@
|
INST_MAN = @mandir@
|
||||||
INST_HTML = $(HOME)/www/gdal
|
INST_HTML = $(HOME)/www/gdal
|
||||||
|
|
||||||
-CPPFLAGS = @CPPFLAGS@ -I$(GDAL_ROOT)/port @EXTRA_INCLUDES@ -DGDAL_COMPILATION
|
-CPPFLAGS := @CPPFLAGS@ -I$(GDAL_ROOT)/port @EXTRA_INCLUDES@ -DGDAL_COMPILATION
|
||||||
+CPPFLAGS = @CPPFLAGS@ -I$(GDAL_ROOT)/port -I$(GDAL_ROOT)/gcore @EXTRA_INCLUDES@ -DGDAL_COMPILATION
|
+CPPFLAGS := @CPPFLAGS@ -I$(GDAL_ROOT)/gcore -I$(GDAL_ROOT)/port @EXTRA_INCLUDES@ -DGDAL_COMPILATION
|
||||||
CFLAGS = @CFLAGS@ @C_WFLAGS@ $(USER_DEFS)
|
CFLAGS = @CFLAGS@ @C_WFLAGS@ $(USER_DEFS)
|
||||||
CXXFLAGS = @CXXFLAGS@ @CXX_WFLAGS@ $(USER_DEFS)
|
CXXFLAGS = @CXXFLAGS@ @CXX_WFLAGS@ $(USER_DEFS)
|
||||||
CFLAGS_NOFTRAPV = @CFLAGS_NOFTRAPV@ @C_WFLAGS@ $(USER_DEFS)
|
CFLAGS_NOFTRAPV = @CFLAGS_NOFTRAPV@ @C_WFLAGS@ $(USER_DEFS)
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:441eb1d1acb35238ca43a1a0a649493fc91fdcbab231d0747e9d462eea192278
|
|
||||||
size 8255840
|
|
3
gdal-2.3.0.tar.xz
Normal file
3
gdal-2.3.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6f75e49aa30de140525ccb58688667efe3a2d770576feb7fbc91023b7f552aa2
|
||||||
|
size 8760248
|
@ -1,12 +1,11 @@
|
|||||||
diff -rup a/ogr/ogrct.cpp b/ogr/ogrct.cpp
|
diff -rup a/ogr/ogrct.cpp b/ogr/ogrct.cpp
|
||||||
--- a/ogr/ogrct.cpp 2017-04-28 18:07:33.000000000 +0200
|
--- a/ogr/ogrct.cpp 2018-05-04 18:08:49.000000000 +0200
|
||||||
+++ b/ogr/ogrct.cpp 2017-05-19 21:06:54.145528449 +0200
|
+++ b/ogr/ogrct.cpp 2018-05-14 09:49:42.824062814 +0200
|
||||||
@@ -102,7 +102,7 @@ static bool bProjLocaleSafe = false
|
@@ -125,6 +125,7 @@ static bool bProjLocaleSafe = false
|
||||||
#elif defined(__APPLE__)
|
|
||||||
# define LIBNAME "libproj.dylib"
|
# define LIBNAME "libproj.dylib"
|
||||||
#else
|
#else
|
||||||
-# define LIBNAME "libproj.so"
|
# define LIBNAME "libproj.so"
|
||||||
+# define LIBNAME "libproj.so.12"
|
+# define LIBNAME "libproj.so.12"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/************************************************************************/
|
#endif // PROJ_VERSION == 4
|
||||||
|
26
gdal.changes
26
gdal.changes
@ -1,3 +1,29 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 14 14:03:36 UTC 2018 - bruno@ioda-net.ch
|
||||||
|
|
||||||
|
- Upgrade to new 2.3.0 version
|
||||||
|
See details https://trac.osgeo.org/gdal/wiki/Release/2.3.0-News
|
||||||
|
+ Source code is now hosted on github
|
||||||
|
+ RFC 70: Guessing output format from output file name extension
|
||||||
|
for utilities
|
||||||
|
https://trac.osgeo.org/gdal/wiki/rfc70_output_format_guess
|
||||||
|
+ RFC 68: C++11 Compilation requirement
|
||||||
|
https://trac.osgeo.org/gdal/wiki/rfc68_cplusplus11
|
||||||
|
GDAL now requires a C++11 compatible compiler. External code
|
||||||
|
using GDAL C++ API will also need to enable at least C++11
|
||||||
|
compilation mode, if the compiler defaults to C++98/C++03.
|
||||||
|
+ Stricter const-ness in OGRGeomFieldDefn, OGRFeatureDefn and
|
||||||
|
OGRFeature classes, impacting out-of-tree drivers that subclass
|
||||||
|
them.
|
||||||
|
- Packaging : redone patches against new version
|
||||||
|
+ GDALmake.opt.in.patch
|
||||||
|
+ gdal-libproj.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 7 12:40:25 UTC 2018 - guillaume.gardet@opensuse.org
|
||||||
|
|
||||||
|
- Add optional support to ECW5 JPEG lib support disabled by default
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 5 14:51:21 UTC 2018 - bruno@ioda-net.ch
|
Thu Apr 5 14:51:21 UTC 2018 - bruno@ioda-net.ch
|
||||||
|
|
||||||
|
23
gdal.spec
23
gdal.spec
@ -21,8 +21,9 @@
|
|||||||
%define soversion 20
|
%define soversion 20
|
||||||
%define sourcename gdal
|
%define sourcename gdal
|
||||||
%bcond_with ecw_support
|
%bcond_with ecw_support
|
||||||
|
%bcond_with ecw5_support
|
||||||
Name: gdal
|
Name: gdal
|
||||||
Version: 2.2.4
|
Version: 2.3.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: GDAL/OGR - a translator library for raster and vector geospatial data formats
|
Summary: GDAL/OGR - a translator library for raster and vector geospatial data formats
|
||||||
License: MIT AND BSD-3-Clause AND SUSE-Public-Domain
|
License: MIT AND BSD-3-Clause AND SUSE-Public-Domain
|
||||||
@ -75,9 +76,13 @@ BuildRequires: pkgconfig(spatialite)
|
|||||||
BuildRequires: pkgconfig(sqlite3)
|
BuildRequires: pkgconfig(sqlite3)
|
||||||
BuildRequires: pkgconfig(xerces-c)
|
BuildRequires: pkgconfig(xerces-c)
|
||||||
BuildRequires: pkgconfig(zlib) >= 1.1.4
|
BuildRequires: pkgconfig(zlib) >= 1.1.4
|
||||||
|
%if %{with ecw5_support}
|
||||||
|
BuildRequires: ERDAS-ECW_JPEG_2000_SDK-devel
|
||||||
|
%else
|
||||||
%if %{with ecw_support}
|
%if %{with ecw_support}
|
||||||
BuildRequires: libecwj2-devel
|
BuildRequires: libecwj2-devel
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%if 0%{?suse_version} >= 1310
|
%if 0%{?suse_version} >= 1310
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
@ -173,6 +178,18 @@ done
|
|||||||
#Fix wrong /usr/bin/env phyton
|
#Fix wrong /usr/bin/env phyton
|
||||||
#Create the move to python3
|
#Create the move to python3
|
||||||
find . -iname "*.py" -exec sed -i 's,^#!%{_bindir}/env python$,#!%{_bindir}/python3,' {} \;
|
find . -iname "*.py" -exec sed -i 's,^#!%{_bindir}/env python$,#!%{_bindir}/python3,' {} \;
|
||||||
|
%if %{with ecw5_support}
|
||||||
|
# gdal configure script looks for a given layout, so reproduce what is expected.
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
%define ecw_abi_conf newabi
|
||||||
|
%else
|
||||||
|
%define ecw_abi_conf ""
|
||||||
|
%endif
|
||||||
|
mkdir -p ../ECW/Desktop_Read-Only/lib/%{ecw_abi_conf}/x64/release/
|
||||||
|
mkdir -p ../ECW/Desktop_Read-Only/include
|
||||||
|
cp %{_libdir}/libNCSEcw* ../ECW/Desktop_Read-Only/lib/%{ecw_abi_conf}/x64/release/
|
||||||
|
cp -r %{_includedir}/{ECW*,NCS*} ../ECW/Desktop_Read-Only/include/
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# need to regenerate (old one does not accept CFLAGS)
|
# need to regenerate (old one does not accept CFLAGS)
|
||||||
@ -216,10 +233,14 @@ autoreconf -fi
|
|||||||
--with-xerces=yes \
|
--with-xerces=yes \
|
||||||
--with-xerces-lib="-lxerces-c" \
|
--with-xerces-lib="-lxerces-c" \
|
||||||
--with-xerces-inc=%{_includedir}/xercesc \
|
--with-xerces-inc=%{_includedir}/xercesc \
|
||||||
|
%if %{with ecw5_support}
|
||||||
|
--with-ecw=../ECW/ \
|
||||||
|
%else
|
||||||
%if %{with ecw_support}
|
%if %{with ecw_support}
|
||||||
--with-ecw \
|
--with-ecw \
|
||||||
CFLAGS="$CFLAGS -pthread" \
|
CFLAGS="$CFLAGS -pthread" \
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%if 0%{?suse_version} > 1320
|
%if 0%{?suse_version} > 1320
|
||||||
--with-opencl \
|
--with-opencl \
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user