%undefine __cmake_in_source_build # bytecompile with Python 3 %global __python %{__python3} %define version_string 1.1.2 %global build_timestamp 3.%(date +"%Y%m%d") %global rel_build %{build_timestamp}.%{shortcommit}%{?dist} # vulkan capture version and commit %global commit e03e997b2f484f67391ac03f802ac7abfc327b26 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: obs-studio-gamecapture Version: %{version_string} Release: %{rel_build} Summary: Open Broadcaster Software Studio License: GPLv2+ URL: https://github.com/nowrep/obs-vkcapture Source0: https://github.com/nowrep/obs-vkcapture/archive/%{commit}/obs-vkcapture-%{shortcommit}.tar.gz Patch0: 0001-use-one-script-for-both-glcapture-and-vkcapture-and-.patch BuildRequires: vulkan-loader-devel BuildRequires: gcc-c++ BuildRequires: cmake >= 2.8.8 BuildRequires: extra-cmake-modules BuildRequires: libappstream-glib BuildRequires: libGL-devel BuildRequires: mesa-libGL-devel BuildRequires: vulkan-loader-devel %description OBS plugin for Vulkan/OpenGL game capture on Linux. Requires OBS 27. On X11 you need to explicitly enable EGL: OBS_USE_EGL=1 obs. %prep %setup -n obs-vkcapture-%{commit} -q patch -Np1 < %{PATCH0} %build %cmake \ -DBUILD_PLUGIN=OFF \ -DCMAKE_BUILD_TYPE=Release %cmake_build %install %cmake_install %files %{_bindir}/obs-gamecapture %{_datadir}/vulkan/implicit_layer.d/*.json %{_libdir}/libobs_glcapture.so %{_libdir}/libVkLayer_obs_vkcapture.so %changelog * Thu Mar 10 2022 Thomas Crider - 0.10.1-0.1 - Initial .spec file