File obs-vkcapture.spec of Package obs-vkcapture
#
# spec file for package obs-vkcapture
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: obs-vkcapture
Version: 1.5.1
Release: 0
ExclusiveArch: x86_64
Summary: OBS plugin for Vulkan/OpenGL game capture on Linux
License: GPL-2.0-or-later
URL: https://github.com/nowrep/obs-vkcapture
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: vulkan-devel
BuildRequires: obs-studio-devel
BuildRequires: Mesa-libGL-devel
BuildRequires: Mesa-libEGL-devel
BuildRequires: glslang-devel
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-scanner)
BuildRequires: pkgconfig(x11)
BuildRequires: ffmpeg-7-libavcodec-devel
BuildRequires: ffmpeg-7-libavdevice-devel
BuildRequires: ffmpeg-7-libavformat-devel
Requires: libobs_glcapture
Requires: libobs_vkcapture
Requires: obs-studio
Enhances: obs-studio
Recommends: obs-vkcapture-32bit
%description
OBS plugin for Vulkan/OpenGL game capture on Linux.
%package -n libobs_vkcapture
Summary: Vulkan game capture plugin for OBS Studio
Provides: libobs_vkcapture = %{version}
Version: %{version}
%description -n libobs_vkcapture
Vulkan game capture plugin for OBS Studio
%package -n libobs_glcapture
Summary: OpenGL game capture plugin for OBS Studio
Provides: libobs_glcapture = %{version}
Version: %{version}
%description -n libobs_glcapture
OpenGL game capture plugin for OBS Studio
%prep
%autosetup
%build
%cmake -DCMAKE_INSTALL_PREFIX=/usr ..
%cmake_build
%install
%cmake_install
%files
%{_bindir}/obs-gamecapture
%{_bindir}/obs-glcapture
%{_bindir}/obs-vkcapture
%{_libdir}/obs-plugins/linux-vkcapture.so
%dir %{_datadir}/obs/obs-plugins/linux-vkcapture/
%{_datadir}/obs/obs-plugins/linux-vkcapture/*
%dir %{_datadir}/vulkan/implicit_layer.d/
%{_datadir}/vulkan/implicit_layer.d/obs_vkcapture_%{__isa_bits}.json
%license LICENSE
%doc README.md
%files -n libobs_vkcapture
%{_libdir}/libVkLayer_obs_vkcapture.so
%files -n libobs_glcapture
%{_libdir}/obs_glcapture/
%{_libdir}/obs_glcapture/libobs_glcapture.so
%changelog