File prototracker-modular.spec of Package prototracker-modular
# spec file for package prototracker-modular
#
# Copyright (c) 2020 Fabio Pesari
#
# 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 http://bugs.opensuse.org/
Name: prototracker-modular
Version: 0.0.5
Release: 0
Summary: Modular fork of the Prototracker chiptune tracker
License: MIT
Group: Productivity/Multimedia/Sound/Editors and Convertors
URL: https://github.com/kometbomb/prototracker-modular
Source0: %{name}-%{version}.tar.gz
Patch0: fix-assets.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc gcc-c++
BuildRequires: cmake
BuildRequires: libSDL2-devel
BuildRequires: libSDL2_image-devel
BuildRequires: libSDL2_mixer-devel
BuildRequires: libSDL2_ttf-devel
BuildRequires: portmidi-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(jack)
%description
Prototracker is a multiplatform fakebit chiptune tracker.
The editor is a fairly normal tracker. The synth is an absolutely minimal
single-oscillator synth (with 256 preset waveforms).
Macros are used to create "instruments" and also some normal channel
effects. Most keyboard shortcuts are the same as in Protracker.
%prep
%setup -q
%autopatch -p1
%build
%make_build linux
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/prototracker-modular
install -m 755 prototracker %{buildroot}%{_bindir}/prototracker-modular
cp -r assets %{buildroot}%{_datadir}/prototracker-modular
%suse_update_desktop_file -c prototracker-modular prototracker-modular "Chiptune music tracker" prototracker-modular "" AudioVideo Audio AudioVideoEditing
%files
%doc README.md MODULES.md module-ids.md doc/
%license LICENSE
%{_bindir}/prototracker-modular
%{_datadir}/prototracker-modular
%{_datadir}/applications/prototracker-modular.desktop
%changelog