File raptor.spec of Package raptor
#
# spec file for package raptor
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2021-2022, 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 https://bugs.opensuse.org/
#
Name: raptor
Version: 0.8.1+git20251002
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: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(sdl2) >= 2.0.12
Provides: bundled(textscreen)
%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.
%prep
%setup -q
sed -i 's/\r$//' README.md
%build
%cmake
%make_build
%install
install -D -m0755 build/bin/raptor %{buildroot}/%{_bindir}/%{name}
%post
echo "Please create a directory with the data files from the original Raptor Game."
echo "See %{_docdir}/raptor/README.md for details."
echo "You then have to run the raptor from this directory."
%files
%license LICENSE
%doc README.md
#%%doc *.ini
%{_bindir}/%{name}
%changelog