File drally.spec of Package drally
#
# spec file for package drally
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2020-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: drally
Version: 0.2+git20230428
Release: 0
Summary: A game engine for Death Rally
License: MIT
Group: Amusements/Games/Action/Arcade
URL: https://github.com/urxp/dRally
#Git-Clone: https://github.com/urxp/dRally.git
Source: %{name}-%{version}.tar.xz
BuildRequires: nasm
BuildRequires: pkgconfig
BuildRequires: pkgconfig(SDL2_net)
BuildRequires: pkgconfig(sdl2)
%description
dRally is an open source port of game engine used in the game
Death Rally from Remedy Entertainment.
This package only includes the binary files. You still need the
data files from the "Death Rally" original CD-ROM
See: %{_docdir}/drally/README.md for details.
%prep
%setup -q
%build
%make_build
%install
install -D -m0755 drally_linux %{buildroot}/%{_bindir}/%{name}
%post
echo "Please create a directory with the data files from the Death Rally original CD-ROM."
echo "See %{_docdir}/drally/README.md for the needed data files directory structure."
echo "You then have to run the drally from this directory."
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%changelog