File ft2play.spec of Package ft2play

#
# spec file for package ft2play
#
# Copyright (c) 2021 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/
#


%define gitlong e997a5c523f5a55d330e0dcf613af9c11d2bbe58
%define gitshort 20210713.%(g=%{gitlong}; echo ${g:0:7})
Name:           ft2play
Version:        git%{gitshort}
Release:        0
Summary:        Bit-accurate C port of Fasttracker's XM replayer
License:        BSD-3-Clause
Group:          Productivity/Multimedia/Sound/Editors and Convertors
URL:            https://github.com/8bitbubsy/%{name}
Source:         %{url}/archive/%{gitlong}/%{name}-%{version}.tar.gz
Source1:        %{name}.changes
# Create CMakeLists.txt -- Arachnos
Patch0:         0001-Create-CMakeLists.txt.patch
BuildRequires:  cmake >= 3.7
BuildRequires:  libSDL2-devel

%description
Bit-accurate C port of Fasttracker's XM replayer (SB16/WAV render mode).
This is a direct port of the original asm/Pascal source codes.

%prep
%setup -qn %{name}-%{gitlong}
%autopatch -p1

%build
%cmake
%cmake_build

%install
%cmake_install

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by