File freegish.spec of Package freegish

#
# spec file for package freegish
#
# 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:           freegish
Version:        1.53+git.20221102
Release:        0
Summary:        Sticky and slick logic game
License:        CC-BY-NC-ND-3.0 AND GPL-2.0-or-later AND CC-BY-NC-SA-3.0 AND CC-BY-SA-3.0
Group:          Amusements/Games/Logic
URL:            https://github.com/freegish/freegish
Source0:        %{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE - freegish-cmake-install-music-fix-and-man-path.patch - enable music install and fixes man path
Patch0:         freegish-cmake-install-music-fix-and-man-path.patch
# PATCH-FIX-OPENSUSE - fix conflict with "bool" keyword
Patch1:         freegish-bool.patch
BuildRequires:  Mesa-devel
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  openal-soft-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(vorbis)

%description
It is a physics simulation platformer where you control a blob of tar.
It can slick and slide and jump.
There is also a multiplayer with modes like sumo wrestling and football.

This is gish engine, which was released under GPL license with free assests:
http://crypticsea.blogspot.com/2010/05/gish-open-source.html

%prep
%autosetup -p1

%build
%cmake \
  -DINSTALL_FHS=ON

%make_build

%install
%cmake_install

# rename, move and delete the installed music license file
mv music/License.txt License_music.txt
rm %{buildroot}%{_datadir}/%{name}/music/License.txt

%fdupes %{buildroot}%{_datadir}/%{name}

%files
%license COPYING.txt License.txt License_music.txt
%doc README.markdown
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/pixmaps/%{name}.xpm
%{_datadir}/icons/hicolor/*/apps/%{name}.svg
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man6/%{name}.6%{?ext_man}

%changelog
openSUSE Build Service is sponsored by