[packages/gdal] - rel 8, disable broken bindings for python and java

baggins baggins at pld-linux.org
Tue Dec 1 22:44:08 CET 2026


commit 5792b4a48a49cadeaff116022e82d438bda7065f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Dec 1 22:42:06 2026 +0100

    - rel 8, disable broken bindings for python and java

 gdal.spec | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)
---
diff --git a/gdal.spec b/gdal.spec
index 0ea826c..69f233f 100644
--- a/gdal.spec
+++ b/gdal.spec
@@ -33,7 +33,8 @@
 %bcond_with	podofo		# PDF support via podofo instead of poppler
 %bcond_without	poppler		# PDF support via poppler
 %bcond_without	xerces		# Xerces support
-%bcond_without	java		# Java and MDB support
+%bcond_with	java		# Java and MDB support
+%bcond_with	python		# Python support
 
 %if %{with podofo}
 %undefine	with_poppler
@@ -45,7 +46,7 @@ Summary:	Geospatial Data Abstraction Library
 Summary(pl.UTF-8):	Biblioteka abstrakcji danych dotyczących powierzchni Ziemi
 Name:		gdal
 Version:	3.11.3
-Release:	7
+Release:	8
 License:	BSD-like
 Group:		Libraries
 Source0:	https://github.com/OSGeo/gdal/releases/download/v%{version}/%{name}-%{version}.tar.gz
@@ -103,15 +104,17 @@ BuildRequires:	pkgconfig >= 1:0.21
 BuildRequires:	postgresql-backend-devel >= 8.1.4
 BuildRequires:	postgresql-devel >= 8.1.4
 BuildRequires:	proj-devel >= 4
-BuildRequires:	python-devel >= 1:2.5
-BuildRequires:	python-numpy-devel >= 1:1.0.0
-BuildRequires:	python-setuptools
-BuildRequires:	qhull-devel >= 2012
+%if %{with python}
+BuildRequires:	python3-devel >= 1:2.5
+BuildRequires:	python3-numpy-devel >= 1:1.0.0
+BuildRequires:	python3-setuptools
+BuildRequires:	swig-python >= 1.3
 BuildRequires:	rpm-pythonprov
+%endif
+BuildRequires:	qhull-devel >= 2012
 BuildRequires:	rpmbuild(macros) >= 2.021
 BuildRequires:	sed >= 4.0
 BuildRequires:	sqlite3-devel >= 3.0.0
-BuildRequires:	swig-python >= 1.3
 BuildRequires:	texlive-dvips
 BuildRequires:	texlive-latex
 %{?with_odbc:BuildRequires:	unixODBC-devel >= 2.2.15}
@@ -297,7 +300,6 @@ done
 	-DPython_EXECUTABLE=%{__python3} \
 	-DCMAKE_INSTALL_INCLUDEDIR:PATH=%{_includedir}/gdal \
 	-DGDAL_HIDE_INTERNAL_SYMBOLS:BOOL=ON \
-	-DBUILD_PYTHON_BINDINGS:BOOL=ON \
 	-DGDAL_USE_LIBLZMA:BOOL=ON \
 	-DGDAL_USE_SQLITE3:BOOL=ON \
 	-DGDAL_USE_WEBP:BOOL=ON \
@@ -307,6 +309,7 @@ done
 	-DJAVA_HOME=%{java_home} \
 	-DJAVA_JVM_LIBRARY:FILEPATH="$jvm_lib" \
 %endif
+	%{cmake_on_off python BUILD_PYTHON_BINDINGS} \
 	%{cmake_on_off armadillo GDAL_USE_ARMADILLO} \
 	%{cmake_on_off gta GDAL_USE_GTA} \
 	%{cmake_on_off kea GDAL_USE_KEA} \
@@ -464,6 +467,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/gdal-config.1*
 %{_libdir}/cmake/gdal
 
+%if %{with python}
 %files -n python3-gdal
 %defattr(644,root,root,755)
 %{py3_sitedir}/GDAL-*.egg-info
@@ -477,6 +481,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{py3_sitedir}/osgeo/_ogr.*.so
 %attr(755,root,root) %{py3_sitedir}/osgeo/_osr.*.so
 %{py3_sitedir}/osgeo_utils/
+%endif
 
 %files -n bash-completion-gdal
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gdal.git/commitdiff/5792b4a48a49cadeaff116022e82d438bda7065f



More information about the pld-cvs-commit mailing list