Accepting request 1235085 from Application:Geo

OBS-URL: https://build.opensuse.org/request/show/1235085
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gdal?expand=0&rev=92
This commit is contained in:
Ana Guerrero 2025-01-06 15:05:36 +00:00 committed by Git OBS Bridge
commit dfe543dbd8
3 changed files with 25 additions and 1 deletions

16
19ba2562.patch Normal file
View File

@ -0,0 +1,16 @@
diff --git a/frmts/pdf/pdfsdk_headers_poppler.h b/frmts/pdf/pdfsdk_headers_poppler.h
index 00cc4067fe5b..d2a3a449d124 100644
--- a/frmts/pdf/pdfsdk_headers_poppler.h
+++ b/frmts/pdf/pdfsdk_headers_poppler.h
@@ -19,6 +19,11 @@
#ifdef HAVE_POPPLER
+// The "#define private public" hacks we do below do not play well with the
+// sstream header.
+// Cf https://github.com/conda-forge/gdal-feedstock/pull/1019#issuecomment-2528710051
+#include <sstream>
+
/* Horrible hack because there's a conflict between struct FlateDecode of */
/* include/poppler/Stream.h and the FlateDecode() function of */
/* pdfium/core/include/fpdfapi/fpdf_parser.h. */

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Jan 5 08:36:23 UTC 2025 - Bruno Friedmann <bruno@ioda-net.ch>
- Add upstream patch 19ba2562.patch to support newer poppler.
fix boo#1235083
-------------------------------------------------------------------
Thu Nov 7 09:09:26 UTC 2024 - Bruno Friedmann <bruno@ioda-net.ch>

View File

@ -1,7 +1,7 @@
#
# spec file for package gdal
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -50,6 +50,8 @@ URL: https://www.gdal.org/
Source0: https://download.osgeo.org/%{name}/%{version}/%{sourcename}-%{version}.tar.xz
Source1: https://download.osgeo.org/%{name}/%{version}/%{sourcename}-%{version}.tar.xz.md5
Source2: https://download.osgeo.org/%{name}/%{version}/%{sourcename}autotest-%{version}.tar.gz
#UPSTREAM Patch https://github.com/OSGeo/gdal/pull/11473/
Patch0: 19ba2562.patch
BuildRequires: KEALib-devel
BuildRequires: bison
BuildRequires: blas-devel