commit b733d4a08f56b975cc13b9e18c250b8247907dd8
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Thu May 30 13:57:23 2024 +0100
Move the .qm files to the expected directories
vcmi.spec | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/vcmi.spec b/vcmi.spec
index 4a68d1d..58da9d6 100644
--- a/vcmi.spec
+++ b/vcmi.spec
@@ -42,14 +42,9 @@ BuildRequires: minizip-ng-devel
BuildRequires: tbb-devel
BuildRequires: zlib-devel
BuildRequires: ffmpeg-devel
-%if 0%{?fedora} >= 39
BuildRequires: qt6-qtbase-devel
BuildRequires: qt6-qttools-devel
BuildRequires: qt6-linguist
-%else
-BuildRequires: qt5-qtbase-devel
-BuildRequires: qt5-linguist
-%endif
Requires: innoextract
Requires: hicolor-icon-theme
@@ -100,6 +95,10 @@ sed -i 's/GITDIR-NOTFOUND/%{version}/' cmake_modules/*
%global _smp_mflags -j1
%endif
%cmake_build
+# Move the .qm files to the expected directories
+mkdir %{_vpath_builddir}/{launcher,mapeditor}/translation/
+mv %{_vpath_builddir}/launcher/*.qm %{_vpath_builddir}/launcher/translation/
+mv %{_vpath_builddir}/mapeditor/*.qm %{_vpath_builddir}/mapeditor/translation/
%install