File openfodder.spec of Package openfodder
#
# spec file for package openfodder
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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: openfodder
Version: 2.0.0
Release: 0
Summary: An open source port of Cannon Fodder
License: GPL-3.0-or-later
Group: Amusements/Games/Strategy/Real Time
URL: https://openfodder.com/
Source: https://github.com/segrax/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: hicolor-icon-theme
BuildRequires: libstdc++-devel
BuildRequires: llvm-clang
BuildRequires: llvm-gold
BuildRequires: pkgconfig
BuildRequires: pkgconfig(SDL2_mixer)
BuildRequires: pkgconfig(sdl2)
%description
Cannon Fodder is an action-strategy shoot 'em up game developed
by Sensible Software and published by Virgin Interactive.
The game is military-themed and based on shooting action but with
a strategy game-style control system. The player directs troops
through numerous missions, battling enemy infantry, vehicles and
installations.
This is just the engine. You need the game data files from either
the DOS Retail CD or Amiga (CD32) Retail/Format Christmas Special
or Canon Fodder Plus for Amiga Power in ~/.local/share/OpenFodder/
%prep
%autosetup
%build
%cmake
%make_jobs
%install
install -D -m0755 build/openfodder %{buildroot}/%{_bindir}/%{name}
install -D -m0644 FreeDesktop/openfodder.appdata.xml %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
install -D -m0644 FreeDesktop/openfodder.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -D -m0644 FreeDesktop/openfodder.png %{buildroot}/%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
%files
%doc README.md openfodder.ini.example
%license COPYING
%{_bindir}/%{name}
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
%changelog