forked from nowrep/obs-vkcapture
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobs-vkcapture.spec
More file actions
87 lines (69 loc) · 2.3 KB
/
obs-vkcapture.spec
File metadata and controls
87 lines (69 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Name: obs-vkcapture
Version: {{{ git_dir_version }}}
Release: 1%{?dist}
Summary: OBS plugin for Vulkan/OpenGL game capture on Linux
License: GPL-2.0-or-later
URL: https://github.com/KyleGospo/obs-vkcapture
VCS: {{{ git_dir_vcs }}}
Source: {{{ git_dir_pack }}}
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: vulkan-devel
BuildRequires: obs-studio-devel
BuildRequires: mesa-libGL-devel
BuildRequires: mesa-libEGL-devel
BuildRequires: glslang-devel
BuildRequires: wayland-devel
BuildRequires: pkgconfig(x11)
Requires: obs-vkcapture-common
Requires: libobs_vkcapture
Requires: libobs_glcapture
%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
%package -n libobs_vkcapture
Summary: Vulkan game capture plugin for OBS Studio
Provides: libobs_vkcapture = %{version}
Requires: obs-vkcapture-common
Version: %{version}
%description -n libobs_vkcapture
OBS plugin for Vulkan/OpenGL game capture on Linux
%package -n libobs_glcapture
Summary: OpenGL game capture plugin for OBS Studio
Provides: libobs_glcapture = %{version}
Requires: obs-vkcapture-common
Version: %{version}
%description -n libobs_glcapture
OBS plugin for Vulkan/OpenGL game capture on Linux
%package -n obs-vkcapture-common
Summary: OpenGL game capture plugin for OBS Studio
Provides: obs-vkcapture-common = %{version}
Version: %{version}
BuildArch: noarch
%description -n obs-vkcapture-common
OBS plugin for Vulkan/OpenGL game capture on Linux
%prep
{{{ git_dir_setup_macro }}}
%build
%cmake -DCMAKE_INSTALL_PREFIX=/usr .. \
-DCMAKE_BUILD_TYPE=Release
%cmake_build %{?_smp_mflags}
%install
%cmake_install
%files
%{_libdir}/obs-plugins/linux-vkcapture.so
%dir %{_datadir}/obs/obs-plugins/linux-vkcapture/
%{_datadir}/obs/obs-plugins/linux-vkcapture/*
%files -n libobs_vkcapture
%{_libdir}/libVkLayer_obs_vkcapture.so
%{_datadir}/vulkan/implicit_layer.d/obs_vk*.json
%files -n libobs_glcapture
%{_libdir}/obs_glcapture/libobs_glcapture.so
%files -n obs-vkcapture-common
%license LICENSE
%doc README.md
%{_bindir}/obs-gamecapture
%{_bindir}/obs-glcapture
%{_bindir}/obs-vkcapture
%changelog
{{{ git_dir_changelog }}}