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

RPM sip4-tqt: update packaging for TDE master

Consolidate the final validated packaging changes for sip4-tqt from the Tumbleweed build series.

Original commits represented: 2.

Signed-off-by: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
---
 redhat/dependencies/sip4-tqt/sip4-tqt.spec | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/redhat/dependencies/sip4-tqt/sip4-tqt.spec b/redhat/dependencies/sip4-tqt/sip4-tqt.spec
index 82548d12c..0e0bcdec1 100644
--- a/redhat/dependencies/sip4-tqt/sip4-tqt.spec
+++ b/redhat/dependencies/sip4-tqt/sip4-tqt.spec
@@ -63,10 +63,10 @@ License:	GPLv2+
 Prefix:		%{tde_prefix}
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-Source0:	%{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
+Source0:	%{name}-R%{tde_version}%{?preversion:~%{preversion}}.tar.gz
 
-BuildRequires:	libtqt4-devel >= %{?epoch:%{epoch}:}4.2.0
-BuildRequires:	trinity-filesystem >= %{tde_version}
+BuildRequires:	libtqt3-mt-devel >= 3.5.0
+BuildRequires:	tqt3-dev-tools >= 3.5.0
 
 BuildRequires:	gcc-c++
 
@@ -77,12 +77,18 @@ BuildRequires:  bison
 BuildRequires:	flex
 
 # PYTHON support
+%if 0%{?suse_version}
+%global python python311
+%global __python /usr/bin/python3.11
+%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
+%else
 %if "%{python}" == ""
 %global python python3
 %endif
 %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
 
@@ -102,7 +108,6 @@ specificity towards C++ and Python.
 %package -n sip4-tqt
 Summary:	Python/C++ bindings generator (Runtime Library)
 Group:		Development/Tools/Building
-Requires:	trinity-filesystem >= %{tde_version}
 Requires:	%{python}
 
 %description -n sip4-tqt
@@ -169,7 +174,7 @@ needed to develop Python bindings with sip.
 ##########
 
 %prep
-%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
+%setup -q -n %{name}-R%{tde_version}%{?preversion:~%{preversion}}
 
 
 %build
-- 
cgit v1.2.3

