File mingw64-raptor.spec of Package mingw64-raptor
#
# spec file for package mingw64-raptor
#
# 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 raptor
Name: mingw64-%{realname}
Version: 0.8.0+git20240312
Release: 0
Summary: Source Port of the DOS game Raptor: Call of the Shadows
License: GPL-2.0-only
Group: Amusements/Games/Action/Arcade
URL: https://github.com/skynettx/raptor
#Git-Clone: https://github.com/skynettx/raptor.git
Source: %{realname}-%{version}.tar.xz
# * declare SDL2main before SDL2 to workaround compilation errors on mingw
# https://github.com/msys2/MINGW-packages/issues/10459
# * link against winmm
Patch0: fix-mingw.patch
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-libSDL2-devel
BuildRequires: mingw64-filesystem
%_mingw64_package_header_debug
BuildArch: noarch
%description
Reversed-engineered source port from Raptor: Call Of The Shadows,
developed by Cygnus Studio (now Mountain King Studios) and
released in 1994 by Apogee.
Note: This package only includes the binary files.
You still need the data files from the original
"Raptor: Call Of The Shadows" to play the game.
%_mingw64_debug_package
%prep
%setup -q -n %{realname}-%{version}
%autopatch -p1
sed -i 's/\r$//' README.md
%build
%{_mingw64_cmake}
%{_mingw64_cmake_build}
%install
install -Dm 0755 build/bin/raptor.exe %{buildroot}/%{_mingw64_bindir}/raptor.exe
%files
%license LICENSE
%doc README.md
%{_mingw64_bindir}/raptor.exe
%changelog