File moonlight-qt.spec of Package moonlight-qt

#
# spec file for package moonlight-qt
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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:           moonlight-qt
Version:        5.0.1
Release:        0
Summary:        GameStream client for PCs (Windows, Mac, Linux, and Steam Link)
License:        GPL-3.0-only
Group:          Amusements/Games/Other
URL:            https://moonlight-stream.org/
Source:         %{name}-%{version}.tar.gz
BuildRequires:  ffmpeg-devel >= 5
BuildRequires:  update-desktop-files
BuildRequires:  libqt5-qtbase-common-devel
BuildRequires:  libqt5-qtquickcontrols2-private-headers-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt53DQuick)
BuildRequires:  pkgconfig(Qt5Charts)
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Multimedia)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(SDL2_ttf)
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(libva)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(opus)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(vdpau)
Requires:       libqt5-qtquickcontrols2

%description
Moonlight PC is an open source implementation of NVIDIA's GameStream,
as used by the NVIDIA Shield, but built to run on Windows, Mac, and Linux.
This client is the successor to Moonlight Chrome for streaming on PC.

%prep
%autosetup -p1

%build 
%qmake5 \
PREFIX=/usr
%make_jobs

%install
%qmake5_install
%suse_update_desktop_file -n -r com.moonlight_stream.Moonlight Game Amusement

%files
%license LICENSE
%doc README.md
%{_bindir}/moonlight
%{_datadir}/applications/
%{_datadir}/icons/hicolor
%{_datadir}/icons/hicolor/scalable/apps/
%{_datadir}/metainfo/

%changelog
openSUSE Build Service is sponsored by