File vgmplay.spec of Package vgmplay
#
# spec file for package vgmplay
#
# Copyright (c) 2023, Martin Hauke <mardnh@gmx.de>
#
# 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: vgmplay
Version: 0.40.9+git20211016
Release: 0
Summary: VGM (Video Game Music) file player for the command-line
License: BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.1-or-later AND Zlib AND Apache-2.0
Group: Productivity/Multimedia/Sound/Players
URL: https://github.com/vgmrips/vgmplay
Source: %{name}-%{version}.tar.xz
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: xdg-utils
BuildRequires: pkgconfig(ao)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(zlib)
%description
VGM (Video Game Music) is a sample-accurate sound logging format for
many machines and sound chips. It logs the commands sent to the
sound chips, so the resulting files are much smaller than mp3s.
The normal extension is .vgm but files can also be gzip compressed
into .vgz files.
VGMPlay is the official player for all VGM files.
%prep
%setup -q
%build
%make_build -C VGMPlay
%install
install -d %{buildroot}%{_bindir}
%make_install -C VGMPlay DESTDIR=%{buildroot} PREFIX=%{_prefix}
make play_install -C VGMPlay DESTDIR=%{buildroot} PREFIX=%{_prefix}
for i in 32 64 128 ; do
install -Dm 0644 VGMPlay/xdg/icons/vgmplay-${i}.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
done
install -Dm 0644 VGMPlay/xdg/vgmplay-mime.xml %{buildroot}%{_datadir}/mime/packages/vgmplay-mime.xml
sed 's|%{_prefix}/local/bin/vgmplay|%{_bindir}/vgmplay|g' -i VGMPlay/xdg/vgmplay.desktop
install -Dm 0644 VGMPlay/xdg/vgmplay.desktop %{buildroot}%{_datadir}/applications/vgmplay.desktop
%files
%license VGMPlay/licenses/{GPL.txt,List.txt,mame_license.txt}
%doc README.md VGMPlay/{VGMPlay.txt,VGMPlay_Updates.txt,vgmspec171.txt}
%{_bindir}/vgm2pcm
%{_bindir}/vgm2wav
%{_bindir}/vgmplay
%{_bindir}/vgm-player
%{_mandir}/man1/vgmplay.1%{?ext_man}
%dir %{_datadir}/vgmplay
%{_datadir}/vgmplay/vgmplay.ini
%{_datadir}/applications/vgmplay.desktop
%{_datadir}/mime/packages/vgmplay-mime.xml
%{_datadir}/icons/hicolor/*x*/apps/vgmplay.png
%changelog