File mingw64-cosmo-engine.spec of Package mingw64-cosmo-engine
#
# spec file for package mingw64-cosmo-engine
#
# Copyright (c) 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 cosmo-engine
Name: mingw64-%{realname}
Version: 0~git20201021
Release: 0
Summary: Game engine for "Cosmo's Cosmic Adventure"
License: GPL-2.0-or-later
Group: Amusements/Games/Action/Arcade
URL: https://github.com/yuv422/cosmo-engine
#Git-Clone: https://github.com/yuv422/cosmo-engine.git
Source: %{realname}-%{version}.tar.xz
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-libSDL2-devel
BuildRequires: mingw64-SDL2_mixer-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
A game engine to play the MS-DOS game "Cosmo's Cosmic Adventure"
on modern systems. Episode 1-3 are supported.
Note: This package only includes the binary files.
You still need the data files (GOG/Steam/CD) from the original
"Cosmo's Cosmic Adventure" MS-DOS game series.
%_mingw64_debug_package
%prep
%autosetup -p1 -n %{realname}-%{version}
%build
%{_mingw64_cmake}
%{_mingw64_cmake_build}
%install
install -Dm 0755 build/cosmo_engine.exe %{buildroot}/%{_mingw64_bindir}/cosmo_engine.exe
%files
%license LICENSE
%doc README.md
%{_mingw64_bindir}/cosmo_engine.exe
%changelog