%bcond ffmpeg-local 1 ##%%global __brp_check_rpaths %{nil} # /usr/bin/openmw-cs contains an invalid runpath %global git_date 20251011 %global git_hash c75aed5175 %global rel 1 %global git_ver 0.51.0 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz ExclusiveArch: %{x86_64} %{arm64} Name: openmw Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: Unofficial open source engine re-implementation of the game Morrowind License: GPLv3 and MIT and zlib URL: https://openmw.org Source0: %{url}/%{src_name} ## Fix qt build patch Patch3: 4941.patch BuildRequires: cmake3 git make gcc-c++ ccache wget BuildRequires: bullet-devel BuildRequires: desktop-file-utils BuildRequires: libblkid-devel BuildRequires: libmpg123-devel BuildRequires: libsndfile-devel BuildRequires: libXt-devel BuildRequires: mygui-devel BuildRequires: openal-soft-devel BuildRequires: openexr-devel BuildRequires: qt6-qtbase-devel BuildRequires: SDL2-devel BuildRequires: tinyxml-devel %if %{with ffmpeg-local} BuildRequires: ffmpeg-devel %else BuildRequires: ffmpeg-free-devel %endif BuildRequires: unshield-devel unshield BuildRequires: libappstream-glib BuildRequires: OpenSceneGraph-OMW-devel OpenThreads-OMW-devel BuildRequires: gtest-devel BuildRequires: gmock-devel BuildRequires: tango-icon-theme BuildRequires: dejavu-lgc-sans-mono-fonts BuildRequires: lz4-devel BuildRequires: python3-devel BuildRequires: luajit-devel BuildRequires: sqlite-devel BuildRequires: yaml-cpp-devel BuildRequires: recastnavigation-devel BuildRequires: pkgconfig(zlib) BuildRequires: qt6-qttools-devel BuildRequires: qt6-qtsvg-devel Requires: dejavu-lgc-sans-mono-fonts Requires: tango-icon-theme Provides: bundled(sol3) # There are two fonts we do not package that are provided by OpenMW. These are fonts specific to OpenMW. Provides: bundled(fonts(MysticCards)) Provides: bundled(fonts(DemonicLetters)) %description OpenMW is a new engine for 2002's Game of the Year, The Elder Scrolls 3: Morrowind. It aims to be a fully playable (and improved!), open source implementation of the game's engine and functionality. You will still need the original game data to play OpenMW. %package cs Summary: Construction Set for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description cs Construction Set for %{name} %package tools Summary: Utility programs for OpenMW. Requires: %{name}%{?_isa} = %{version}-%{release} %description tools Various utility tools for developing and debugging with OpenMW %prep %autosetup -p1 -n %{name} %build %cmake -DGLOBAL_DATA_PATH:PATH=%{_datadir} \ -DUSE_SYSTEM_TINYXML=TRUE \ -DBUILD_OPENCS=ON \ -DBUILD_LAUNCHER=ON \ -DBUILD_WIZARD=ON \ -DBUILD_MWINIIMPORTER=ON \ -DBUILD_ESSIMPORTER=ON \ -DBUILD_BSATOOL=ON \ -DBUILD_ESMTOOL=ON \ -DBUILD_NIFTEST=ON \ -DOPENMW_USE_SYSTEM_RECASTNAVIGATION=ON \ -DOPENMW_USE_SYSTEM_MYGUI=ON \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DDEPLOY_QT_TRANSLATIONS=OFF \ -DOPENMW_USE_SYSTEM_OSG=ON \ -DOPENMW_USE_SYSTEM_BULLET=ON \ -DOPENMW_LTO_BUILD=ON \ -DBUILD_OPENMW_TESTS:BOOL=OFF %cmake_build %install %cmake_install rm %{buildroot}%{_datadir}/openmw/resources/vfs/fonts/DejaVuLGCSansMono.ttf # Symlink system dejavu font ln -sr %{buildroot}%{_datadir}/fonts/dejavu-lgc-sans-mono-fonts/DejaVuLGCSansMono.ttf %{buildroot}%{_datadir}/openmw/resources/vfs/fonts/DejaVuLGCSansMono.ttf %check desktop-file-validate %{buildroot}%{_datadir}/applications/org.openmw.launcher.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/org.openmw.cs.desktop # OpenMW's provided unit tests #./%{_vpath_builddir}/openmw-tests # %files %license LICENSE %doc README.md %doc AUTHORS.md %doc CHANGELOG.md %dir %{_sysconfdir}/openmw %dir %{_datadir}/openmw %dir %{_datadir}/openmw/resources %dir %{_datadir}/openmw/resources/vfs %dir %{_datadir}/openmw/resources/vfs/fonts %{_bindir}/openmw %{_bindir}/openmw-launcher %{_bindir}/openmw-bulletobjecttool %{_bindir}/openmw-iniimporter %{_bindir}/openmw-essimporter %{_bindir}/openmw-navmeshtool %{_bindir}/openmw-wizard %{_datadir}/pixmaps/openmw.png %{_datadir}/applications/org.openmw.launcher.desktop %{_datadir}/openmw/resources/openmw.png %{_datadir}/openmw/resources/defaultfilters %{_datadir}/openmw/resources/version %{_datadir}/openmw/resources/lua_api %{_datadir}/openmw/resources/lua_libs %{_datadir}/openmw/resources/shaders %{_datadir}/openmw/resources/translations %{_datadir}/openmw/resources/vfs-mw %{_datadir}/openmw/resources/vfs/builtin.omwscripts %{_datadir}/openmw/resources/vfs/animations %{_datadir}/openmw/resources/vfs/l10n %{_datadir}/openmw/resources/vfs/mygui %{_datadir}/openmw/resources/vfs/openmw_aux %{_datadir}/openmw/resources/vfs/scripts %{_datadir}/openmw/resources/vfs/shaders %{_datadir}/openmw/resources/vfs/textures %{_datadir}/openmw/resources/vfs/fonts/DejaVuLGCSansMono.ttf %{_datadir}/openmw/resources/vfs/fonts/DejaVuFontLicense.txt %{_datadir}/openmw/resources/vfs/fonts/DejaVuLGCSansMono.omwfont %{_datadir}/openmw/resources/vfs/fonts/DemonicLettersFontLicense.txt %{_datadir}/openmw/resources/vfs/fonts/DemonicLetters.omwfont %{_datadir}/openmw/resources/vfs/fonts/DemonicLetters.ttf %{_datadir}/openmw/resources/vfs/fonts/MysticCardsFontLicense.txt %{_datadir}/openmw/resources/vfs/fonts/MysticCards.omwfont %{_datadir}/openmw/resources/vfs/fonts/MysticCards.ttf %{_datadir}/metainfo/openmw.appdata.xml %{_sysconfdir}/openmw/defaults.bin %{_sysconfdir}/openmw/defaults-cs.bin %{_sysconfdir}/openmw/gamecontrollerdb.txt %{_sysconfdir}/openmw/openmw.cfg %files cs %{_bindir}/%{name}-cs %{_datadir}/applications/org.openmw.cs.desktop %{_datadir}/pixmaps/%{name}-cs.png %files tools %{_bindir}/bsatool %{_bindir}/esmtool %{_bindir}/niftest %changelog %autochangelog