mirror of
https://abf.rosa.ru/djam/moonlight-qt.git
synced 2025-02-23 16:02:50 +00:00
Imported from SRPM
This commit is contained in:
commit
86a67c527a
2 changed files with 68 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
sources:
|
||||
MoonlightSrc-6.1.0.tar.gz: 220fcc8f1656203b4d76bf94192ee716191d60c9
|
66
moonlight-qt.spec
Normal file
66
moonlight-qt.spec
Normal file
|
@ -0,0 +1,66 @@
|
|||
%define debug %nil
|
||||
%define debug_package %nil
|
||||
%define _libexecdir %{_prefix}/libexec
|
||||
|
||||
Name: moonlight-qt
|
||||
Version: 6.1.0
|
||||
Release: 1
|
||||
Summary: GameStream client for PCs
|
||||
URL: https://github.com/moonlight-stream/moonlight-qt
|
||||
Source0: https://github.com/moonlight-stream/moonlight-qt/releases/download/v%{version}/MoonlightSrc-%{version}.tar.gz
|
||||
License: GPLv3
|
||||
Group: Games/Other
|
||||
BuildRequires: qt515
|
||||
BuildRequires: llvm17
|
||||
BuildRequires: pkgconfig(openssl3.3)
|
||||
BuildRequires: pkgconfig(sdl2)
|
||||
BuildRequires: pkgconfig(SDL2_ttf)
|
||||
BuildRequires: pkgconfig(libavcodec)
|
||||
BuildRequires: pkgconfig(libpulse)
|
||||
BuildRequires: pkgconfig(alsa)
|
||||
BuildRequires: pkgconfig(opus)
|
||||
BuildRequires: pkgconfig(libdrm)
|
||||
BuildRequires: pkgconfig(libva)
|
||||
BuildRequires: pkgconfig(vdpau)
|
||||
BuildRequires: stdc++-gcc10-devel
|
||||
|
||||
|
||||
%description
|
||||
Moonlight PC is an open source PC client for NVIDIA
|
||||
GameStream and Sunshine.
|
||||
|
||||
Moonlight also has mobile versions for Android and iOS.
|
||||
|
||||
%prep
|
||||
%setup -q -c %{name}-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS="-I/opt/openssl3.3/include -I/usr/include/libstdc++-gcc10 -I/usr/include/libstdc++-gcc10/%{_host}"
|
||||
export CXXFLAGS="-I/opt/openssl3.3/include -I/usr/include/libstdc++-gcc10 -I/usr/include/libstdc++-gcc10/%{_host}"
|
||||
export LDFLAGS="-lstdc++-gcc10"
|
||||
|
||||
export CC=/opt/llvm17/bin/clang
|
||||
export CXX=/opt/llvm17/bin/clang++
|
||||
|
||||
/opt/qt5/5.15/bin/qmake \
|
||||
"QMAKE_CXX = /opt/llvm17/bin/clang++" \
|
||||
"QMAKE_CC = /opt/llvm17/bin/clang" \
|
||||
"QMAKE_CFLAGS = -I/opt/openssl3.3/include -I/usr/include/libstdc++-gcc10 -I/usr/include/libstdc++-gcc10/%{_host}" \
|
||||
"QMAKE_CXXFLAGS = -I/opt/openssl3.3/include -I/usr/include/libstdc++-gcc10 -I/usr/include/libstdc++-gcc10/%{_host} " \
|
||||
"QMAKE_LFLAGS += -L/opt/openssl3.3/lib -lstdc++-gcc10" \
|
||||
"PREFIX=%{_prefix}"
|
||||
|
||||
|
||||
%make
|
||||
|
||||
%install
|
||||
%makeinstall INSTALL_ROOT=%{buildroot} PREFIX=%{_prefix}
|
||||
|
||||
%files
|
||||
%doc README.md LICENSE
|
||||
%{_bindir}/moonlight
|
||||
%{_datadir}/applications/com.moonlight_stream.Moonlight.desktop
|
||||
%{_datadir}/icons/hicolor/scalable/apps/moonlight.svg
|
||||
%{_datadir}/metainfo/com.moonlight_stream.Moonlight.appdata.xml
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue