%bcond check 0 %global forgeurl https://github.com/Supreeeme/xrizer %global tag0 v%{version} Name: xrizer Version: 0.4 Release: %autorelease Summary: OpenVR reimplementation on top of OpenXR %forgemeta License: %{shrink: GPL-3.0 } URL: %{forgeurl} Source0: %{forgesource} Patch0: xrizer-relax-cargo-deps.patch Patch1: xrizer-fix-unversion-impl-body.patch Patch2: xrizer-fix-ext-name-type.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 %build export VERGEN_GIT_DESCRIBE=%{version} %cargo_build %install install -Dm755 target/rpm/libxrizer.so %{buildroot}%{_libdir}/%{name}/libxrizer.so %if %{with check} %check %cargo_test %endif %files %license LICENSE %{_libdir}/xrizer/libxrizer.so %changelog %autochangelog