mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a5ba1ba2bb | |||
| bb56b15058 | |||
| 89432c114d | |||
| eed4d4d25e | |||
| f08da4ac21 | |||
| 843920f4a5 | |||
| 981f2247cc | |||
| ca970e927f | |||
| 8240051f4d | |||
| 88713ed5a4 | |||
| b397551a0d |
@@ -0,0 +1,9 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "sunshine.spec"
|
||||
extra_repos = ["https://repos.fyralabs.com/terrarawhide-nvidia"]
|
||||
}
|
||||
labels {
|
||||
mock = 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/cmake/dependencies/Boost_Sunshine.cmake b/cmake/dependencies/Boost_Sunshine.cmake
|
||||
index eb2ac409..109c3238 100644
|
||||
--- a/cmake/dependencies/Boost_Sunshine.cmake
|
||||
+++ b/cmake/dependencies/Boost_Sunshine.cmake
|
||||
@@ -3,7 +3,7 @@
|
||||
#
|
||||
include_guard(GLOBAL)
|
||||
|
||||
-set(BOOST_VERSION "1.87.0")
|
||||
+set(BOOST_VERSION "1.83.0")
|
||||
set(BOOST_COMPONENTS
|
||||
filesystem
|
||||
locale
|
||||
@@ -0,0 +1,15 @@
|
||||
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
|
||||
index 5a4ecd7f..b78a436f 100644
|
||||
--- a/tests/CMakeLists.txt
|
||||
+++ b/tests/CMakeLists.txt
|
||||
@@ -16,8 +16,8 @@ include_directories("${GTEST_SOURCE_DIR}/googletest/include" "${GTEST_SOURCE_DIR
|
||||
|
||||
# coverage
|
||||
# https://gcovr.com/en/stable/guide/compiling.html#compiler-options
|
||||
-set(CMAKE_CXX_FLAGS "-fprofile-arcs -ftest-coverage -ggdb -O0")
|
||||
-set(CMAKE_C_FLAGS "-fprofile-arcs -ftest-coverage -ggdb -O0")
|
||||
+set(CMAKE_CXX_FLAGS "-fprofile-arcs -ftest-coverage -ggdb -O0 -fPIE")
|
||||
+set(CMAKE_C_FLAGS "-fprofile-arcs -ftest-coverage -ggdb -O0 -fPIE")
|
||||
|
||||
# if windows
|
||||
if (WIN32)
|
||||
@@ -0,0 +1,115 @@
|
||||
%bcond_without cuda
|
||||
%bcond_without check
|
||||
|
||||
%global appid dev.lizardbyte.app.Sunshine
|
||||
%global github_url https://github.com/LizardByte/Sunshine.git
|
||||
%global commit 86188d47a7463b0f73b35de18a628353adeaa20e
|
||||
|
||||
Name: sunshine
|
||||
Version: 2025.924.154138
|
||||
Release: 1%{?dist}
|
||||
License: GPL-3.0-only AND CC0-1.0
|
||||
URL: http://app.lizardbyte.dev/Sunshine/
|
||||
Patch0: fix-test-cxxflags.patch
|
||||
# 44 _should_ have boost-1.90.0, so this probably wont be needed
|
||||
Patch1: downgrade-boost.patch
|
||||
Summary: Self-hosted game stream host for Moonlight
|
||||
Packager: metcya <metcya@gmail.com>
|
||||
|
||||
BuildRequires: anda-srpm-macros
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: pkgconfig(libcap)
|
||||
BuildRequires: pkgconfig(libdrm)
|
||||
BuildRequires: pkgconfig(libva)
|
||||
BuildRequires: pkgconfig(libva-drm)
|
||||
BuildRequires: pkgconfig(systemd)
|
||||
BuildRequires: pkgconfig(udev)
|
||||
BuildRequires: pkgconfig(wayland-client)
|
||||
BuildRequires: pkgconfig(wayland-server)
|
||||
BuildRequires: pkgconfig(wayland-egl)
|
||||
BuildRequires: pkgconfig(wayland-cursor)
|
||||
BuildRequires: pkgconfig(nlohmann_json)
|
||||
BuildRequires: pkgconfig(pkg-config)
|
||||
BuildRequires: pkgconfig(libcurl)
|
||||
BuildRequires: pkgconfig(miniupnpc)
|
||||
BuildRequires: pkgconfig(x11)
|
||||
BuildRequires: pkgconfig(ayatana-appindicator3-0.1)
|
||||
BuildRequires: pkgconfig(appindicator3-0.1)
|
||||
BuildRequires: pkgconfig(libnotify)
|
||||
BuildRequires: pkgconfig(opus)
|
||||
BuildRequires: pkgconfig(gbm)
|
||||
BuildRequires: pkgconfig(libpulse)
|
||||
BuildRequires: pkgconfig(numa)
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: nodejs-npm
|
||||
BuildRequires: systemd-rpm-macros
|
||||
|
||||
%if %{with cuda}
|
||||
BuildRequires: cuda
|
||||
%endif
|
||||
|
||||
%if %{with check}
|
||||
BuildRequires: appstream
|
||||
BuildRequires: desktop-file-utils
|
||||
%endif
|
||||
|
||||
%description
|
||||
Sunshine is a self-hosted game stream host for Moonlight. Offering low-latency,
|
||||
cloud gaming server capabilities with support for AMD, Intel, and Nvidia GPUs
|
||||
for hardware encoding. Software encoding is also available. You can connect to
|
||||
Sunshine from any Moonlight client on a variety of devices. A web UI is
|
||||
provided to allow configuration, and client pairing, from your favorite web
|
||||
browser. Pair from the local server or any mobile device.
|
||||
|
||||
%prep
|
||||
%git_clone %{github_url} v%{version}
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
export BRANCH=master
|
||||
export BUILD_VERSION=%{version}
|
||||
export CLONE_URL=%{github_url}
|
||||
export COMMIT=%{commit}
|
||||
export TAG=v%{version}
|
||||
%cmake -DSUNSHINE_ENABLE_CUDA=%{?with_cuda:ON:OFF} \
|
||||
-DSUNSHINE_ASSETS_DIR=share/%{name}
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
%terra_appstream
|
||||
|
||||
%post
|
||||
%systemd_user_post %{name}.service
|
||||
|
||||
%preun
|
||||
%systemd_user_preun %{name}.service
|
||||
|
||||
%postun
|
||||
%systemd_user_postun_with_restart %{name}.service
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
appstreamcli validate %{buildroot}%{_metainfodir}/%{appid}.metainfo.xml
|
||||
desktop-file-validate %{buildroot}%{_appsdir}/%{appid}{,.terminal}.desktop
|
||||
%endif
|
||||
|
||||
%files
|
||||
%{_bindir}/%{name}
|
||||
%{_bindir}/%{name}-%{version}
|
||||
%{_datadir}/%{name}/
|
||||
%{_userunitdir}/%{name}.service
|
||||
%{_udevrulesdir}/60-%{name}.rules
|
||||
%{_modulesloaddir}/60-%{name}.conf
|
||||
%{_scalableiconsdir}/%{name}.svg
|
||||
%{_hicolordir}/scalable/status/*.svg
|
||||
%{_appsdir}/*.desktop
|
||||
%{_metainfodir}/%{appid}.metainfo.xml
|
||||
|
||||
%changelog
|
||||
* Sun Jan 04 2026 metcya <metcya@gmail.com> - 2025.924.154138-1
|
||||
- Initial package
|
||||
Reference in New Issue
Block a user