Compare commits
60 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
90bd8d08f8 | ||
|
28d95f449f | ||
|
3e685b82b4 | ||
|
2add6bb7cb | ||
|
b9037a9bc1 | ||
|
26b8c01dd0 | ||
|
b23e54713a | ||
|
6379af6307 | ||
|
d225d9d53e | ||
|
d4edddc39f | ||
|
ec7c5d35ff | ||
|
d222a45ad4 | ||
|
3fd9070810 | ||
|
74fa4dd644 | ||
|
9216c1befe | ||
|
4a9546778f | ||
|
95a4909377 | ||
|
d3da6379a7 | ||
|
df8e45a77b | ||
|
0edd6b096a | ||
|
cf5488942a | ||
|
f4ca21d0d9 | ||
|
05e7db60a2 | ||
|
3e7adbfd88 | ||
|
55b5b8a02b | ||
|
55f32a4651 | ||
|
03bbe34e30 | ||
|
b8d18dc3e5 | ||
|
8970e29c1d | ||
|
16b7b80266 | ||
|
638c0bff66 | ||
|
ead8b240e6 | ||
|
38fa95eb78 | ||
|
ebee805e37 | ||
|
8cfdc63e75 | ||
|
06a5516507 | ||
|
58a4d06d29 | ||
|
4b2f3f618e | ||
|
90905d440c | ||
|
f465375f88 | ||
|
8107c2c0ef | ||
|
a4d8e114bf | ||
|
e7ebba872a | ||
|
ddfbc54eb4 | ||
|
84d61b00f4 | ||
|
3401ae59d5 | ||
|
d588d2a7f7 | ||
|
027c7029c0 | ||
|
619901b075 | ||
|
cf21b89def | ||
|
7bccf86956 | ||
|
db9f8bec75 | ||
|
2cd6c65bdd | ||
|
acf712226b | ||
|
167d24a476 | ||
|
d30a0769d4 | ||
|
539576a433 | ||
|
1f9c557750 | ||
|
fb4c3272a4 | ||
|
1118824b6a |
24
.gitignore
vendored
24
.gitignore
vendored
@ -43,3 +43,27 @@ gdalautotest-1.7.0.tar.gz
|
|||||||
/gdal-2.3.2-fedora.tar.xz
|
/gdal-2.3.2-fedora.tar.xz
|
||||||
/gdalautotest-3.0.1.zip
|
/gdalautotest-3.0.1.zip
|
||||||
/gdal-3.0.1-fedora.tar.xz
|
/gdal-3.0.1-fedora.tar.xz
|
||||||
|
/gdal-3.1.0-fedora.tar.xz
|
||||||
|
/gdalautotest-3.1.0.tar.gz
|
||||||
|
/gdal-3.1.1-fedora.tar.xz
|
||||||
|
/gdalautotest-3.1.1.tar.gz
|
||||||
|
/gdal-3.1.2-fedora.tar.xz
|
||||||
|
/gdalautotest-3.1.2.tar.gz
|
||||||
|
/gdal-3.1.3-fedora.tar.xz
|
||||||
|
/gdalautotest-3.1.3.tar.gz
|
||||||
|
/gdal-3.1.4-fedora.tar.xz
|
||||||
|
/gdalautotest-3.1.4.tar.gz
|
||||||
|
/gdalautotest-3.2.0.tar.gz
|
||||||
|
/gdal-3.2.0-fedora.tar.xz
|
||||||
|
/gdal-3.2.1-fedora.tar.xz
|
||||||
|
/gdalautotest-3.2.1.tar.gz
|
||||||
|
/gdalautotest-3.2.2.tar.gz
|
||||||
|
/gdal-3.2.2-fedora.tar.xz
|
||||||
|
/gdalautotest-3.3.0.tar.gz
|
||||||
|
/gdal-3.3.0-fedora.tar.xz
|
||||||
|
/gdal-3.3.1-fedora.tar.xz
|
||||||
|
/gdalautotest-3.3.1.tar.gz
|
||||||
|
/gdal-3.3.2-fedora.tar.xz
|
||||||
|
/gdalautotest-3.3.2.tar.gz
|
||||||
|
/gdalautotest-3.3.3.tar.gz
|
||||||
|
/gdal-3.3.3-fedora.tar.xz
|
||||||
|
25
CVE-2021-45943.patch
Normal file
25
CVE-2021-45943.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
diff -rupN gdal-3.3.2-fedora/frmts/pcidsk/sdk/segment/cpcidskbinarysegment.cpp gdal-3.3.2-fedora-new/frmts/pcidsk/sdk/segment/cpcidskbinarysegment.cpp
|
||||||
|
--- gdal-3.3.2-fedora/frmts/pcidsk/sdk/segment/cpcidskbinarysegment.cpp 2021-09-01 11:51:01.000000000 +0200
|
||||||
|
+++ gdal-3.3.2-fedora-new/frmts/pcidsk/sdk/segment/cpcidskbinarysegment.cpp 2022-02-04 18:57:11.761058218 +0100
|
||||||
|
@@ -31,6 +31,7 @@
|
||||||
|
#include "pcidsk_exception.h"
|
||||||
|
#include "core/pcidsk_utils.h"
|
||||||
|
|
||||||
|
+#include <limits>
|
||||||
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
#include <cassert>
|
||||||
|
@@ -73,8 +74,12 @@ void CPCIDSKBinarySegment::Load()
|
||||||
|
if (loaded_) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
+ if( data_size - 1024 > static_cast<uint64_t>(std::numeric_limits<int>::max()) )
|
||||||
|
+ {
|
||||||
|
+ return ThrowPCIDSKException("too large data_size");
|
||||||
|
+ }
|
||||||
|
|
||||||
|
- seg_data.SetSize((int)data_size - 1024);
|
||||||
|
+ seg_data.SetSize((int)(data_size - 1024));
|
||||||
|
|
||||||
|
ReadFromFile(seg_data.buffer, 0, data_size - 1024);
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
diff -rupN --no-dereference gdal-3.0.4-fedora/swig/java/java.opt gdal-3.0.4-fedora-new/swig/java/java.opt
|
|
||||||
--- gdal-3.0.4-fedora/swig/java/java.opt 2020-01-28 11:13:12.000000000 +0100
|
|
||||||
+++ gdal-3.0.4-fedora-new/swig/java/java.opt 2020-02-06 00:23:36.321286290 +0100
|
|
||||||
@@ -7,6 +7,6 @@ JAVADOC=$(JAVA_HOME)/bin/javadoc
|
|
||||||
JAVAC=$(JAVA_HOME)/bin/javac
|
|
||||||
JAVA=$(JAVA_HOME)/bin/java
|
|
||||||
JAR=$(JAVA_HOME)/bin/jar
|
|
||||||
-JAVA_INCLUDE=-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
|
|
||||||
+JAVA_INCLUDE=-I/usr/lib/jvm/java/include/ -I/usr/lib/jvm/java/include/linux
|
|
||||||
|
|
||||||
|
|
@ -1,7 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
VERSION="3.0.4"
|
|
||||||
|
|
||||||
tar xvf gdal-"${VERSION}".tar.xz
|
if [ $# -lt 1 ]; then
|
||||||
|
echo "Usage: $0 version"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
VERSION="$1"
|
||||||
|
|
||||||
|
wget https://github.com/OSGeo/gdal/releases/download/v$VERSION/gdal-$VERSION.tar.gz
|
||||||
|
|
||||||
|
tar xvf gdal-"${VERSION}".tar.gz
|
||||||
|
|
||||||
mv gdal-"${VERSION}"{,-fedora} && pushd gdal-"${VERSION}"-fedora
|
mv gdal-"${VERSION}"{,-fedora} && pushd gdal-"${VERSION}"-fedora
|
||||||
|
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
diff -rupN --no-dereference gdal-3.0.4-fedora/scripts/GNUmakefile gdal-3.0.4-fedora-new/scripts/GNUmakefile
|
|
||||||
--- gdal-3.0.4-fedora/scripts/GNUmakefile 2020-01-28 11:13:13.000000000 +0100
|
|
||||||
+++ gdal-3.0.4-fedora-new/scripts/GNUmakefile 2020-02-06 00:23:36.089287463 +0100
|
|
||||||
@@ -5,6 +5,6 @@ completion:
|
|
||||||
|
|
||||||
install:
|
|
||||||
if test "x`pkg-config --version 2>/dev/null`" != "x" -a "x`pkg-config --variable=compatdir bash-completion`" != "x"; then \
|
|
||||||
- $(INSTALL_DIR) $(DESTDIR)${prefix}`pkg-config --variable=compatdir bash-completion` ; \
|
|
||||||
- cp gdal-bash-completion.sh $(DESTDIR)${prefix}`pkg-config --variable=compatdir bash-completion`; \
|
|
||||||
+ $(INSTALL_DIR) $(DESTDIR)`pkg-config --variable=compatdir bash-completion` ; \
|
|
||||||
+ $(INSTALL_DATA) gdal-bash-completion.sh $(DESTDIR)`pkg-config --variable=compatdir bash-completion`/gdal; \
|
|
||||||
fi
|
|
33
gdal-gcc11.patch
Normal file
33
gdal-gcc11.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
diff -rupN --no-dereference gdal-3.3.2-fedora/ogr/ogrsf_frmts/cad/libopencad/cadobjects.cpp gdal-3.3.2-fedora-new/ogr/ogrsf_frmts/cad/libopencad/cadobjects.cpp
|
||||||
|
--- gdal-3.3.2-fedora/ogr/ogrsf_frmts/cad/libopencad/cadobjects.cpp 2021-09-01 11:49:35.000000000 +0200
|
||||||
|
+++ gdal-3.3.2-fedora-new/ogr/ogrsf_frmts/cad/libopencad/cadobjects.cpp 2021-09-07 12:51:18.767929853 +0200
|
||||||
|
@@ -34,6 +34,7 @@
|
||||||
|
#include <limits>
|
||||||
|
#include <math.h>
|
||||||
|
#include <algorithm>
|
||||||
|
+#include <limits>
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// CADVector
|
||||||
|
diff -rupN --no-dereference gdal-3.3.2-fedora/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp gdal-3.3.2-fedora-new/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp
|
||||||
|
--- gdal-3.3.2-fedora/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp 2021-09-01 11:49:34.000000000 +0200
|
||||||
|
+++ gdal-3.3.2-fedora-new/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp 2021-09-07 12:51:18.768929851 +0200
|
||||||
|
@@ -39,6 +39,7 @@
|
||||||
|
#include <limits>
|
||||||
|
#include <memory>
|
||||||
|
#include <string>
|
||||||
|
+#include <limits>
|
||||||
|
|
||||||
|
#if ((defined(__sun__) || defined(__FreeBSD__)) && __GNUC__ == 4 && __GNUC_MINOR__ == 8) || defined(__ANDROID__)
|
||||||
|
// gcc 4.8 on Solaris 11.3 or FreeBSD 11 doesn't have std::string
|
||||||
|
diff -rupN --no-dereference gdal-3.3.2-fedora/third_party/LercLib/Lerc2.h gdal-3.3.2-fedora-new/third_party/LercLib/Lerc2.h
|
||||||
|
--- gdal-3.3.2-fedora/third_party/LercLib/Lerc2.h 2021-09-01 11:48:49.000000000 +0200
|
||||||
|
+++ gdal-3.3.2-fedora-new/third_party/LercLib/Lerc2.h 2021-09-07 12:51:18.768929851 +0200
|
||||||
|
@@ -30,6 +30,7 @@ Contributors: Thomas Maurer
|
||||||
|
#include <limits>
|
||||||
|
#include <string>
|
||||||
|
#include <typeinfo>
|
||||||
|
+#include <limits>
|
||||||
|
#include "Defines.h"
|
||||||
|
#include "BitMask.h"
|
||||||
|
#include "BitStuffer2.h"
|
386
gdal.spec
386
gdal.spec
@ -1,4 +1,3 @@
|
|||||||
#TODO: Create script to make clean tarball
|
|
||||||
#TODO: msg needs to have PublicDecompWT.zip from EUMETSAT, which is not free;
|
#TODO: msg needs to have PublicDecompWT.zip from EUMETSAT, which is not free;
|
||||||
# Building without msg therefore
|
# Building without msg therefore
|
||||||
#TODO: e00compr bundled?
|
#TODO: e00compr bundled?
|
||||||
@ -9,8 +8,8 @@
|
|||||||
#TODO: Consider doxy patch from Suse, setting EXTRACT_LOCAL_CLASSES = NO
|
#TODO: Consider doxy patch from Suse, setting EXTRACT_LOCAL_CLASSES = NO
|
||||||
|
|
||||||
# Tests can be of a different version
|
# Tests can be of a different version
|
||||||
%global testversion 3.0.4
|
%global testversion 3.3.3
|
||||||
%global run_tests 0
|
%global run_tests 1
|
||||||
|
|
||||||
%global bashcompletiondir %(pkg-config --variable=compatdir bash-completion)
|
%global bashcompletiondir %(pkg-config --variable=compatdir bash-completion)
|
||||||
|
|
||||||
@ -32,7 +31,6 @@
|
|||||||
%global spatialite "--with-spatialite"
|
%global spatialite "--with-spatialite"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%bcond_with python2
|
|
||||||
%bcond_without python3
|
%bcond_without python3
|
||||||
|
|
||||||
# No ppc64 build for spatialite in EL6
|
# No ppc64 build for spatialite in EL6
|
||||||
@ -45,8 +43,8 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: gdal
|
Name: gdal
|
||||||
Version: 3.0.4
|
Version: 3.3.3
|
||||||
Release: 4%{?dist}%{?bootstrap:.%{bootstrap}.bootstrap}
|
Release: 1%{?dist}%{?bootstrap:.%{bootstrap}.bootstrap}
|
||||||
Summary: GIS file format library
|
Summary: GIS file format library
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://www.gdal.org
|
URL: http://www.gdal.org
|
||||||
@ -61,16 +59,29 @@ Source3: %{name}-cleaner.sh
|
|||||||
|
|
||||||
Source4: PROVENANCE.TXT-fedora
|
Source4: PROVENANCE.TXT-fedora
|
||||||
|
|
||||||
# Fix bash-completion install dir
|
# Java build fixes
|
||||||
Patch1: %{name}-completion.patch
|
Patch2: gdal_java.patch
|
||||||
# Fedora uses Alternatives for Java
|
|
||||||
Patch2: %{name}-1.9.0-java.patch
|
|
||||||
# Ensure rpc/types.h is found by dods driver (indirectly required by libdap/XDRUtils.h)
|
# Ensure rpc/types.h is found by dods driver (indirectly required by libdap/XDRUtils.h)
|
||||||
Patch3: gdal_tirpcinc.patch
|
Patch3: gdal_tirpcinc.patch
|
||||||
# Use libtool to create libiso8211.a, otherwise broken static lib is created since object files are compiled through libtool
|
# Use libtool to create libiso8211.a, otherwise broken static lib is created since object files are compiled through libtool
|
||||||
Patch4: gdal_iso8211.patch
|
Patch4: gdal_iso8211.patch
|
||||||
|
# Don't pass -W to sphinx, it causes it to error out on warnings
|
||||||
|
# Don't do parallel build, currently fails with "Sphinx parallel build error: NotImplementedError"
|
||||||
|
Patch5: gdal_sphinx.patch
|
||||||
# Fix makefiles installing libtool wrappers instead of actual executables
|
# Fix makefiles installing libtool wrappers instead of actual executables
|
||||||
Patch5: gdal_installapps.patch
|
Patch6: gdal_installapps.patch
|
||||||
|
# Don't refer to PDF manual which is not built
|
||||||
|
Patch7: gdal_nopdf.patch
|
||||||
|
# Fix issues caught by gcc-11
|
||||||
|
Patch8: %{name}-gcc11.patch
|
||||||
|
# Drop -diag-disable compile flag
|
||||||
|
Patch9: gdal_no-diag-disable.patch
|
||||||
|
# Fix build with autoconf 2.70
|
||||||
|
Patch10: gdal_autoconf270.patch
|
||||||
|
# Backport patch for CVE-2021-45943
|
||||||
|
# https://github.com/OSGeo/gdal/pull/4944
|
||||||
|
Patch11: CVE-2021-45943.patch
|
||||||
|
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -78,38 +89,38 @@ BuildRequires: libtool
|
|||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
# No armadillo in EL5
|
|
||||||
BuildRequires: armadillo-devel
|
BuildRequires: armadillo-devel
|
||||||
BuildRequires: bash-completion
|
BuildRequires: bash-completion
|
||||||
BuildRequires: cfitsio-devel
|
BuildRequires: cfitsio-devel
|
||||||
# No CharLS in EL5
|
|
||||||
#BuildRequires: CharLS-devel
|
#BuildRequires: CharLS-devel
|
||||||
BuildRequires: chrpath
|
BuildRequires: chrpath
|
||||||
BuildRequires: curl-devel
|
BuildRequires: curl-devel
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: expat-devel
|
BuildRequires: expat-devel
|
||||||
BuildRequires: fontconfig-devel
|
BuildRequires: fontconfig-devel
|
||||||
# No freexl in EL5
|
|
||||||
BuildRequires: freexl-devel
|
BuildRequires: freexl-devel
|
||||||
BuildRequires: g2clib-static
|
|
||||||
BuildRequires: geos-devel >= 3.7.1
|
BuildRequires: geos-devel >= 3.7.1
|
||||||
BuildRequires: ghostscript
|
BuildRequires: ghostscript
|
||||||
BuildRequires: hdf-devel
|
BuildRequires: hdf-devel
|
||||||
BuildRequires: hdf-static
|
BuildRequires: hdf-static
|
||||||
BuildRequires: hdf5-devel
|
BuildRequires: hdf5-devel
|
||||||
|
# No complete java yet in EL8
|
||||||
|
%if 0%{?rhel} < 8
|
||||||
BuildRequires: java-devel >= 1:1.6.0
|
BuildRequires: java-devel >= 1:1.6.0
|
||||||
|
%endif
|
||||||
BuildRequires: jasper-devel
|
BuildRequires: jasper-devel
|
||||||
BuildRequires: jpackage-utils
|
BuildRequires: jpackage-utils
|
||||||
|
# No complete java yet in EL8
|
||||||
|
%if 0%{?rhel} < 8
|
||||||
# For 'mvn_artifact' and 'mvn_install'
|
# For 'mvn_artifact' and 'mvn_install'
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
|
%endif
|
||||||
BuildRequires: json-c-devel
|
BuildRequires: json-c-devel
|
||||||
BuildRequires: libgeotiff-devel
|
BuildRequires: libgeotiff-devel
|
||||||
# No libgta in EL5
|
|
||||||
BuildRequires: libgta-devel
|
BuildRequires: libgta-devel
|
||||||
|
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: libpng-devel
|
BuildRequires: libpng-devel
|
||||||
# No libkml in EL
|
|
||||||
BuildRequires: libkml-devel
|
BuildRequires: libkml-devel
|
||||||
|
|
||||||
%if %{with_spatialite}
|
%if %{with_spatialite}
|
||||||
@ -117,7 +128,6 @@ BuildRequires: libspatialite-devel
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
# No libwebp in EL 5 and 6
|
|
||||||
BuildRequires: libwebp-devel
|
BuildRequires: libwebp-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: giflib-devel
|
BuildRequires: giflib-devel
|
||||||
@ -139,13 +149,12 @@ BuildRequires: poppler-devel
|
|||||||
%endif
|
%endif
|
||||||
BuildRequires: libpq-devel
|
BuildRequires: libpq-devel
|
||||||
BuildRequires: proj-devel >= 5.2.0
|
BuildRequires: proj-devel >= 5.2.0
|
||||||
%if %{with python2}
|
|
||||||
BuildRequires: python2-devel
|
|
||||||
BuildRequires: python2-numpy
|
|
||||||
%endif
|
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-numpy
|
BuildRequires: python3-numpy
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3dist(pytest) >= 3.6
|
||||||
|
BuildRequires: python3dist(lxml) >= 4.5.1
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: sqlite-devel
|
BuildRequires: sqlite-devel
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
@ -155,11 +164,10 @@ BuildRequires: xz-devel
|
|||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
BuildRequires: libtirpc-devel
|
BuildRequires: libtirpc-devel
|
||||||
|
|
||||||
BuildRequires: /usr/bin/epstopdf
|
BuildRequires: python3-sphinx
|
||||||
BuildRequires: /usr/bin/latex
|
BuildRequires: python3-sphinx_rtd_theme
|
||||||
BuildRequires: /usr/bin/dvips
|
BuildRequires: python3-breathe
|
||||||
BuildRequires: tex(newunicodechar.sty)
|
BuildRequires: make
|
||||||
|
|
||||||
|
|
||||||
# Run time dependency for gpsbabel driver
|
# Run time dependency for gpsbabel driver
|
||||||
Requires: gpsbabel
|
Requires: gpsbabel
|
||||||
@ -173,7 +181,6 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|||||||
%global cpuarch 64
|
%global cpuarch 64
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
#TODO: Description on the lib?
|
|
||||||
%description
|
%description
|
||||||
Geospatial Data Abstraction Library (GDAL/OGR) is a cross platform
|
Geospatial Data Abstraction Library (GDAL/OGR) is a cross platform
|
||||||
C++ translator library for raster and vector geospatial data formats.
|
C++ translator library for raster and vector geospatial data formats.
|
||||||
@ -203,6 +210,8 @@ Provides: bundled(degrib) = 2.14
|
|||||||
This package contains the GDAL file format library.
|
This package contains the GDAL file format library.
|
||||||
|
|
||||||
|
|
||||||
|
# No complete java yet in EL8
|
||||||
|
%if 0%{?rhel} < 8
|
||||||
%package java
|
%package java
|
||||||
Summary: Java modules for the GDAL file format library
|
Summary: Java modules for the GDAL file format library
|
||||||
Requires: jpackage-utils
|
Requires: jpackage-utils
|
||||||
@ -219,6 +228,7 @@ BuildArch: noarch
|
|||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
This package contains the API documentation for %{name}.
|
This package contains the API documentation for %{name}.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%package perl
|
%package perl
|
||||||
@ -229,22 +239,6 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi
|
|||||||
%description perl
|
%description perl
|
||||||
The GDAL Perl modules provide support to handle multiple GIS file formats.
|
The GDAL Perl modules provide support to handle multiple GIS file formats.
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%package -n python2-gdal
|
|
||||||
%{?python_provide:%python_provide python2-gdal}
|
|
||||||
# Remove before F30
|
|
||||||
Provides: %{name}-python = %{version}-%{release}
|
|
||||||
Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
|
||||||
Obsoletes: %{name}-python < %{version}-%{release}
|
|
||||||
Summary: Python modules for the GDAL file format library
|
|
||||||
Requires: numpy
|
|
||||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python2-gdal
|
|
||||||
The GDAL Python modules provide support to handle multiple GIS file formats.
|
|
||||||
The package also includes a couple of useful utilities in Python.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
%package -n python3-gdal
|
%package -n python3-gdal
|
||||||
@ -260,10 +254,10 @@ The GDAL Python 3 modules provide support to handle multiple GIS file formats.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %{with python2} || %{with python3}
|
%if %{with python3}
|
||||||
%package python-tools
|
%package python-tools
|
||||||
Summary: Python tools for the GDAL file format library
|
Summary: Python tools for the GDAL file format library
|
||||||
Requires: %{?with_python3:python3-gdal}%{?!with_python3:python2-gdal}
|
Requires: python3-gdal
|
||||||
|
|
||||||
%description python-tools
|
%description python-tools
|
||||||
The GDAL Python package provides number of tools for programming and
|
The GDAL Python package provides number of tools for programming and
|
||||||
@ -278,17 +272,13 @@ BuildArch: noarch
|
|||||||
%description doc
|
%description doc
|
||||||
This package contains documentation for GDAL.
|
This package contains documentation for GDAL.
|
||||||
|
|
||||||
|
|
||||||
# We don't want to provide private Python extension libs
|
# We don't want to provide private Python extension libs
|
||||||
%if %{with python2} && %{with python3}
|
%if %{with_python3}
|
||||||
%global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\.so$
|
|
||||||
%elif %{with python2}
|
|
||||||
%global __provides_exclude_from ^%{python2_sitearch}/.*\.so$
|
|
||||||
%elif %{with_python3}
|
|
||||||
%global __provides_exclude_from ^%{python3_sitearch}/.*\.so$
|
%global __provides_exclude_from ^%{python3_sitearch}/.*\.so$
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{name}-%{version}-fedora -a 1
|
%autosetup -p1 -n %{name}-%{version}-fedora -a 1
|
||||||
|
|
||||||
@ -304,18 +294,12 @@ rm -rf frmts/gtiff/libtiff
|
|||||||
# Copy in PROVENANCE.TXT-fedora
|
# Copy in PROVENANCE.TXT-fedora
|
||||||
cp -p %SOURCE4 .
|
cp -p %SOURCE4 .
|
||||||
|
|
||||||
# Sanitize permissions
|
|
||||||
chmod 644 apps/gnmanalyse.cpp apps/gnmmanage.cpp
|
|
||||||
|
|
||||||
# Adjust check for LibDAP version
|
# Adjust check for LibDAP version
|
||||||
# http://trac.osgeo.org/gdal/ticket/4545
|
# http://trac.osgeo.org/gdal/ticket/4545
|
||||||
%if %cpuarch == 64
|
%if %cpuarch == 64
|
||||||
sed -i 's|with_dods_root/lib|with_dods_root/lib64|' configure.ac
|
sed -i 's|with_dods_root/lib|with_dods_root/lib64|' configure.ac
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Fix mandir
|
|
||||||
sed -i "s|^mandir=.*|mandir='\${prefix}/share/man'|" configure.ac
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# For future reference:
|
# For future reference:
|
||||||
@ -325,9 +309,9 @@ autoreconf -ifv
|
|||||||
|
|
||||||
%configure \
|
%configure \
|
||||||
--with-autoload=%{_libdir}/%{name}plugins \
|
--with-autoload=%{_libdir}/%{name}plugins \
|
||||||
--datadir=%{_datadir}/%{name}/ \
|
|
||||||
--includedir=%{_includedir}/%{name}/ \
|
--includedir=%{_includedir}/%{name}/ \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
|
--with-bash-completion \
|
||||||
--with-armadillo \
|
--with-armadillo \
|
||||||
--with-curl \
|
--with-curl \
|
||||||
--with-cfitsio \
|
--with-cfitsio \
|
||||||
@ -341,7 +325,9 @@ autoreconf -ifv
|
|||||||
--with-hdf4 \
|
--with-hdf4 \
|
||||||
--with-hdf5 \
|
--with-hdf5 \
|
||||||
--with-jasper \
|
--with-jasper \
|
||||||
|
%if 0%{?rhel} < 8
|
||||||
--with-java \
|
--with-java \
|
||||||
|
%endif
|
||||||
--with-jpeg \
|
--with-jpeg \
|
||||||
--with-libjson-c \
|
--with-libjson-c \
|
||||||
--without-jpeg12 \
|
--without-jpeg12 \
|
||||||
@ -369,23 +355,28 @@ autoreconf -ifv
|
|||||||
--with-libkml
|
--with-libkml
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
make man
|
|
||||||
make docs
|
|
||||||
|
|
||||||
# Build some utilities, as requested in BZ #1271906
|
# Build some utilities, as requested in BZ #1271906
|
||||||
make -C ogr/ogrsf_frmts/s57 all
|
make -C ogr/ogrsf_frmts/s57 all
|
||||||
make -C frmts/iso8211 all
|
make -C frmts/iso8211 all
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
make man
|
||||||
|
make docs
|
||||||
|
|
||||||
|
# No complete java yet in EL8
|
||||||
|
%if 0%{?rhel} < 8
|
||||||
|
|
||||||
# Make Java module and documentation
|
# Make Java module and documentation
|
||||||
pushd swig/java
|
pushd swig/java
|
||||||
make
|
make
|
||||||
ant maven
|
ANT_OPTS="-Dfile.encoding=utf-8" ant maven
|
||||||
popd
|
popd
|
||||||
%mvn_artifact swig/java/build/maven/gdal-%version.pom swig/java/build/maven/gdal-%version.jar
|
%mvn_artifact swig/java/build/maven/gdal-%version.pom swig/java/build/maven/gdal-%version.jar
|
||||||
|
%endif
|
||||||
|
|
||||||
# Make Python modules
|
# Make Python modules
|
||||||
pushd swig/python
|
pushd swig/python
|
||||||
%{?with_python2:%py2_build}
|
|
||||||
%{?with_python3:%py3_build}
|
%{?with_python3:%py3_build}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -395,29 +386,9 @@ pushd swig/perl
|
|||||||
%make_build
|
%make_build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# --------- Documentation ----------
|
|
||||||
|
|
||||||
# No useful documentation in swig
|
|
||||||
%global docdirs apps doc doc/br doc/ru ogr ogr/ogrsf_frmts frmts/gxf frmts/iso8211 frmts/pcidsk frmts/sdts frmts/vrt ogr/ogrsf_frmts/dgn/
|
|
||||||
for docdir in %{docdirs}; do
|
|
||||||
pushd $docdir
|
|
||||||
if [ ! -f Doxyfile ]; then
|
|
||||||
doxygen -g
|
|
||||||
else
|
|
||||||
doxygen -u
|
|
||||||
fi
|
|
||||||
if [ $docdir == "doc/ru" ]; then
|
|
||||||
sed -i -e 's|^OUTPUT_LANGUAGE|OUTPUT_LANGUAGE = Russian\n#OUTPUT_LANGUAGE |' Doxyfile
|
|
||||||
fi
|
|
||||||
rm -rf html
|
|
||||||
doxygen
|
|
||||||
popd
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
pushd swig/python
|
pushd swig/python
|
||||||
%{?with_python2:%py2_install}
|
|
||||||
%{?with_python3:%py3_install}
|
%{?with_python3:%py3_install}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -425,19 +396,26 @@ popd
|
|||||||
|
|
||||||
%make_install install-man
|
%make_install install-man
|
||||||
|
|
||||||
|
# Drop gdal.pdf symlink, as we don't build the pdf documentation
|
||||||
|
rm doc/build/html/gdal.pdf
|
||||||
|
|
||||||
|
# Drop samples, installed through %%doc
|
||||||
|
rm -rf %{python3_sitearch}/osgeo_utils/samples
|
||||||
|
|
||||||
install -pm 755 ogr/ogrsf_frmts/s57/s57dump %{buildroot}%{_bindir}
|
install -pm 755 ogr/ogrsf_frmts/s57/s57dump %{buildroot}%{_bindir}
|
||||||
install -pm 755 frmts/iso8211/8211createfromxml %{buildroot}%{_bindir}
|
install -pm 755 frmts/iso8211/8211createfromxml %{buildroot}%{_bindir}
|
||||||
install -pm 755 frmts/iso8211/8211dump %{buildroot}%{_bindir}
|
install -pm 755 frmts/iso8211/8211dump %{buildroot}%{_bindir}
|
||||||
install -pm 755 frmts/iso8211/8211view %{buildroot}%{_bindir}
|
install -pm 755 frmts/iso8211/8211view %{buildroot}%{_bindir}
|
||||||
|
# Rename for %%files doc below
|
||||||
|
mv frmts/iso8211/html frmts/iso8211/iso8211_html
|
||||||
|
|
||||||
# Directory for auto-loading plugins
|
# Directory for auto-loading plugins
|
||||||
mkdir -p %{buildroot}%{_libdir}/%{name}plugins
|
mkdir -p %{buildroot}%{_libdir}/%{name}plugins
|
||||||
|
|
||||||
#TODO: Don't do that?
|
#TODO: Don't do that?
|
||||||
find %{buildroot}%{perl_vendorarch} -name "*.dox" -exec rm -rf '{}' \;
|
|
||||||
rm %{buildroot}%{perl_archlib}/perllocal.pod
|
rm %{buildroot}%{perl_archlib}/perllocal.pod
|
||||||
|
|
||||||
%if %{without python} && %{without python3}
|
%if %{without python3}
|
||||||
rm %buildroot%_mandir/man1/{pct2rgb,rgb2pct}.1
|
rm %buildroot%_mandir/man1/{pct2rgb,rgb2pct}.1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -446,6 +424,8 @@ rm %buildroot%_mandir/man1/{pct2rgb,rgb2pct}.1
|
|||||||
find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \;
|
find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \;
|
||||||
find %{buildroot}%{perl_vendorarch} -name "*.pm" -exec chmod 644 '{}' \;
|
find %{buildroot}%{perl_vendorarch} -name "*.pm" -exec chmod 644 '{}' \;
|
||||||
|
|
||||||
|
# No complete java yet in EL8
|
||||||
|
%if 0%{?rhel} < 8
|
||||||
# install Java plugin
|
# install Java plugin
|
||||||
%mvn_install -J swig/java/java
|
%mvn_install -J swig/java/java
|
||||||
|
|
||||||
@ -460,21 +440,7 @@ chrpath --delete %{buildroot}%{_jnidir}/%{name}/*jni.so*
|
|||||||
# Install Java API documentation in the designated place
|
# Install Java API documentation in the designated place
|
||||||
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr swig/java/java/org %{buildroot}%{_javadocdir}/%{name}
|
cp -pr swig/java/java/org %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
%endif
|
||||||
# Install refmans
|
|
||||||
for docdir in %{docdirs}; do
|
|
||||||
pushd $docdir
|
|
||||||
path=%{_builddir}/%{name}-%{version}-fedora/refman
|
|
||||||
mkdir -p $path/html/$docdir
|
|
||||||
cp -r html $path/html/$docdir
|
|
||||||
popd
|
|
||||||
done
|
|
||||||
|
|
||||||
# Install formats documentation
|
|
||||||
for dir in gdal_frmts ogrsf_frmts; do
|
|
||||||
mkdir -p $dir
|
|
||||||
find frmts -name "*.html" -exec install -p -m 644 '{}' $dir \;
|
|
||||||
done
|
|
||||||
|
|
||||||
#TODO: Header date lost during installation
|
#TODO: Header date lost during installation
|
||||||
# Install multilib cpl_config.h bz#430894
|
# Install multilib cpl_config.h bz#430894
|
||||||
@ -528,53 +494,57 @@ chmod 755 %{buildroot}%{_bindir}/%{name}-config
|
|||||||
#jni-libs and libgdal are also built static (*.a)
|
#jni-libs and libgdal are also built static (*.a)
|
||||||
#.exists and .packlist stem from Perl
|
#.exists and .packlist stem from Perl
|
||||||
for junk in {*.a,*.la,*.bs,.exists,.packlist} ; do
|
for junk in {*.a,*.la,*.bs,.exists,.packlist} ; do
|
||||||
find %{buildroot} -name "$junk" -exec rm -rf '{}' \;
|
find %{buildroot} -name "$junk" -delete
|
||||||
done
|
done
|
||||||
|
|
||||||
# Don't duplicate license files
|
# Don't duplicate license files
|
||||||
rm %{buildroot}%{_datadir}/%{name}/LICENSE.TXT
|
rm %{buildroot}%{_datadir}/%{name}/LICENSE.TXT
|
||||||
|
|
||||||
|
|
||||||
|
# No complete java yet in EL8
|
||||||
|
%if 0%{?rhel} < 8
|
||||||
%check
|
%check
|
||||||
%if %{run_tests}
|
%if %{run_tests}
|
||||||
for i in -I/usr/lib/jvm/java/include{,/linux}; do
|
for i in -I/usr/lib/jvm/java/include{,/linux}; do
|
||||||
java_inc="$java_inc $i"
|
java_inc="$java_inc $i"
|
||||||
done
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
pushd %{name}autotest-%{testversion}
|
pushd %{name}autotest-%{testversion}
|
||||||
# Export test enviroment
|
|
||||||
export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python_sitearch}
|
|
||||||
#TODO: Nötig?
|
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}
|
||||||
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%%{buildroot}%%{_libdir}:$java_inc
|
|
||||||
|
|
||||||
export GDAL_DATA=%{buildroot}%{_datadir}/%{name}/
|
export GDAL_DATA=%{buildroot}%{_datadir}/%{name}/
|
||||||
|
|
||||||
# Enable these tests on demand
|
# Enable these tests on demand
|
||||||
#export GDAL_RUN_SLOW_TESTS=1
|
#export GDAL_RUN_SLOW_TESTS=1
|
||||||
#export GDAL_DOWNLOAD_TEST_DATA=1
|
#export GDAL_DOWNLOAD_TEST_DATA=1
|
||||||
|
|
||||||
# Remove some test cases that would require special preparation
|
# Some tests are currently skipped:
|
||||||
rm -rf ogr/ogr_pg.py # No database available
|
# - `test_fits_vector` because it's crashing.
|
||||||
rm -rf ogr/ogr_mysql.py # No database available
|
# - `test_http*`, `test_jp2openjpeg_45`, `*multithreaded_download*`,
|
||||||
rm -rf osr/osr_esri.py # ESRI datum absent
|
# `*multithreaded_upload*`, and `test_vsis3_no_sign_request`, which
|
||||||
rm -rf osr/osr_erm.py # File from ECW absent
|
# try to connect externally.
|
||||||
|
# - `test_eedai_GOOGLE_APPLICATION_CREDENTIALS` which seems to use the
|
||||||
# Run tests but force normal exit in the end
|
# internet.
|
||||||
./run_all.py || true
|
# - `test_osr_erm_1`, `test_ers_4`, `test_ers_8`, and `test_ers_10` as
|
||||||
|
# they use `ecw_cs.wkt` which was removed due to unclear license.
|
||||||
|
# - `test_jpeg2000_8` and `test_jpeg2000_11` as files don't load,
|
||||||
|
# perhaps due to buggy Jasper library?
|
||||||
|
# - `test_osr_ct_options_area_of_interest` returns the wrong value, but
|
||||||
|
# it's skipped on macOS by upstream for mysteriously failing as well,
|
||||||
|
# so do the same here.
|
||||||
|
# - `test_ndf_1` because it hangs on i686 and armv7hl
|
||||||
|
# FIXME: Tests hang on i686 and armv7hl
|
||||||
|
%ifnarch i686 armv7hl
|
||||||
|
%{pytest} -k 'not test_fits_vector and not test_http and not test_jp2openjpeg_45 and not multithreaded_download and not multithreaded_upload and not test_vsis3_no_sign_request and not test_eedai_GOOGLE_APPLICATION_CREDENTIALS and not test_osr_erm_1 and not test_ers_4 and not test_ers_8 and not test_ers_10 and not test_jpeg2000_8 and not test_jpeg2000_11 and not test_osr_ct_options_area_of_interest and not test_ndf_1' || :
|
||||||
|
%endif
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
#%%{run_tests}
|
|
||||||
|
|
||||||
|
|
||||||
%ldconfig_scriptlets libs
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{bashcompletiondir}/*
|
|
||||||
%{_bindir}/gdallocationinfo
|
%{_bindir}/gdallocationinfo
|
||||||
%{_bindir}/gdal_contour
|
%{_bindir}/gdal_contour
|
||||||
|
%{_bindir}/gdal_create
|
||||||
%{_bindir}/gdal_rasterize
|
%{_bindir}/gdal_rasterize
|
||||||
%{_bindir}/gdal_translate
|
%{_bindir}/gdal_translate
|
||||||
%{_bindir}/gdaladdo
|
%{_bindir}/gdaladdo
|
||||||
@ -586,16 +556,19 @@ popd
|
|||||||
%{_bindir}/gdal_grid
|
%{_bindir}/gdal_grid
|
||||||
%{_bindir}/gdalenhance
|
%{_bindir}/gdalenhance
|
||||||
%{_bindir}/gdalmanage
|
%{_bindir}/gdalmanage
|
||||||
%{_bindir}/gdalserver
|
|
||||||
%{_bindir}/gdalsrsinfo
|
%{_bindir}/gdalsrsinfo
|
||||||
%{_bindir}/gdaltransform
|
%{_bindir}/gdaltransform
|
||||||
%{_bindir}/nearblack
|
%{_bindir}/nearblack
|
||||||
|
%{_bindir}/gdal_viewshed
|
||||||
|
%{_bindir}/gdalmdiminfo
|
||||||
|
%{_bindir}/gdalmdimtranslate
|
||||||
%{_bindir}/ogr*
|
%{_bindir}/ogr*
|
||||||
%{_bindir}/8211*
|
%{_bindir}/8211*
|
||||||
%{_bindir}/s57*
|
%{_bindir}/s57*
|
||||||
%{_bindir}/testepsg
|
%{_bindir}/testepsg
|
||||||
%{_bindir}/gnmanalyse
|
%{_bindir}/gnmanalyse
|
||||||
%{_bindir}/gnmmanage
|
%{_bindir}/gnmmanage
|
||||||
|
%{_datadir}/bash-completion/completions/*
|
||||||
%{_mandir}/man1/gdal*.1*
|
%{_mandir}/man1/gdal*.1*
|
||||||
%exclude %{_mandir}/man1/gdal-config.1*
|
%exclude %{_mandir}/man1/gdal-config.1*
|
||||||
%exclude %{_mandir}/man1/gdal2tiles.1*
|
%exclude %{_mandir}/man1/gdal2tiles.1*
|
||||||
@ -609,11 +582,11 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
%doc LICENSE.TXT NEWS PROVENANCE.TXT COMMITTERS PROVENANCE.TXT-fedora
|
%license LICENSE.TXT
|
||||||
%{_libdir}/libgdal.so.26
|
%doc NEWS PROVENANCE.TXT COMMITTERS PROVENANCE.TXT-fedora
|
||||||
%{_libdir}/libgdal.so.26.*
|
%{_libdir}/libgdal.so.29
|
||||||
|
%{_libdir}/libgdal.so.29.*
|
||||||
%{_datadir}/%{name}
|
%{_datadir}/%{name}
|
||||||
#TODO: Possibly remove files like .dxf, .dgn, ...
|
|
||||||
%dir %{_libdir}/%{name}plugins
|
%dir %{_libdir}/%{name}plugins
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
@ -625,44 +598,29 @@ popd
|
|||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
|
# No complete java yet in EL8
|
||||||
|
%if 0%{?rhel} < 8
|
||||||
# Can I even have a separate Java package anymore?
|
# Can I even have a separate Java package anymore?
|
||||||
%files java -f .mfiles
|
%files java -f .mfiles
|
||||||
%doc swig/java/apps
|
%doc swig/java/apps
|
||||||
%{_jnidir}/%{name}/libgdalalljni.so*
|
%{_jnidir}/%{name}/libgdalalljni.so*
|
||||||
|
|
||||||
%files javadoc -f .mfiles-javadoc
|
%files javadoc -f .mfiles-javadoc
|
||||||
|
%endif
|
||||||
|
|
||||||
%files perl
|
%files perl
|
||||||
%doc swig/perl/README
|
%doc swig/perl/README
|
||||||
%{perl_vendorarch}/*
|
%{perl_vendorarch}/*
|
||||||
%{_mandir}/man3/*.3pm*
|
%{_mandir}/man3/*.3pm*
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%files -n python2-gdal
|
|
||||||
%doc swig/python/README.rst
|
|
||||||
%doc swig/python/samples
|
|
||||||
%{python2_sitearch}/osgeo
|
|
||||||
%{python2_sitearch}/GDAL-%{version}-py*.egg-info
|
|
||||||
%{python2_sitearch}/osr.py*
|
|
||||||
%{python2_sitearch}/ogr.py*
|
|
||||||
%{python2_sitearch}/gdal*.py*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
%files -n python3-gdal
|
%files -n python3-gdal
|
||||||
%doc swig/python/README.rst
|
%doc swig/python/README.rst
|
||||||
%doc swig/python/samples
|
%doc swig/python/gdal-utils/osgeo_utils/samples
|
||||||
%{python3_sitearch}/osgeo
|
%{python3_sitearch}/GDAL-%{version}-py*.egg-info/
|
||||||
%{python3_sitearch}/GDAL-%{version}-py*.egg-info
|
%{python3_sitearch}/osgeo/
|
||||||
%{python3_sitearch}/osr.py
|
%{python3_sitearch}/osgeo_utils/
|
||||||
%{python3_sitearch}/__pycache__/osr.*.py*
|
|
||||||
%{python3_sitearch}/ogr.py
|
|
||||||
%{python3_sitearch}/__pycache__/ogr.*.py*
|
|
||||||
%{python3_sitearch}/gdal*.py
|
|
||||||
%{python3_sitearch}/__pycache__/gdal*.*.py*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python2} || %{with python3}
|
|
||||||
%files python-tools
|
%files python-tools
|
||||||
%_bindir/*.py
|
%_bindir/*.py
|
||||||
%{_mandir}/man1/pct2rgb.1*
|
%{_mandir}/man1/pct2rgb.1*
|
||||||
@ -675,7 +633,7 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc gdal_frmts ogrsf_frmts refman
|
%doc doc/build/html frmts/iso8211/iso8211_html
|
||||||
|
|
||||||
#TODO: jvm
|
#TODO: jvm
|
||||||
#Should be managed by the Alternatives system and not via ldconfig
|
#Should be managed by the Alternatives system and not via ldconfig
|
||||||
@ -686,6 +644,138 @@ popd
|
|||||||
#Or as before, using ldconfig
|
#Or as before, using ldconfig
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 04 2022 Sandro Mani <manisandro@gmail.com> - 3.3.3-1
|
||||||
|
- Update to 3.3.3
|
||||||
|
|
||||||
|
* Fri Feb 04 2022 Sandro Mani <manisandro@gmail.com> - 3.3.2-2
|
||||||
|
- Backport patch for CVE-2021-45943
|
||||||
|
|
||||||
|
* Tue Sep 07 2021 Sandro Mani <manisandro@gmail.com> - 3.3.2-1
|
||||||
|
- Update to 3.3.2
|
||||||
|
|
||||||
|
* Tue Aug 10 2021 Orion Poplawski <orion@nwra.com> - 3.3.1-5
|
||||||
|
- Rebuild for hdf5 1.10.7/netcdf 4.8.0
|
||||||
|
|
||||||
|
* Mon Aug 02 2021 Sandro Mani <manisandro@gmail.com> - 3.3.1-4
|
||||||
|
- Rebuild (poppler)
|
||||||
|
|
||||||
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 10 2021 Björn Esser <besser82@fedoraproject.org> - 3.3.1-2
|
||||||
|
- Rebuild for versioned symbols in json-c
|
||||||
|
|
||||||
|
* Mon Jul 05 2021 Sandro Mani <manisandro@gmail.com> - 3.3.1-1
|
||||||
|
- Update to 3.3.1
|
||||||
|
|
||||||
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.3.0-7
|
||||||
|
- Rebuilt for Python 3.10
|
||||||
|
|
||||||
|
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 3.3.0-6
|
||||||
|
- Perl 5.34 re-rebuild updated packages
|
||||||
|
|
||||||
|
* Fri May 21 2021 Sandro Mani <manisandro@gmail.com> - 3.3.0-5
|
||||||
|
- Rebuild (libgta)
|
||||||
|
|
||||||
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 3.3.0-4
|
||||||
|
- Perl 5.34 rebuild
|
||||||
|
|
||||||
|
* Thu May 20 2021 Richard Shaw <hobbes1069@gmail.com> - 3.3.0-3
|
||||||
|
- Rebuilding for libgta 1.2.1.
|
||||||
|
|
||||||
|
* Fri May 07 2021 Sandro Mani <manisandro@gmail.com> - 3.3.0-2
|
||||||
|
- Rebuild (gdal)
|
||||||
|
|
||||||
|
* Mon May 03 2021 Sandro Mani <manisandro@gmail.com> - 3.3.0-1
|
||||||
|
- Update to 3.3.0
|
||||||
|
|
||||||
|
* Wed Mar 24 2021 Sandro Mani <manisandro@gmail.com> - 3.2.2-1
|
||||||
|
- Update to 3.2.2
|
||||||
|
|
||||||
|
* Sun Mar 07 2021 Sandro Mani <manisandro@gmail.com> - 3.2.1-10
|
||||||
|
- Rebuild (proj)
|
||||||
|
|
||||||
|
* Tue Feb 23 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 3.2.1-9
|
||||||
|
- Fix compile against GEOS on s390x
|
||||||
|
|
||||||
|
* Sat Feb 13 2021 Sandro Mani <manisandro@gmail.com> - 3.2.1-8
|
||||||
|
- Rebuild (geos)
|
||||||
|
|
||||||
|
* Sat Feb 13 2021 Sandro Mani <manisandro@gmail.com> - 3.2.1-7
|
||||||
|
- Rebuild (geos)
|
||||||
|
|
||||||
|
* Mon Feb 08 2021 Pavel Raiskup <praiskup@redhat.com> - 3.2.1-6
|
||||||
|
- rebuild for libpq ABI fix rhbz#1908268
|
||||||
|
|
||||||
|
* Mon Feb 01 2021 Orion Poplawski <orion@nwra.com> - 3.2.1-5
|
||||||
|
- Rebuild for cfitsio 3.490
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 15 11:51:40 CET 2021 Sandro Mani <manisandro@gmail.com> - 3.2.1-3
|
||||||
|
- Rebuild (poppler)
|
||||||
|
|
||||||
|
* Tue Jan 5 18:08:07 WET 2021 José Matos <jamatos@fedoraproject.org> - 3.2.1-2
|
||||||
|
- rebuild for armadillo 10
|
||||||
|
|
||||||
|
* Mon Jan 04 2021 Sandro Mani <manisandro@gmail.coM> - 3.2.1-1
|
||||||
|
- Update to 3.2.1
|
||||||
|
|
||||||
|
* Thu Nov 05 2020 Sandro Mani <manisandro@gmail.com> - 3.2.0-1
|
||||||
|
- Update to 3.2.0
|
||||||
|
|
||||||
|
* Mon Nov 02 2020 Sandro Mani <manisandro@gmail.com> - 3.1.4-1
|
||||||
|
- Update to 3.1.4
|
||||||
|
|
||||||
|
* Wed Oct 28 2020 Jeff Law <law@redhat.com> - 3.1.3-3
|
||||||
|
- Fix missing #include for gcc-11
|
||||||
|
|
||||||
|
* Fri Oct 16 21:25:24 CEST 2020 Sandro Mani <manisandro@gmail.com> - 3.1.3-2
|
||||||
|
- Rebuild (jasper)
|
||||||
|
|
||||||
|
* Mon Sep 07 2020 Sandro Mani <manisandro@gmail.com> - 3.1.3-1
|
||||||
|
- Update to 3.1.3
|
||||||
|
|
||||||
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.2-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 22 09:48:50 GMT 2020 Sandro Mani <manisandro@gmail.com> - 3.1.2-5
|
||||||
|
- Rebuild (poppler)
|
||||||
|
|
||||||
|
* Thu Jul 16 2020 Jiri Vanek <jvanek@redhat.com> - 3.1.2-4
|
||||||
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
||||||
|
|
||||||
|
* Wed Jul 15 15:55:55 GMT 2020 Sandro Mani <manisandro@gmail.com> - 3.1.2-3
|
||||||
|
- Rebuild (poppler)
|
||||||
|
|
||||||
|
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 3.1.2-2
|
||||||
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
||||||
|
|
||||||
|
* Tue Jul 07 2020 Sandro Mani <manisandro@gmail.com> - 3.1.2-1
|
||||||
|
- Update to 3.1.2
|
||||||
|
|
||||||
|
* Tue Jun 30 2020 Sandro Mani <manisandro@gmail.com> - 3.1.1-1
|
||||||
|
- Update to 3.1.1
|
||||||
|
|
||||||
|
* Sat Jun 27 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.1.0-5
|
||||||
|
- Perl 5.32 re-rebuild updated packages
|
||||||
|
|
||||||
|
* Fri Jun 26 2020 Orion Poplawski <orion@nwra.com> - 3.1.0-4
|
||||||
|
- Rebuild for hdf5 1.10.6
|
||||||
|
|
||||||
|
* Thu Jun 25 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.1.0-3
|
||||||
|
- Perl 5.32 rebuild
|
||||||
|
|
||||||
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-2
|
||||||
|
- Rebuilt for Python 3.9
|
||||||
|
|
||||||
|
* Tue May 12 2020 Sandro Mani <manisandro@gmail.com> - 3.1.0-1
|
||||||
|
- Update to 3.1.0
|
||||||
|
|
||||||
|
* Sat May 09 2020 Markus Neteler <neteler@mundialis.de> - 3.0.4-5
|
||||||
|
* disabled JAVA and LaTeX support for EPEL8, due to (yet) missing dependencies
|
||||||
|
|
||||||
* Wed Apr 22 2020 Björn Esser <besser82@fedoraproject.org> - 3.0.4-4
|
* Wed Apr 22 2020 Björn Esser <besser82@fedoraproject.org> - 3.0.4-4
|
||||||
- Re-enable annobin
|
- Re-enable annobin
|
||||||
|
|
||||||
|
12
gdal_autoconf270.patch
Normal file
12
gdal_autoconf270.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -rupN --no-dereference gdal-3.3.2-fedora/m4/lib-link.m4 gdal-3.3.2-fedora-new/m4/lib-link.m4
|
||||||
|
--- gdal-3.3.2-fedora/m4/lib-link.m4 2021-09-01 11:49:49.000000000 +0200
|
||||||
|
+++ gdal-3.3.2-fedora-new/m4/lib-link.m4 2021-09-07 12:51:19.228928933 +0200
|
||||||
|
@@ -108,8 +108,6 @@ dnl acl_hardcode_direct,
|
||||||
|
dnl acl_hardcode_minus_L.
|
||||||
|
AC_DEFUN([AC_LIB_RPATH],
|
||||||
|
[
|
||||||
|
- dnl Tell automake >= 1.10 to complain if config.rpath is missing.
|
||||||
|
- m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
|
||||||
|
AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
|
||||||
|
AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
|
||||||
|
AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
|
@ -1,7 +1,7 @@
|
|||||||
diff -rupN --no-dereference gdal-3.0.4-fedora/apps/GNUmakefile gdal-3.0.4-fedora-new/apps/GNUmakefile
|
diff -rupN --no-dereference gdal-3.3.2-fedora/apps/GNUmakefile gdal-3.3.2-fedora-new/apps/GNUmakefile
|
||||||
--- gdal-3.0.4-fedora/apps/GNUmakefile 2020-01-28 11:13:12.000000000 +0100
|
--- gdal-3.3.2-fedora/apps/GNUmakefile 2021-09-01 11:48:27.000000000 +0200
|
||||||
+++ gdal-3.0.4-fedora-new/apps/GNUmakefile 2020-03-03 23:17:41.032487778 +0100
|
+++ gdal-3.3.2-fedora-new/apps/GNUmakefile 2021-09-07 12:51:18.318930754 +0200
|
||||||
@@ -216,6 +216,7 @@ gdal-config-inst: gdal-config.in ../GDAL
|
@@ -233,6 +233,7 @@ gdal-config-inst: gdal-config.in ../GDAL
|
||||||
|
|
||||||
install: default
|
install: default
|
||||||
for f in $(BIN_LIST) ; do $(INSTALL) $$f $(DESTDIR)$(INST_BIN) ; done
|
for f in $(BIN_LIST) ; do $(INSTALL) $$f $(DESTDIR)$(INST_BIN) ; done
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
diff -rupN gdal-3.0.4-fedora/frmts/iso8211/GNUmakefile gdal-3.0.4-fedora-new/frmts/iso8211/GNUmakefile
|
diff -rupN --no-dereference gdal-3.3.2-fedora/frmts/iso8211/GNUmakefile gdal-3.3.2-fedora-new/frmts/iso8211/GNUmakefile
|
||||||
--- gdal-3.0.4-fedora/frmts/iso8211/GNUmakefile 2020-01-28 11:13:11.000000000 +0100
|
--- gdal-3.3.2-fedora/frmts/iso8211/GNUmakefile 2021-09-01 11:48:27.000000000 +0200
|
||||||
+++ gdal-3.0.4-fedora-new/frmts/iso8211/GNUmakefile 2020-02-06 00:24:10.382117696 +0100
|
+++ gdal-3.3.2-fedora-new/frmts/iso8211/GNUmakefile 2021-09-07 12:51:17.869931658 +0200
|
||||||
@@ -23,8 +23,7 @@ dist-clean: clean
|
@@ -23,8 +23,7 @@ dist-clean: clean
|
||||||
rm -rf $(DISTDIR)
|
rm -rf $(DISTDIR)
|
||||||
|
|
||||||
|
112
gdal_java.patch
Normal file
112
gdal_java.patch
Normal file
@ -0,0 +1,112 @@
|
|||||||
|
diff -rupN --no-dereference gdal-3.3.2-fedora/swig/java/add_javadoc.c gdal-3.3.2-fedora-new/swig/java/add_javadoc.c
|
||||||
|
--- gdal-3.3.2-fedora/swig/java/add_javadoc.c 2021-09-01 11:48:29.000000000 +0200
|
||||||
|
+++ gdal-3.3.2-fedora-new/swig/java/add_javadoc.c 2021-09-07 12:51:17.389932633 +0200
|
||||||
|
@@ -133,22 +133,22 @@ int main(int argc, char* argv[])
|
||||||
|
FILE* fDst;
|
||||||
|
JavaDocInstance* instances = (JavaDocInstance*)calloc(sizeof(JavaDocInstance), 3000);
|
||||||
|
int nInstances = 0;
|
||||||
|
- char szLine[256];
|
||||||
|
- char szClass[256];
|
||||||
|
+ char szLine[512];
|
||||||
|
+ char szClass[512];
|
||||||
|
char javadoc[16384];
|
||||||
|
szClass[0] = 0;
|
||||||
|
- while(fgets(szLine, 255, fSrc))
|
||||||
|
+ while(fgets(szLine, 511, fSrc))
|
||||||
|
{
|
||||||
|
if (strstr(szLine, "/**") == NULL) continue;
|
||||||
|
begin:
|
||||||
|
strcpy(javadoc, szLine);
|
||||||
|
- while(fgets(szLine, 255, fSrc))
|
||||||
|
+ while(fgets(szLine, 511, fSrc))
|
||||||
|
{
|
||||||
|
strcat(javadoc, szLine);
|
||||||
|
if (strstr(szLine, "*/"))
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
- while(fgets(szLine, 255, fSrc))
|
||||||
|
+ while(fgets(szLine, 511, fSrc))
|
||||||
|
{
|
||||||
|
if (szLine[0] == 10)
|
||||||
|
continue;
|
||||||
|
@@ -188,10 +188,10 @@ begin:
|
||||||
|
fDst = fopen(szDstName, "wt");
|
||||||
|
if (fDst == NULL) continue;
|
||||||
|
szClass[0] = 0;
|
||||||
|
- char szPackage[256];
|
||||||
|
+ char szPackage[512];
|
||||||
|
szPackage[0] = 0;
|
||||||
|
|
||||||
|
- while(fgets(szLine, 255, fSrc))
|
||||||
|
+ while(fgets(szLine, 511, fSrc))
|
||||||
|
{
|
||||||
|
char szMethodName[1024];
|
||||||
|
char* szOriLine = strdup(szLine);
|
||||||
|
@@ -224,8 +224,10 @@ begin:
|
||||||
|
if (strstr(szLine, "synchronized "))
|
||||||
|
{
|
||||||
|
char* c = strstr(szLine, "synchronized ");
|
||||||
|
+ char rest[512];
|
||||||
|
+ strcpy(rest, c + 13);
|
||||||
|
*c = 0;
|
||||||
|
- strcat(szLine, c + 13);
|
||||||
|
+ strcat(szLine, rest);
|
||||||
|
}
|
||||||
|
if (strstr(szLine, "public") && !strstr(szLine, "native"))
|
||||||
|
{
|
||||||
|
@@ -234,7 +236,7 @@ begin:
|
||||||
|
strcpy(szMethodName, szLine);
|
||||||
|
do
|
||||||
|
{
|
||||||
|
- fgets(szLine, 255, fSrc);
|
||||||
|
+ fgets(szLine, 511, fSrc);
|
||||||
|
strcpy(szMethodName + strlen(szMethodName) - 1, szLine);
|
||||||
|
} while (!strchr(szMethodName,')'));
|
||||||
|
strcpy(szLine, szMethodName);
|
||||||
|
@@ -261,7 +263,7 @@ begin:
|
||||||
|
{
|
||||||
|
do
|
||||||
|
{
|
||||||
|
- fgets(szLine, 255, fSrc);
|
||||||
|
+ fgets(szLine, 511, fSrc);
|
||||||
|
} while (!strchr(szLine,'}'));
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
@@ -289,7 +291,7 @@ begin:
|
||||||
|
nBrackets --;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
- fgets(szLine, 255, fSrc);
|
||||||
|
+ fgets(szLine, 511, fSrc);
|
||||||
|
} while(bFoundOpen == FALSE || nBrackets > 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
diff -rupN --no-dereference gdal-3.3.2-fedora/swig/java/javadoc.java gdal-3.3.2-fedora-new/swig/java/javadoc.java
|
||||||
|
--- gdal-3.3.2-fedora/swig/java/javadoc.java 2021-09-01 11:48:29.000000000 +0200
|
||||||
|
+++ gdal-3.3.2-fedora-new/swig/java/javadoc.java 2021-09-07 12:51:17.391932629 +0200
|
||||||
|
@@ -11982,12 +11982,12 @@ public interface osrConstants:public fin
|
||||||
|
public interface osrConstants:public final static int PROJ_ERR_COORD_TRANSFM
|
||||||
|
|
||||||
|
/**
|
||||||
|
- * Invalid input coordinate. e.g a latitude > 90°.
|
||||||
|
+ * Invalid input coordinate. e.g a latitude > 90 deg.
|
||||||
|
*/
|
||||||
|
public interface osrConstants:public final static int PROJ_ERR_COORD_TRANSFM_INVALID_COORD
|
||||||
|
|
||||||
|
/**
|
||||||
|
- * Coordinate is outside of the projection domain. e.g approximate mercator with \|longitude - lon_0\| > 90°,
|
||||||
|
+ * Coordinate is outside of the projection domain. e.g approximate mercator with \|longitude - lon_0\| > 90 deg,
|
||||||
|
* or iterative convergence method failed.
|
||||||
|
*/
|
||||||
|
public interface osrConstants:public final static int PROJ_ERR_COORD_TRANSFM_OUTSIDE_PROJECTION_DOMAIN
|
||||||
|
diff -rupN --no-dereference gdal-3.3.2-fedora/swig/java/java.opt gdal-3.3.2-fedora-new/swig/java/java.opt
|
||||||
|
--- gdal-3.3.2-fedora/swig/java/java.opt 2021-09-01 11:48:26.000000000 +0200
|
||||||
|
+++ gdal-3.3.2-fedora-new/swig/java/java.opt 2021-09-07 12:51:17.392932626 +0200
|
||||||
|
@@ -7,6 +7,6 @@ JAVADOC=$(JAVA_HOME)/bin/javadoc
|
||||||
|
JAVAC=$(JAVA_HOME)/bin/javac
|
||||||
|
JAVA=$(JAVA_HOME)/bin/java
|
||||||
|
JAR=$(JAVA_HOME)/bin/jar
|
||||||
|
-JAVA_INCLUDE=-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
|
||||||
|
+JAVA_INCLUDE=-I/usr/lib/jvm/java/include/ -I/usr/lib/jvm/java/include/linux
|
||||||
|
|
||||||
|
|
12
gdal_no-diag-disable.patch
Normal file
12
gdal_no-diag-disable.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -rupN --no-dereference gdal-3.3.2-fedora/configure.ac gdal-3.3.2-fedora-new/configure.ac
|
||||||
|
--- gdal-3.3.2-fedora/configure.ac 2021-09-01 11:48:27.000000000 +0200
|
||||||
|
+++ gdal-3.3.2-fedora-new/configure.ac 2021-09-07 12:51:19.001929383 +0200
|
||||||
|
@@ -64,7 +64,7 @@ dnl warning #2304: non-explicit construc
|
||||||
|
dnl warning #3280: declaration hides member
|
||||||
|
dnl remark #11074: Inlining inhibited by limit max-size
|
||||||
|
dnl remark #11076: To get full report use -qopt-report=4 -qopt-report-phase ipo
|
||||||
|
-AX_CHECK_COMPILE_FLAG([-diag-disable 188,1684,2259,2304,3280,11074,11076],[C_WFLAGS="$C_WFLAGS -diag-disable 188,1684,2259,2304,3280,11074,11076" CXX_WFLAGS="$CXX_WFLAGS -diag-disable 188,1684,2259,2304,3280,11074,11076"],,[$ERROR_ON_UNKNOWN_OPTIONS])
|
||||||
|
+#AX_CHECK_COMPILE_FLAG([-diag-disable 188,1684,2259,2304,3280,11074,11076],[C_WFLAGS="$C_WFLAGS -diag-disable 188,1684,2259,2304,3280,11074,11076" CXX_WFLAGS="$CXX_WFLAGS -diag-disable 188,1684,2259,2304,3280,11074,11076"],,[$ERROR_ON_UNKNOWN_OPTIONS])
|
||||||
|
|
||||||
|
AX_CHECK_COMPILE_FLAG([-Wextra],[C_WFLAGS="$C_WFLAGS -Wextra" CXX_WFLAGS="$CXX_WFLAGS -Wextra"],,[$ERROR_ON_UNKNOWN_OPTIONS])
|
||||||
|
AX_CHECK_COMPILE_FLAG([-Winit-self],[C_WFLAGS="$C_WFLAGS -Winit-self" CXX_WFLAGS="$CXX_WFLAGS -Winit-self"],,[$ERROR_ON_UNKNOWN_OPTIONS])
|
12
gdal_nopdf.patch
Normal file
12
gdal_nopdf.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -rupN --no-dereference gdal-3.3.2-fedora/doc/source/index.rst gdal-3.3.2-fedora-new/doc/source/index.rst
|
||||||
|
--- gdal-3.3.2-fedora/doc/source/index.rst 2021-09-01 11:48:26.000000000 +0200
|
||||||
|
+++ gdal-3.3.2-fedora-new/doc/source/index.rst 2021-09-07 12:51:18.542930304 +0200
|
||||||
|
@@ -4,8 +4,6 @@ GDAL
|
||||||
|
|
||||||
|
.. include:: ./about_no_title.rst
|
||||||
|
|
||||||
|
-This documentation is also available as a `PDF file <gdal.pdf>`_.
|
||||||
|
-
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 2
|
||||||
|
|
12
gdal_sphinx.patch
Normal file
12
gdal_sphinx.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -rupN --no-dereference gdal-3.3.2-fedora/doc/Makefile gdal-3.3.2-fedora-new/doc/Makefile
|
||||||
|
--- gdal-3.3.2-fedora/doc/Makefile 2021-09-01 11:48:26.000000000 +0200
|
||||||
|
+++ gdal-3.3.2-fedora-new/doc/Makefile 2021-09-07 12:51:18.095931201 +0200
|
||||||
|
@@ -2,7 +2,7 @@
|
||||||
|
#
|
||||||
|
|
||||||
|
# You can set these variables from the command line.
|
||||||
|
-SPHINXOPTS ?= --keep-going -j auto -W
|
||||||
|
+SPHINXOPTS ?= --keep-going
|
||||||
|
SPHINXBUILD = sphinx-build
|
||||||
|
SOURCEDIR = source
|
||||||
|
BUILDDIR = build
|
@ -1,24 +1,24 @@
|
|||||||
diff -rupN --no-dereference gdal-3.0.4-fedora/frmts/dods/GNUmakefile gdal-3.0.4-fedora-new/frmts/dods/GNUmakefile
|
diff -rupN --no-dereference gdal-3.3.2-fedora/frmts/dods/GNUmakefile gdal-3.3.2-fedora-new/frmts/dods/GNUmakefile
|
||||||
--- gdal-3.0.4-fedora/frmts/dods/GNUmakefile 2020-01-28 11:13:11.000000000 +0100
|
--- gdal-3.3.2-fedora/frmts/dods/GNUmakefile 2021-09-01 11:48:26.000000000 +0200
|
||||||
+++ gdal-3.0.4-fedora-new/frmts/dods/GNUmakefile 2020-02-06 00:23:36.543285168 +0100
|
+++ gdal-3.3.2-fedora-new/frmts/dods/GNUmakefile 2021-09-07 12:51:17.636932131 +0200
|
||||||
@@ -4,7 +4,7 @@ include ../../GDALmake.opt
|
@@ -4,7 +4,7 @@ include ../../GDALmake.opt
|
||||||
|
|
||||||
OBJ = dodsdataset2.o
|
OBJ = dodsdataset2.o
|
||||||
|
|
||||||
-CPPFLAGS := $(CPPFLAGS) $(DODS_INC)
|
-CPPFLAGS := $(CPPFLAGS) $(DODS_INC) $(LIBXML2_INC)
|
||||||
+CPPFLAGS := $(CPPFLAGS) $(DODS_INC) -I/usr/include/tirpc
|
+CPPFLAGS := $(CPPFLAGS) $(DODS_INC) $(LIBXML2_INC) -I/usr/include/tirpc
|
||||||
|
|
||||||
default: $(OBJ:.o=.$(OBJ_EXT))
|
default: $(OBJ:.o=.$(OBJ_EXT))
|
||||||
|
|
||||||
diff -rupN --no-dereference gdal-3.0.4-fedora/ogr/ogrsf_frmts/dods/GNUmakefile gdal-3.0.4-fedora-new/ogr/ogrsf_frmts/dods/GNUmakefile
|
diff -rupN --no-dereference gdal-3.3.2-fedora/ogr/ogrsf_frmts/dods/GNUmakefile gdal-3.3.2-fedora-new/ogr/ogrsf_frmts/dods/GNUmakefile
|
||||||
--- gdal-3.0.4-fedora/ogr/ogrsf_frmts/dods/GNUmakefile 2020-01-28 11:13:11.000000000 +0100
|
--- gdal-3.3.2-fedora/ogr/ogrsf_frmts/dods/GNUmakefile 2021-09-01 11:48:27.000000000 +0200
|
||||||
+++ gdal-3.0.4-fedora-new/ogr/ogrsf_frmts/dods/GNUmakefile 2020-02-06 00:23:36.543285168 +0100
|
+++ gdal-3.3.2-fedora-new/ogr/ogrsf_frmts/dods/GNUmakefile 2021-09-07 12:51:17.636932131 +0200
|
||||||
@@ -5,7 +5,7 @@ include ../../../GDALmake.opt
|
@@ -5,7 +5,7 @@ include ../../../GDALmake.opt
|
||||||
OBJ = ogrdodsdriver.o ogrdodsdatasource.o ogrdodslayer.o \
|
OBJ = ogrdodsdriver.o ogrdodsdatasource.o ogrdodslayer.o \
|
||||||
ogrdodssequencelayer.o ogrdodsfielddefn.o ogrdodsgrid.o
|
ogrdodssequencelayer.o ogrdodsfielddefn.o ogrdodsgrid.o
|
||||||
|
|
||||||
-CPPFLAGS := -I.. $(CPPFLAGS) $(DODS_INC) -DDO_NOT_USE_DEBUG_BOOL
|
-CPPFLAGS := -I.. $(CPPFLAGS) $(DODS_INC) $(LIBXML2_INC) -DDO_NOT_USE_DEBUG_BOOL
|
||||||
+CPPFLAGS := -I.. $(CPPFLAGS) $(DODS_INC) -DDO_NOT_USE_DEBUG_BOOL -I/usr/include/tirpc
|
+CPPFLAGS := -I.. $(CPPFLAGS) $(DODS_INC) $(LIBXML2_INC) -DDO_NOT_USE_DEBUG_BOOL -I/usr/include/tirpc
|
||||||
|
|
||||||
default: $(O_OBJ:.o=.$(OBJ_EXT))
|
default: $(O_OBJ:.o=.$(OBJ_EXT))
|
||||||
|
|
||||||
|
4
sources
4
sources
@ -1,2 +1,2 @@
|
|||||||
SHA512 (gdal-3.0.4-fedora.tar.xz) = f880a763cbf3e846789df4c45a68be11121fdc66252dab126d95b79141589435ef7712ed0efcb7d633643f2c82cde88f9663bb15b624e69f362ed2e10a79a110
|
SHA512 (gdalautotest-3.3.3.tar.gz) = 942cc4a87653602e718f335bbdd80727475655e1e2a1993fda51df73a8ba5492c8fa365e0c3b61ee4a88d5044922065bf07247597798231d7e11a84249ed52b6
|
||||||
SHA512 (gdalautotest-3.0.4.tar.gz) = d205c6eba1c68ade3cd55b9ae77c9a885f1ff87f6964ea4e71799bc98393ddcf92081a5319afd3d0d9d0cf8862d140eb59ad2ccf7e70a955cad2732f55c28e72
|
SHA512 (gdal-3.3.3-fedora.tar.xz) = baed4740df4dc113c42041d71ab2857b567988cac2a0fade546931c3b2eff307685a14d07e39dc12cd1ef37faf4286a5ed1cf835ab201f3546c8963fcc57b261
|
||||||
|
Loading…
Reference in New Issue
Block a user