--- /dev/null
+--- openvr-1.23.8/src/CMakeLists.txt.orig 2023-03-08 01:40:29.000000000 +0100
++++ openvr-1.23.8/src/CMakeLists.txt 2023-03-31 19:12:34.535135850 +0200
+@@ -103,7 +103,7 @@ endif()
+ target_link_libraries(${LIBNAME} ${EXTRA_LIBS} ${CMAKE_DL_LIBS})
+ target_include_directories(${LIBNAME} PUBLIC ${OPENVR_HEADER_DIR})
+
+-install(TARGETS ${LIBNAME} DESTINATION lib)
++install(TARGETS ${LIBNAME} DESTINATION lib${LIB_SUFFIX})
+ install(FILES ${PUBLIC_HEADER_FILES} DESTINATION include/openvr)
+
+ # Generate a .pc file for linux environments
Source0: https://github.com/ValveSoftware/openvr/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 2dd6945040b63c9a2d1ce4ece00bda7e
Patch0: %{name}-pc.patch
+Patch1: %{name}-libdir.patch
URL: https://github.com/ValveSoftware/openvr
BuildRequires: cmake >= 2.8
BuildRequires: libstdc++-devel >= 6:4.7
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
# prebuilt binaries
%{__rm} -r bin lib