File cosmo-engine.spec of Package cosmo-engine
#
# spec file for package cosmo-engine
#
# Copyright (c) 2020, 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: cosmo-engine
Version: 0.0.0+git.20200614
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: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(SDL2_net)
BuildRequires: pkgconfig(SDL2_mixer)
%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.
%prep
%setup -q
%build
mkdir build && cd build
cmake ..
%make_build
%install
install -D -m0755 build/cosmo_engine %{buildroot}/%{_bindir}/cosmo_engine
%post
echo "Please create a directory with the original data files from the"
echo "MS-DOS game \"Cosmo's Cosmic Adventure\""
echo "You then have to run \"cosmo_engine -gamedir /path/to/gamedata/\""
%files
%license LICENSE
%doc README.md
%{_bindir}/cosmo_engine
%changelog