# Global variables for github repository %global commit0 1a0c8afc1187a0e7aa98074a63a6a360eec04b87 %global gittag0 v1.7.6 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Summary: Klystrack is a chiptune tracker for making chiptune-like music on a modern computer. Name: klystrack Version: 1.7.6 Release: 3%{?dist} License: GPL URL: https://kometbomb.github.io/klystrack/ # To get the source archive: # ./source/sh 1.7.6 Source0: klystrack.tar.gz BuildRequires: gcc gcc-c++ BuildRequires: make BuildRequires: alsa-lib-devel BuildRequires: desktop-file-utils BuildRequires: SDL2-devel BuildRequires: SDL2_gfx-devel BuildRequires: SDL2_image-devel BuildRequires: desktop-file-utils %description Klystrack is a chiptune tracker for making chiptune-like music on a modern computer. %prep %autosetup -n %{name} sed -i -e "s/-Werror//g" Makefile # Allow multiple definition of symbols sed -i -e "s/LDFLAGS :=/LDFLAGS := -z muldefs/g" Makefile # Add Fedora compile flags sed -i -e "s/CFLAGS :=/CFLAGS := \$(MYCFLAGS)/g" Makefile # Remove stripping for debug package generation sed -i -e "s/CFLAGS += -O3 -Wall -s/CFLAGS += -O3 -Wall/g" Makefile # Clean desktop file sed -i -e "s/AudioVideo;AudioVideoEditing/Audio/g" linux/klystrack.desktop %build %set_build_flags %make_build MYCFLAGS="$CFLAGS" DESTDIR=%{buildroot} PREFIX=/usr RES_PATH=/usr/share/%{name}/ CFG=release %install install -m 755 -d %{buildroot}/%{_bindir}/ cp bin.release/%{name} %{buildroot}/%{_bindir}/ cat > %{buildroot}/%{_bindir}/%{name}-jack < %{buildroot}/%{_bindir}/%{name}-pulse < 1.7.6-3 - update to 1.7.6-3 - fix spec file * Thu Apr 23 2020 Yann Collette 1.7.6-2 - update to 1.7.6-2 - fix for Fedora 32 * Wed Jul 17 2019 Yann Collette 1.7.6-1 - update to 1.7.6-1 * Mon Oct 15 2018 Yann Collette 1.7.5-1 - update for Fedora 29 * Thu Oct 4 2018 Yann Collette 1.7.5-1 - update to 1.7.5 * Fri Sep 21 2018 Yann Collette 1.7.4-1 - Initial release of spec file