File milkytracker.spec of Package milkytracker

#
# spec file for package milkytracker
#
# Copyright (c) 2024 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:           milkytracker
Version:        1.04.00
Release:        0
Summary:        An FT2 compatible music tracker
License:        GPL-3.0-only
Group:          Productivity/Multimedia/Sound/Utilities
URL:            https://milkytracker.org/
Source0:        https://github.com/milkytracker/MilkyTracker/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1:        milky2.png
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(liblhasa)
BuildRequires:  pkgconfig(rtmidi)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(zziplib)

%description
MilkyTracker is an multi-platform music application for creating .MOD and .XM module files.
It attempts to recreate the module replay and user experience of the popular DOS program Fasttracker II,
with special playback modes available for improved Amiga ProTracker 2/3 compatibility.

%prep
%setup -q -n MilkyTracker-%{version}

%build
%cmake
%cmake_build

%install
mkdir -p %{buildroot}%{_datadir}/{appdata,applications,pixmaps}
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/milkytracker.png
install -m644 resources/milkytracker.appdata  %{buildroot}%{_datadir}/appdata
install -m644 resources/milkytracker.desktop %{buildroot}%{_datadir}/applications

%cmake_install

%files
%license COPYING
%doc README.md
%{_bindir}/milkytracker
%{_datadir}/milkytracker/
%{_datadir}/milkytracker/songs
%dir %{_datadir}/pixmaps
%{_datadir}/pixmaps/milkytracker.png
%dir %{_datadir}/appdata
%{_datadir}/appdata/milkytracker.appdata
%dir %{_datadir}/applications
%{_datadir}/applications/milkytracker.desktop

%doc
%{_docdir}/%{name}/

%changelog
openSUSE Build Service is sponsored by