%bcond check 0 %global forgeurl https://github.com/Supreeeme/xrizer %global commit0 6c3e45f4c18b014a7aba87282ee0677306315052 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global date 20260801 Name: xrizer Version: 0.5^%{date}git%{shortcommit0} Release: %autorelease Summary: OpenVR reimplementation on top of OpenXR %forgemeta License: %{shrink: GPL-3.0 } URL: %{forgeurl} Source0: %{forgesource} Patch0: xrizer-openxr-0.21.patch Patch1: xrizer-fedora-deps.patch Patch2: xrizer-fix-unversion-impl-body.patch Patch3: xrizer-make-vergen-optional.patch BuildRequires: cargo BuildRequires: cargo-rpm-macros >= 24 BuildRequires: clang19-devel BuildRequires: glslc BuildRequires: libxcb-devel BuildRequires: openxr-devel BuildRequires: wayland-devel %description xrizer is a reimplementation of OpenVR on top of OpenXR. This enables you to run OpenVR games through any OpenXR runtime without running SteamVR. Note that xrizer is currently immature. Many things are likely broken, so please open bugs at https://github.com/Supreeeme/xrizer/issues if you find any. %prep %forgeautosetup -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -n -f monado %build export XRIZER_VERSION=%{version} %cargo_build -n -f monado %install install -Dm755 target/rpm/libxrizer.so %{buildroot}%{_libdir}/%{name}/runtime/bin/linux64/vrclient.so %if %{with check} %check %cargo_test -n -f monado %endif %files %license LICENSE %{_libdir}/%{name}/runtime/bin/linux64/vrclient.so %changelog %autochangelog