From 08715cd2395c06e1724380670f1d9a13ae812d8a Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Tue, 22 Sep 2026 06:25:11 -0300
Subject: RPM pytde: update packaging for TDE master
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

RPM pytde: update packaging for TDE master

Consolidate the final validated packaging changes for pytde from the Tumbleweed build series.

Original commits represented: 2.

Signed-off-by: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
---
 redhat/libraries/pytde/pytde.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/redhat/libraries/pytde/pytde.spec b/redhat/libraries/pytde/pytde.spec
index 23c576859..4e40a44f6 100644
--- a/redhat/libraries/pytde/pytde.spec
+++ b/redhat/libraries/pytde/pytde.spec
@@ -66,9 +66,14 @@ BuildRequires:	gcc-c++
 %if "%{python}" == ""
 %global python python3
 %endif
+%if 0%{?suse_version}
+%global __python /usr/bin/python3.11
+%global python_sitearch %{_libdir}/python3.11/site-packages
+%else
 %global __python %__python3
 %global python_sitearch %{python3_sitearch}
 %{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
 BuildRequires:	%{python}
 BuildRequires:	%{python}-devel
 
@@ -169,7 +174,6 @@ tips and working code you can use to learn from.
 %build
 unset QTDIR QTINC QTLIB
 export PATH="%{tde_bindir}:${PATH}"
-export LD_RUN_PATH="%{tde_libdir}"
 
 export DH_OPTIONS
 
-- 
cgit v1.2.3

