File etw.spec of Package etw
#
# spec file for package etw
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2008 oc2pus
#
# 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: etw
Version: 3.6
Release: 0
Summary: Eat the Whistle is a multi-platform 2D soccer game
License: GPL-2.0-only
Group: Amusements/Games/Other
URL: http://www.ggsoft.org/etw/
Source: http://downloads.sourceforge.net/project/etw/etw-sources/%{version}/ETW-%{version}-src.tar.gz
# PATCH-FIX-OPENSUSE - etw-fix-build.patch - add missing pthread and math linking, use std=gnu89
Patch0: etw-fix-build.patch
BuildRequires: gcc-c++
BuildRequires: gtk2-devel
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(sdl)
Requires: etw-data = %{version}
%description
Eat The Whistle is a multiplayer soccer game with a lot of unique features.
Features:
* System friendly. Run in a window or fullscreen, can be played
also on old machines (runs pefectly on a P200).
* World cup, leagues, cups with real teams (with slightly modified
names).
* Can be played through keyboard or joypad/joysticks (USB or Gameport).
* Network playing through TCP/IP (not yet finished).
* Very intuitive control method with acceleration/deceleration.
* More than 550 frames of animations for the players, 300 for the
goalkeeper, 100 for the refree and a lot of other graphics.
* 30 different fields, including muddy, frozen and wet.
* Fouls, corners, throw-in with an intuitive control system.
* Role playing. (You can play a match as the whole team or only as a player).
* About every thing in the game is configurable via intuitive menus.
* Game Tactics and tactic editor.
* Heading and other special shots with intuitive controls.
* Team players (with individual stats)
* Import SWOS (Sensible word of soccer) teams.
* Arcade mode with powerups, bonuses... (something like Speedball II).
* Replays (with load/save option).
%prep
%setup -q
%patch -P 0 -p1
%build
%make_build
%install
install -dm 755 %{buildroot}%{_libexecdir}/etw
install -m 755 %{name} %{buildroot}%{_libexecdir}/etw/%{name}.bin
install -dm 755 %{buildroot}%{_bindir}
cat > %{name} <<EOF
#!/bin/sh
cd %{_datadir}/etw
%{_libexecdir}/etw/etw.bin
EOF
install -m 755 %{name} %{buildroot}%{_bindir}
# icon
install -dm 755 %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
install -m 644 %{name}.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
%suse_update_desktop_file -i %{name} Game SportsGame
%files
%doc *.txt
%{_bindir}/etw
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/applications/*.desktop
%{_libexecdir}/etw/
%changelog