Name: tensy %global rtld_name se.voxelmanip.tensy Summary: Select numbers that sum to ten # tensy itself is GPL. Bundled SDL3_qoi and perlin libs are MIT. License: GPL-3.0-or-later AND MIT Version: 1.0.1 Release: 2%{?dist} URL: https://tensy.voxelmanip.se Source0: https://github.com/rollerozxa/tensy/archive/%{version}/%{name}-%{version}.tar.gz # The game tries to load assets from the same directory as the executable, # point it to a different path (configurable at build time) Patch0: %{name}--assets-path.patch BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: gcc BuildRequires: libappstream-glib BuildRequires: cmake(SDL3) BuildRequires: cmake(SDL3_mixer) BuildRequires: pkgconfig(libxmp) Requires: %{name}-data = %{version}-%{release} %description Tensy is a simple but addictive puzzle game. Your task is to match numbers such that they add up to 10. Simply click and drag with your mouse to make a selection and make sure the numbers add up to 10! %package data Summary: Data files for tensy BuildArch: noarch # Annoyingly, the full list of attributions is not stored in the source # repository and is available only on the author's website at: # https://tensy.voxelmanip.se/attribution/ License: CC0 AND CC-BY-4.0 AND GPL-3.0-or-later Requires: hicolor-icon-theme %description data This package provides data files (music, sounds, textures, et cetera) required to play Tensy. %prep %autosetup -p1 %build %cmake \ -DASSETS_PATH=%{_datadir}/%{name} \ -DFORCE_LOOSE_ASSET_LOADING=ON \ -DUSE_VENDORED_LIBS=OFF \ -DCMAKE_BUILD_TYPE=RelWithDebInfo %cmake_build %install install -m 755 -d %{buildroot}%{_bindir} install -m 755 %{__cmake_builddir}/%{name} %{buildroot}%{_bindir}/ install -m 755 -d %{buildroot}%{_datadir}/applications install -m 644 packaging/AppDir/%{name}.desktop %{buildroot}%{_datadir}/applications/%{rtld_name}.desktop install -m 755 -d %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/ install -m 644 packaging/AppDir/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/ install -m 755 -d %{buildroot}%{_metainfodir} install -m 644 packaging/%{rtld_name}.metainfo.xml %{buildroot}%{_metainfodir}/ cp -a data %{buildroot}%{_datadir}/%{name} %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{rtld_name}.desktop appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{rtld_name}.metainfo.xml %files %{_bindir}/%{name} %{_datadir}/applications/%{rtld_name}.desktop %{_metainfodir}/%{rtld_name}.metainfo.xml %files data %license LICENSE %{_datadir}/icons/hicolor/256x256/apps/%{name}.png %{_datadir}/%{name} %changelog * Sun Apr 19 2026 Artur Frenszek-Iwicki - 1.0.1-2 - Update License tags * Fri Apr 03 2026 Artur Frenszek-Iwicki - 1.0.1-1 - Initial packaging