File zsilencer.spec of Package zsilencer
#
# spec file for package zsilencer
#
# Copyright (c) 2025 SUSE LLC
#
# 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:           zsilencer
Version:        00022
Release:        0
Summary:        Online multiplayer CTF style platformer game
License:        SUSE-Freeware
Group:          Amusements/Games/Action/Shoot
URL:            https://zsilencer.com/
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM https://github.com/zsilencer/zSILENCER/pull/2
Patch0:         modplug.patch
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(zlib)
%description
zSILENCER is a re-creation of the original Silencer game.
It requires the original game data to play.
%prep
%autosetup -p1
%build
%cmake
%cmake_build
%install
%cmake_install
%fdupes %{buildroot}%{_datadir}/zsilencer
%suse_update_desktop_file -r %{name} Game Shooter
%files
%doc README.md
%{_bindir}/zsilencer
%{_datadir}/zsilencer
%{_datadir}/applications/zsilencer.desktop
%{_datadir}/icons/hicolor/*/apps/zsilencer.png
%changelog