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

RPM kbfx: update packaging for TDE master

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

Original commits represented: 3.

Signed-off-by: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
---
 redhat/applications/system/kbfx/kbfx.spec | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/redhat/applications/system/kbfx/kbfx.spec b/redhat/applications/system/kbfx/kbfx.spec
index 849735a3c..7865d451b 100644
--- a/redhat/applications/system/kbfx/kbfx.spec
+++ b/redhat/applications/system/kbfx/kbfx.spec
@@ -88,7 +88,6 @@ BuildRequires:	gamin-devel
 %endif
 
 # PCRE support
-BuildRequires:	pcre-devel
 
 # ACL support
 %if 0%{?mdkver}
@@ -145,11 +144,6 @@ if [ -d "/usr/X11R6" ]; then
   export RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -I/usr/X11R6/include -L/usr/X11R6/%{_lib}"
 fi
 
-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}" \
@@ -172,8 +166,7 @@ fi
   -DUSE_STRIGI=OFF \
   -DUSE_MENUDRAKE=OFF \
   -DBUILD_DOC=ON \
-  -DBUILD_ALL=ON \
-  ..
+  -DBUILD_ALL=ON
 
 # Not SMP safe !
 %__make
@@ -186,7 +179,7 @@ export PATH="%{tde_bindir}:${PATH}"
 
 # Updates applications categories for openSUSE
 %if 0%{?suse_version}
-%suse_update_desktop_file -G "KBFX Configuration Utility" kbfxconfigapp -r KDE Utility DesktopUtility
+%suse_update_desktop_file -G "KBFX Configuration Utility" %{buildroot}%{tde_tdeappdir}/kbfxconfigapp.desktop -r KDE Utility DesktopUtility
 %suse_update_desktop_file %{buildroot}%{tde_datadir}/apps/konqueror/servicemenus/kbfx_prepare_theme.desktop
 %suse_update_desktop_file %{buildroot}%{tde_datadir}/apps/konqueror/servicemenus/kbfx_install_theme.desktop
 %suse_update_desktop_file %{buildroot}%{tde_datadir}/apps/kicker/applets/kbfxspinx.desktop
@@ -237,6 +230,8 @@ export PATH="%{tde_bindir}:${PATH}"
 %lang(it) %{tde_datadir}/locale/it/LC_MESSAGES/kbfxconfigapp.mo
 %lang(nl) %{tde_datadir}/locale/nl/LC_MESSAGES/kbfxconfigapp.mo
 %lang(ru) %{tde_datadir}/locale/ru/LC_MESSAGES/kbfxconfigapp.mo
+%lang(pt_BR) %{tde_datadir}/locale/pt_BR/LC_MESSAGES/kbfxconfigapp.mo
+%lang(zh_Hans) %{tde_datadir}/locale/zh_Hans/LC_MESSAGES/kbfxconfigapp.mo
 %{tde_datadir}/mimelnk/application/x-kbfxtheme.desktop
 
 
-- 
cgit v1.2.3

