%global srcname WiVRn # These aren't available in Fedora %bcond_with nvenc %bcond_with x264 Name: wivrn Version: 0.10.1 Release: %autorelease Summary: OpenXR streaming application to a standalone headset License: GPL-3.0-or-later URL: https://github.com/Meumeu/WiVRn Source: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: glslc BuildRequires: glslang BuildRequires: avahi-devel BuildRequires: eigen3-devel BuildRequires: ffmpeg-free-devel BuildRequires: freetype-devel BuildRequires: json-devel BuildRequires: pulseaudio-libs-devel BuildRequires: systemd-devel BuildRequires: vulkan-loader-devel %if %{with nvenc} BuildRequires: cuda-toolkit %endif %if %{with x264} BuildRequires: x264-devel %endif # Common dependencies #FetchContent_Declare(boostpfr URL https://github.com/boostorg/pfr/archive/refs/tags/2.0.3.tar.gz) # Client dependencies #FetchContent_Declare(glm URL https://github.com/g-truc/glm/archive/refs/tags/0.9.9.8.tar.gz) #FetchContent_Declare(openxr_loader URL https://github.com/KhronosGroup/OpenXR-SDK/archive/refs/tags/release-1.0.32.tar.gz) #FetchContent_Declare(spdlog URL https://github.com/gabime/spdlog/archive/refs/tags/v1.11.0.tar.gz) #FetchContent_Declare(tinygltf URL https://github.com/syoyo/tinygltf/archive/refs/tags/v2.6.3.tar.gz) # Server dependencies #FetchContent_Declare(monado # GIT_REPOSITORY https://gitlab.freedesktop.org/monado/monado # GIT_TAG 79bf8eb8fa168f65f4e5505e0525ee74aa88783e # ) %description WiVRn lets you run OpenXR applications on a computer and display them on a standalone headset. %prep %autosetup -n %{srcname}-%{version} -p1 %build %cmake \ %if %{with nvenc} -DWIVRN_USE_NVENC=ON \ %else -DWIVRN_USE_NVENC=OFF \ %endif %if %{with x264} -DWIVRN_USE_X264=ON \ %else -DWIVRN_USE_X264=OFF \ %endif %{nil} %cmake_build %install %cmake_install %check %ctest %files %license COPYING %doc README.md images/ ChangeLog.md CITATION.cff %changelog %autochangelog