File ultrastar-deluxe.spec of Package ultrastar-deluxe
#
# spec file for package ultrastar-deluxe
#
# Copyright (c) 2022 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: ultrastar-deluxe
Version: 2020.4.0
Release: 0
Summary: Karaoke game
License: GPL-2.0-only
Group: Amusements/Games/Action/Other
URL: https://usdx.eu/
Source: https://github.com/UltraStar-Deluxe/USDX/archive/refs/tags/v%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/UltraStar-Deluxe/USDX/pull/523
Patch0: static-virtual.patch
# PATCH-FIX-UPSTREAM https://github.com/UltraStar-Deluxe/USDX/pull/583/
Patch1: ffmpeg-4.3.patch
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: fpc
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: portaudio-devel
BuildRequires: portmidi-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(SDL2_image)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(lua5.3)
BuildRequires: pkgconfig(opencv)
BuildRequires: pkgconfig(sqlite3)
%description
UltraStar Deluxe (USDX) is karaoke game. It allows up to six players
to sing along with music using microphones in order to score points,
depending on the pitch of the voice and the rhythm of singing.
%prep
%autosetup -n USDX-%{version} -p1
%build
./autogen.sh
%configure
make %{?_smp_mflags}
%install
%make_install
install -Dm0644 debian/ultrastardx.desktop %{buildroot}%{_datadir}/applications/ultrastardx.desktop
install -Dm0644 icons/ultrastardx-icon_32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/ultrastardx.png
install -Dm0644 icons/ultrastardx-icon_256.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/ultrastardx.png
install -Dm0644 icons/ultrastardx-icon_512.png %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/ultrastardx.png
install -Dm0644 icons/ultrastardx-icon.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/ultrastardx.svg
# There are a lot of duplicated Images
%fdupes %{buildroot}%{_datadir}
# They are only for translators
rm %{buildroot}%{_datadir}/ultrastardx/languages/convert.sh
rm %{buildroot}%{_datadir}/ultrastardx/languages/update.py
# They shouldn't be executable
chmod -x %{buildroot}%{_datadir}/ultrastardx/plugins/*
%files
%doc README.md COPYRIGHT.txt ChangeLog.txt
%license LICENSE
%{_bindir}/ultrastardx
%{_datadir}/ultrastardx
%{_datadir}/applications/ultrastardx.desktop
%{_datadir}/icons/hicolor/*/apps/ultrastardx.*
%changelog