Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
games:tools
sunshine
sunshine.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sunshine.spec of Package sunshine
# # spec file for package sunshine # # 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: sunshine Version: 2024.1115.143556 Release: 0 Summary: Server for the Moonlight game streaming client License: GPL-3.0-only URL: https://github.com/LizardByte/sunshine Source0: %{name}-%{version}.tar.gz Source1: %{name}.firewalld Source2: package-lock.json Source3: node_modules.spec.inc Source99: get-sources.sh %include %{_sourcedir}/node_modules.spec.inc Patch0: fix-sunshine.desktop.patch BuildRequires: boost-devel BuildRequires: cmake >= 3.20 BuildRequires: doxygen BuildRequires: fdupes BuildRequires: firewalld BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: git-core BuildRequires: graphviz BuildRequires: hicolor-icon-theme BuildRequires: libboost_filesystem-devel BuildRequires: libboost_headers-devel BuildRequires: libboost_locale-devel BuildRequires: libboost_log-devel BuildRequires: libboost_program_options-devel BuildRequires: libboost_system-devel BuildRequires: libboost_thread-devel BuildRequires: local-npm-registry BuildRequires: patchelf BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: pkgconfig(appindicator3-0.1) BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(libcap) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(libevdev) BuildRequires: pkgconfig(libnotify) BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(libva) BuildRequires: pkgconfig(miniupnpc) BuildRequires: pkgconfig(numa) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(opus) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(udev) BuildRequires: pkgconfig(vdpau) BuildRequires: pkgconfig(wayland-protocols) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xcb) BuildRequires: pkgconfig(xfixes) BuildRequires: pkgconfig(xinerama) BuildRequires: pkgconfig(xrandr) BuildRequires: pkgconfig(xtst) Provides: bundled(libinputtino) ExclusiveArch: aarch64 x86_64 %description Sunshine is a self-hosted game stream host for Moonlight. It has low latency, cloud gaming server capabilities with support for hardware encoding on AMD, Intel, and Nvidia GPUs. Software encoding is also available. You can connect to Sunshine from any Moonlight client on a variety of devices. A web UI is provided for configuration and client pairing. %package firewalld Summary: Firewalld service for %{name} Supplements: (%{name} and firewalld) BuildArch: noarch %description firewalld %{summary}. %prep %autosetup -p1 local-npm-registry %{_sourcedir} install --include=prod --include=dev --include=optional --include=peer sed -i 's|project(Sunshine VERSION 0.0.0|project(Sunshine VERSION %{version}|g' CMakeLists.txt %build export BUILD_VERSION=%{version} %cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DSUNSHINE_ASSETS_DIR=share/%{name} \ -DSUNSHINE_EXECUTABLE_PATH=%{_bindir}/%{name} \ -DBOOST_USE_STATIC=OFF \ -DBUILD_DOCS=OFF \ -DBUILD_TESTS=ON \ -DTESTS_ENABLE_PYTHON_TESTS=ON \ -DSUNSHINE_ENABLE_TRAY=ON \ -DSUNSHINE_REQUIRE_TRAY=ON \ -DSUNSHINE_ENABLE_CUDA=OFF \ -DSUNSHINE_SYSTEM_WAYLAND_PROTOCOLS=ON \ -DSUNSHINE_ENABLE_DRM=ON \ -DSUNSHINE_ENABLE_VAAPI=ON \ -DSUNSHINE_ENABLE_WAYLAND=ON \ -DSUNSHINE_ENABLE_X11=ON %cmake_build %install %cmake_install mv %{buildroot}%{_bindir}/%{name}-%{version} %{buildroot}%{_bindir}/%{name} install -Dm0644 %{SOURCE1} %{buildroot}%{_prefix}/lib/firewalld/services/%{name}.xml %suse_update_desktop_file %{name} %suse_update_desktop_file %{name}_terminal %fdupes %{buildroot} install -d %{buildroot}%{_libdir}/%{name} install -Dm 755 %{_builddir}/%{name}-%{version}/build/third-party/inputtino/liblibinputtino.so.0.1 %{buildroot}%{_libdir}/libinputtino.so.0.1 # fix libname of inputtino patchelf --replace-needed liblibinputtino.so.0.1 libinputtino.so.0.1 %{buildroot}%{_bindir}/%{name} patchelf --set-soname libinputtino.so.0.1 %{buildroot}%{_libdir}/libinputtino.so.0.1 %ldconfig_scriptlets %files %license LICENSE %doc NOTICE README.md %caps(cap_sys_admin+p) %{_bindir}/%{name} %{_userunitdir}/%{name}.service %{_datadir}/applications/%{name}.desktop %{_datadir}/applications/%{name}_terminal.desktop %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{_datadir}/icons/hicolor/scalable/status/%{name}-{locked,pausing,playing,tray}.svg %{_datadir}/metainfo/%{name}.appdata.xml %{_datadir}/%{name} %{_udevrulesdir}/60-%{name}.rules %{_libdir}/libinputtino.so.0.1 %files firewalld %{_prefix}/lib/firewalld/services/sunshine.xml %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor