%global debug_package %{nil} %global gituser libsidplayfp %global gitname loadtracker %global sname loadtrk Name: loadtracker Version: 1.99.6 Release: 1%{?dist} Summary: Crossplatform C64 music tracker Group: Applications/Multimedia License: GPLv2+ URL: https://github.com/%{gituser}/%{gitname} Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake desktop-file-utils dos2unix BuildRequires: SDL3-devel libresidfp-devel alsa-lib-devel BuildRequires: devscripts Obsoletes: goattracker <= 2.77 Obsoletes: goattracker-Stereo <= 2.77 %description Crossplatform C64 music tracker. A fork of goattracker2. %prep %setup -q dos2unix {AUTHORS,readme.txt} iconv --from=ISO-8859-1 --to=UTF-8 readme.txt > readme.txt.utf8 mv -f readme.txt.utf8 readme.txt sed -i 's|/icons|/pixmaps|' CMakeLists.txt %build export CFLAGS=$(echo "$CFLAGS -DNDEBUG -fdata-sections -ffunction-sections" | sed -e 's|-g |-g0 |' -e 's|-march=x86-64|-march=x86-64-v2 -fvect-cost-model=dynamic|') export CXXFLAGS=$(echo "$CXXFLAGS -DNDEBUG -fdata-sections -ffunction-sections" | sed -e 's|-g |-g0 |' -e 's|-march=x86-64|-march=x86-64-v2 -fvect-cost-model=dynamic|') export LDFLAGS=$(echo "$LDFLAGS -Wl,-s,--gc-sections") %cmake %cmake_build %install %cmake_install desktop-file-validate %{buildroot}%{_datadir}/applications/%{sname}.desktop cd %{buildroot}%{_bindir} hardening-check -v --nobranchprotection {%sname,ltreloc,ins2snd2,sngspli2} hardening-check -fv --nobranchprotection mod2sng %files %{_bindir}/* %doc AUTHORS readme.txt docs/goat_tracker_commands.pdf %license COPYING %{_datadir}/%{sname}/* %{_mandir}/man1/%{sname}.1* %{_mandir}/man1/ltreloc.1* %{_datadir}/applications/%{sname}.desktop %{_datadir}/pixmaps/%{sname}.png %changelog * Fri Sep 04 2026 samoht0 1.99.6 - update 1.99.6 - history cleanup