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.5
Release: 0
ExclusiveArch: x86_64 aarch64
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: fdupes
BuildRequires: ffmpeg-8-libavcodec-devel
BuildRequires: ffmpeg-8-libavdevice-devel
BuildRequires: ffmpeg-8-libavformat-devel
BuildRequires: simde-devel
Recommends: obs-vkcapture-32bit
Recommends: obs-studio
Requires: libobs_glcapture = %{version}
Requires: libobs_vkcapture = %{version}
%description
OBS plugin and host-side Vulkan/OpenGL capture layer.
Can be used with system OBS Studio, or with Flatpak OBS Studio (requires host vkcapture).
%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
%cmake_build
%install
%cmake_install
find %{buildroot} -type f -name "*.so" -exec strip --strip-unneeded {} +
%fdupes %{buildroot}%{_prefix}
%files
%license LICENSE
%doc README.md
%{_bindir}/obs-gamecapture
%{_bindir}/obs-glcapture
%{_bindir}/obs-vkcapture
%{_libdir}/obs-plugins/linux-vkcapture.so
%dir %{_datadir}/obs
%dir %{_datadir}/obs/obs-plugins
%{_datadir}/obs/obs-plugins/linux-vkcapture/
%dir %{_datadir}/vulkan
%dir %{_datadir}/vulkan/implicit_layer.d
%{_datadir}/vulkan/implicit_layer.d/obs_vkcapture_%{__isa_bits}.json
%files -n libobs_vkcapture
%{_libdir}/libVkLayer_obs_vkcapture.so
%files -n libobs_glcapture
%dir %{_libdir}/obs_glcapture
%{_libdir}/obs_glcapture/libobs_glcapture.so
%changelog