File project.diff of Package gdcm
--- gdcm.changes.orig
+++ gdcm.changes
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Tue Dec 9 13:55:54 UTC 2025 - Petr Gajdos <pgajdos@suse.com>
+
+- fix build with poppler 25.10
+ https://sourceforge.net/p/gdcm/bugs/572/
+
+-------------------------------------------------------------------
Wed Jul 3 21:16:29 UTC 2024 - Christophe Marin <christophe@krop.fr>
- Force c++-20 on factory to fix build failure with poppler >= 24.05
--- gdcm.spec.orig
+++ gdcm.spec
@@ -1,7 +1,7 @@
#
# spec file for package gdcm
#
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2019-2024 Dr. Axel Braun
#
# All modifications and additions to the file contributed by third parties
@@ -140,6 +140,10 @@ rm -rf Utilities/rle
rm -rf Utilities/wxWidgets
%build
+# fix build with poppler 25.10 (https://sourceforge.net/p/gdcm/bugs/572/)
+if [ $(pkg-config --modversion poppler | sed 's:.[0-9]\+$::' | tr -d '.') -ge 2510 ]; then
+sed -i 's:getLength:size:' Applications/Cxx/{gdcminfo.cxx,gdcmpdf.cxx}
+fi
##%if 0%{?sle_version} >= 150400 && 0%{?is_opensuse}
##export CXX=g++-11
## %endif