File mingw64-bstone.spec of Package mingw64-bstone

#
# spec file for package mingw64-bstone
#
# Copyright (c) 2024-2025, 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 bstone
Name:           mingw64-%{realname}
Version:        1.2.16+git20250513
Release:        0
Summary:        A source port of Blake Stone
# bstone is GPL-2.0+, but statically links GLM (MIT license), STB (public domain or MIT), and xbrz (GPL-3.0+)
License:        GPL-2.0-or-later AND MIT AND GPL-3.0-or-later
Group:          Amusements/Games/3D/Shoot
URL:            https://bibendovsky.github.io/bstone/
Source:         %{realname}-%{version}.tar.xz
BuildRequires:  mingw64-cross-cmake
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-libSDL2-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
A source port of the first-person shooter Blake Stone.

%_mingw64_debug_package

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

%build
%{_mingw64_cmake}
%make_build

%install
install -Dpm 0755 build/src/bstone/bstone.exe %{buildroot}/%{_mingw64_bindir}/bstone.exe

%files
%license LICENSE.txt "Blake Stone source code license.doc"
%doc CHANGELOG.md README.md
%{_mingw64_bindir}/bstone.exe

%changelog
openSUSE Build Service is sponsored by