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/
#
%define _name_archive obs-vkcapture-master
Name: obs-vkcapture
Version: 1.5.1+git.20241123
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.git
Source0: %{_name_archive}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: cmake(libobs)
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(x11-xcb)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-xfixes)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-scanner)
BuildRequires: pkgconfig(vulkan)
#BuildRequires: pkgconfig(xwayland)
BuildRequires: xwayland-devel
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-egl)
BuildRequires: pkgconfig(wayland-protocols)
BuildRequires: pkgconfig(wayland-server)
BuildRequires: pkgconfig(libglvnd)
BuildRequires: pkgconfig(shaderc)
Requires: vulkan-tools
Requires: vulkan-validationlayers
Requires: obs-studio
Enhances: obs-studio
# Replace older packages
Obsoletes: obs-studio-vkcapture < %{version}-%{release}
Provides: obs-studio-vkcapture = %{version}-%{release}
Obsoletes: obs-studio-gamecapture < %{version}-%{release}
Provides: obs-studio-gamecapture = %{version}-%{release}
# Alternative name
Provides: obs-studio-plugin-gamecapture = %{version}-%{release}
%description
OBS plugin for Vulkan/OpenGL game capture on Linux.
Requires OBS >= 27. If you are on X11,make sure you run OBS
with EGL enabled: OBS_USE_EGL=1 obs
%check
%prep
%autosetup -n %{_name_archive}-%{version} -p1
%build
%cmake -DCMAKE_BUILD_TYPE=Release
%cmake_build
%install
%cmake_install
%files
%doc README.md
%license LICENSE
%{_bindir}/obs-gamecapture
%{_bindir}/obs-glcapture
%{_bindir}/obs-vkcapture
%{_libdir}/obs_glcapture/
%{_libdir}/obs_glcapture/libobs_glcapture.so
%{_libdir}/libVkLayer_obs_vkcapture.so
%{_datadir}/vulkan/implicit_layer.d/
%{_datadir}/vulkan/implicit_layer.d/*.json
%{_libdir}/obs-plugins/linux-vkcapture.so
%{_datadir}/obs/obs-plugins/linux-vkcapture/
%changelog