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

RPM tdexsldbg: update packaging for TDE master

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

Original commits represented: 1.

Signed-off-by: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
---
 .../development/tdexsldbg/tdexsldbg.spec           | 109 +++++++++++++++++++++
 1 file changed, 109 insertions(+)
 create mode 100644 redhat/applications/development/tdexsldbg/tdexsldbg.spec

diff --git a/redhat/applications/development/tdexsldbg/tdexsldbg.spec b/redhat/applications/development/tdexsldbg/tdexsldbg.spec
new file mode 100644
index 000000000..7e221fa98
--- /dev/null
+++ b/redhat/applications/development/tdexsldbg/tdexsldbg.spec
@@ -0,0 +1,109 @@
+#
+# spec file for package tdexsldbg
+#
+
+%define tde_epoch 2
+%if "%{?tde_version}" == ""
+%define tde_version 14.2.0
+%endif
+%define tde_pkg tdexsldbg
+%define tde_prefix /opt/trinity
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_tdeappdir %{tde_datadir}/applications/tde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+Name:           trinity-%{tde_pkg}
+Epoch:          %{tde_epoch}
+Version:        14.2.0
+Release:        %{?tde_version}_%{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}
+Summary:        Graphical and text XSLT debugger for TDE
+Group:          Development/Tools/Other
+URL:            https://www.trinitydesktop.org/
+License:        GPL-2.0-only
+Prefix:         %{tde_prefix}
+Source0:        trinity-%{tde_pkg}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
+
+BuildRequires:  trinity-tde-cmake >= %{tde_version}
+BuildRequires:  trinity-tdelibs-devel >= %{tde_version}
+BuildRequires:  trinity-tdebase-devel >= %{tde_version}
+BuildRequires:  libtqt3-mt-devel
+BuildRequires:  tqt3-dev-tools
+BuildRequires:  gcc-c++
+BuildRequires:  pkgconfig
+BuildRequires:  gettext
+BuildRequires:  libicu-devel
+BuildRequires:  libxml2-devel
+BuildRequires:  libxslt-devel
+BuildRequires:  readline-devel
+BuildRequires:  ncurses-devel
+
+%description
+KXSLDbg is a graphical and text-based debugger for XSLT scripts.  It can
+run as a standalone application or as an embedded TDE part.
+
+%prep
+%setup -q -n trinity-%{tde_pkg}-%{tde_version}%{?preversion:~%{preversion}}
+
+%build
+unset QTDIR QTINC QTLIB
+export PATH="%{tde_bindir}:${PATH}"
+export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
+
+if ! rpm -E %%cmake|grep -e 'cd build\|cd ${CMAKE_BUILD_DIR:-build}'; then
+  %__mkdir_p build
+  cd build
+fi
+
+%cmake \
+  -DCMAKE_BUILD_TYPE="RelWithDebInfo" \
+  -DCMAKE_C_FLAGS="${RPM_OPT_FLAGS}" \
+  -DCMAKE_CXX_FLAGS="${RPM_OPT_FLAGS}" \
+  -DCMAKE_INSTALL_PREFIX="%{tde_prefix}" \
+  -DBIN_INSTALL_DIR="%{tde_bindir}" \
+  -DLIB_INSTALL_DIR="%{tde_libdir}" \
+  -DPLUGIN_INSTALL_DIR="%{tde_tdelibdir}" \
+  -DSHARE_INSTALL_PREFIX="%{tde_datadir}" \
+  -DDOC_INSTALL_DIR="%{tde_docdir}" \
+  -DBUILD_ALL=ON \
+  -DBUILD_DOC=ON \
+  -DBUILD_TRANSLATIONS=ON \
+  -DBUILD_EXAMPLE_DATA=OFF
+
+%__make %{?_smp_mflags} || %__make
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot} -C build
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING COPYING-DOCS AUTHORS README.md
+%{tde_bindir}/kxsldbg
+%{tde_bindir}/xsldbg
+%{tde_tdelibdir}/libkxsldbgpart.la
+%{tde_tdelibdir}/libkxsldbgpart.so
+%{tde_tdeappdir}/kxsldbg.desktop
+%{tde_datadir}/applnk/.hidden/xsldbg.desktop
+%{tde_datadir}/apps/kxsldbg/
+%{tde_datadir}/apps/kxsldbgpart/
+%{tde_tdedocdir}/HTML/en/kxsldbg/
+%{tde_tdedocdir}/HTML/en/xsldbg/
+%{tde_datadir}/icons/hicolor/*/actions/1downarrow.png
+%{tde_datadir}/icons/hicolor/*/actions/configure.png
+%{tde_datadir}/icons/hicolor/*/actions/hash.png
+%{tde_datadir}/icons/hicolor/*/actions/mark.png
+%{tde_datadir}/icons/hicolor/*/actions/next.png
+%{tde_datadir}/icons/hicolor/*/actions/step.png
+%{tde_datadir}/icons/hicolor/*/actions/system-log-out.png
+%{tde_datadir}/icons/hicolor/*/actions/system-run.png
+%{tde_datadir}/icons/hicolor/*/actions/xsldbg_*.png
+%{tde_datadir}/icons/hicolor/*/apps/kxsldbg.png
+%{tde_datadir}/icons/locolor/*/apps/kxsldbg.png
+%{tde_datadir}/services/kxsldbg_part.desktop
+%{tde_mandir}/man1/kxsldbg.1*
-- 
cgit v1.2.3

