From d185aeb39e06911d8d53f5b32334aac53cec63e0 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 twin-style-mallory: update packaging for TDE master
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

RPM twin-style-mallory: update packaging for TDE master

Consolidate the final validated packaging changes for twin-style-mallory from the Tumbleweed build series.

Original commits represented: 1.

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

diff --git a/redhat/applications/themes/twin-style-mallory/twin-style-mallory.spec b/redhat/applications/themes/twin-style-mallory/twin-style-mallory.spec
new file mode 100644
index 000000000..0bb6a4616
--- /dev/null
+++ b/redhat/applications/themes/twin-style-mallory/twin-style-mallory.spec
@@ -0,0 +1,82 @@
+#
+# spec file for package twin-style-mallory (version R14)
+#
+# Copyright (c) 2026 Trinity Desktop Environment packaging contributors
+#
+
+%define tde_epoch 2
+%if "%{?tde_version}" == ""
+%define tde_version 14.2.0
+%endif
+%define tde_pkg twin-style-mallory
+%define tde_prefix /opt/trinity
+%define tde_datadir %{tde_prefix}/share
+%define tde_libdir %{tde_prefix}/%{_lib}
+
+Name:           trinity-%{tde_pkg}
+Epoch:          %{tde_epoch}
+Version:        %{tde_version}
+Release:        %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}
+Summary:        Mallory TWin style for the Trinity Desktop Environment
+Group:          System/GUI/Other
+URL:            http://www.trinitydesktop.org/
+# Upstream CMake comments say GPLv3+, but COPYING and distributed headers
+# consistently grant GPLv2-or-later.
+License:        GPL-2.0-or-later
+Prefix:         %{tde_prefix}
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0:        %{name}-%{version}%{?preversion:~%{preversion}}.tar.gz
+
+BuildRequires:  trinity-tde-cmake >= %{tde_version}
+BuildRequires:  trinity-tdelibs-devel >= %{tde_version}
+BuildRequires:  trinity-tdebase-devel >= %{tde_version}
+BuildRequires:  gcc-c++
+BuildRequires:  pkgconfig
+BuildRequires:  gettext
+%if 0%{?suse_version}
+BuildRequires:  libtqt3-mt-devel >= 3.5.0
+BuildRequires:  tqt3-dev-tools >= 3.5.0
+%endif
+
+%description
+Mallory window decoration and color schemes for TWin in the Trinity Desktop
+Environment.
+
+%prep
+%setup -q -n %{name}-%{version}%{?preversion:~%{preversion}}
+
+%build
+unset QTDIR QTINC QTLIB
+export PATH="%{tde_prefix}/bin:${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_INSTALL_PREFIX="%{tde_prefix}" \
+  -DLIB_INSTALL_DIR="%{tde_libdir}" \
+  -DSHARE_INSTALL_PREFIX="%{tde_datadir}" \
+  -DBUILD_ALL=ON \
+  -DBUILD_COLORSCHEMES=ON \
+  -DBUILD_TCC_MODULE=ON \
+  -DBUILD_TRANSLATIONS=ON
+%cmake_build
+
+%install
+%{__rm} -rf %{buildroot}
+%cmake_install
+%find_lang %{tde_pkg}
+
+%files -f %{tde_pkg}.lang
+%defattr(-,root,root,-)
+%{tde_libdir}/trinity/twin_mallory.so
+%{tde_libdir}/trinity/twin_mallory.la
+%{tde_libdir}/trinity/twin_mallory_config.so
+%{tde_libdir}/trinity/twin_mallory_config.la
+%{tde_datadir}/apps/twin/mallory.desktop
+%{tde_datadir}/apps/tdedisplay/color-schemes/Mallory*.kcsrc
+
+%changelog
-- 
cgit v1.2.3

