File mingw64-chocolate-doom.spec of Package mingw64-chocolate-doom

#
# spec file for package mingw64-chocolate-doom
#
# 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 chocolate-doom
Name:           mingw64-%{realname}
Version:        3.0.1+git20240202
Release:        0
Summary:        Conservative DOOM/Heretic/Hexen/Strife source port
License:        GPL-2.0-or-later
Group:          Amusements/Games/3D/Shoot
URL:            http://chocolate-doom.org/
#Git-Clone:     https://github.com/chocolate-doom/chocolate-doom.git
Source:         %{realname}-%{version}.tar.xz
BuildRequires:  mingw64-cross-cmake
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-libSDL2-devel
BuildRequires:  mingw64-SDL2_mixer-devel
BuildRequires:  mingw64-SDL2_net-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
Chocolate Doom is a Doom source port with focus on accurate
reproduction of the original DOS version of Doom and other games
based on the Doom engine. There are no new features, a lack of high
resolution rendering, and goes as far as to duplicate or recreate
bugs and crashes found in the DOS executable that were fixed before
the initial open-sourcing of the Doom engine.

%_mingw64_debug_package

%prep
%setup -q -n %{realname}-%{version}

%build
%{_mingw64_cmake}
%make_build

%install
for i in doom hexen heretic strife setup server; do
  install -Dpm 0755 "build/src/chocolate-$i.exe" "%{buildroot}/%{_mingw64_bindir}/chocolate-$i.exe"
done

%files
%license COPYING.md
%doc ChangeLog README*.md NEWS.md
%{_mingw64_bindir}/chocolate-*.exe

%changelog
openSUSE Build Service is sponsored by