File mingw64-dhewm3.spec of Package mingw64-dhewm3
#
# spec file for package mingw64-dhewm3
#
# Copyright (c) 2024, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define realname dhewm3
Name: mingw64-%{realname}
Version: 1.5.3
Release: 0
Summary: DOOM 3 source port
License: GPL-3.0-only
URL: https://dhewm3.org/
Source: https://github.com/dhewm/%{realname}/archive/%{version}.tar.gz#/%{realname}-%{version}.tar.gz
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-libSDL2-devel
BuildRequires: mingw64-openal-soft-devel
BuildRequires: mingw64-libcurl-devel
BuildRequires: mingw64-zlib-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
dhewm3 is a DOOM 3 GPL source port.
Unlike the original DOOM 3, dhewm3 uses:
- SDL for low level OS support, OpenGL and input handling
- OpenAL for audio output, all OS specific audio backends are gone
- OpenAL EFX for EAX reverb effects
- Better support for widescreen (and arbitrary display resolutions)
%_mingw64_debug_package
%prep
%setup -q -n %{realname}-%{version}
%build
cd neo
# CMAKE_SYSTEM_PROCESSOR is not automatically defined when cross-compiling
%{_mingw64_cmake} -DCMAKE_SYSTEM_PROCESSOR=x86_64
%{_mingw64_cmake_build}
%install
install -Dm 0755 neo/build/dhewm3.exe %{buildroot}/%{_mingw64_libexecdir}/dhewm3/dhewm3.exe
install -Dm 0755 neo/build/base.dll %{buildroot}/%{_mingw64_libexecdir}/dhewm3/base.dll
install -Dm 0755 neo/build/d3xp.dll %{buildroot}/%{_mingw64_libexecdir}/dhewm3/d3xp.dll
%check
%files
%doc README.md Changelog.md Configuration.md
%license COPYING.txt
%dir %{_mingw64_libexecdir}
%dir %{_mingw64_libexecdir}/dhewm3
%{_mingw64_libexecdir}/dhewm3/dhewm3.exe
%{_mingw64_libexecdir}/dhewm3/base.dll
%{_mingw64_libexecdir}/dhewm3/d3xp.dll
%changelog