File klystrack.spec of Package klystrack

#
# spec file for package klystrack
#
# 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/
#


Name:           klystrack
Version:        1.7.6+git12.fe6e746
Release:        0
Summary:        A chiptune tracker
License:        MIT
URL:            http://kometbomb.github.io/klystrack/
Source0:        https://github.com/kometbomb/klystrack/archive/refs/tags/1.7.6.tar.gz#/%{name}-%{version}.tar.gz
Patch0:         make.patch
BuildRequires:  gcc
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(alsa)

%description
Klystrack is a chiptune tracker for making chiptune-like music on a modern computer.

%prep
%setup -q
%autopatch -p0

%build
make %{?_smp_mflags}

%install
%make_install
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_datadir}/applications
install doc/klystrack.1 %{buildroot}%{_mandir}/man1/
cp icon/256x256.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/klystrack.png
cp -r examples %{buildroot}%{_datadir}/%{name}/
install linux/klystrack.desktop %{buildroot}%{_datadir}/applications/

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_usr}/lib/%{name}/
%{_mandir}/
%{_datadir}/icons/
%{_datadir}/applications/
%{_datadir}/%{name}/

%changelog
openSUSE Build Service is sponsored by