File meandmyshadow.spec of Package meandmyshadow

#
# spec file for package meandmyshadow
#
# 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:           meandmyshadow
Version:        0.5a
Release:        0
Summary:        Me and My Shadow is a puzzle/platform
License:        GPL-3.0-only
Group:          Amusements/Games/Action/Arcade
URL:            https://acmepjz.github.io/meandmyshadow/
Source:         https://github.com/acmepjz/meandmyshadow/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM - meandmyshadow-fix-sdl_ttf.patch - fixes compiling with SDL_ttf >= 2.24
Patch0:         meandmyshadow-fix-sdl_ttf.patch
# PATCH-FIX-UPSTREAM - meandmyshadow-fix-sdl_mixer.patch - fixes compiling with SDL_mixer >= 2.8.1
Patch1:         meandmyshadow-fix-sdl_mixer.patch
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(SDL2_gfx)
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(SDL2_ttf)
BuildRequires:  pkgconfig(libarchive)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(lua) >= 5.2
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(x11)

%description
Me and My Shadow is a free libre puzzle/platform game written by Luka Horvat.
This is the fork of the puzzle game Me and My Shadow originally at SourceForge (http://meandmyshadow.sourceforge.net/)
You try to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks and much more stand between you and the exit.
Record your moves and let your shadow mimic them to reach blocks you couldn’t reach alone.

%prep
%autosetup -p1
find . -type f -exec chmod 0644 '{}' \;

%build
export CMAKE_POLICY_VERSION_MINIMUM=3.5
cmake -DCMAKE_INSTALL_PREFIX="%{_prefix}" .
%make_build

%install
%make_install

# Remove duplicate files
rm %{buildroot}%{_datadir}/%{name}/AUTHORS

%fdupes %{buildroot}%{_datadir}

%files
%license COPYING
%doc README.md ChangeLog AUTHORS
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/icons/hicolor/
%dir %{_datadir}/icons/hicolor/*
%dir %{_datadir}/icons/hicolor/*/apps
%{_datadir}/icons/hicolor/*/apps/%{name}.png

%changelog
openSUSE Build Service is sponsored by