public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/obs-studio-plugin-vkcapture] epel9: Split off libs subpackage
@ 2026-10-14 21:28 Asahi Lina
  0 siblings, 0 replies; only message in thread
From: Asahi Lina @ 2026-10-14 21:28 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/obs-studio-plugin-vkcapture
Branch : epel9
Commit : 8f917ca9e09ad6f0565d2606765cc757b2b3043f
Author : Asahi Lina <lina@lina.yt>
Date   : 2025-12-01T14:37:36+09:00
Stats  : +51/-9 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/obs-studio-plugin-vkcapture/c/8f917ca9e09ad6f0565d2606765cc757b2b3043f?branch=epel9

Log:
Split off libs subpackage

---
diff --git a/obs-studio-plugin-vkcapture.spec b/obs-studio-plugin-vkcapture.spec
index e36c98c..36fa6f8 100644
--- a/obs-studio-plugin-vkcapture.spec
+++ b/obs-studio-plugin-vkcapture.spec
@@ -1,8 +1,15 @@
+# The i686 build only builds the game injection libraries
+%ifarch i686
+%global libs_only 1
+%else
+%global libs_only 0
+%endif
+
 %global srcname obs-vkcapture
 
 Name:           obs-studio-plugin-vkcapture
 Version:        1.5.1
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        OBS plugin for Vulkan/OpenGL game capture
 
 License:        GPL-2.0-or-later and Zlib
@@ -15,7 +22,9 @@ ExcludeArch:    s390x
 BuildRequires:  cmake
 BuildRequires:  gcc
 
+%if ! %{libs_only}
 BuildRequires:  cmake(libobs)
+%endif
 BuildRequires:  pkgconfig(egl)
 BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(xcb)
@@ -25,8 +34,6 @@ BuildRequires:  pkgconfig(wayland-scanner)
 BuildRequires:  libglvnd-devel
 BuildRequires:  vulkan-loader-devel
 
-# For directory ownership
-Requires:       vulkan-loader%{?_isa}
 Requires:       obs-studio%{?_isa}
 
 Enhances:       obs-studio%{?_isa}
@@ -43,15 +50,42 @@ Provides:       obs-studio-gamecapture%{?_isa} = %{version}-%{release}
 Provides:       obs-studio-plugin-gamecapture = %{version}-%{release}
 Provides:       obs-studio-plugin-gamecapture%{?_isa} = %{version}-%{release}
 
+Recommends:     %{name}-hook-libs%{?_isa} = %{version}-%{release}
+
 %description
 %{name}.
 
+%package hook-libs
+
+Summary:        Hook libraries for OBS Vulkan/OpenGL game capture
+
+# For directory ownership
+Requires:       vulkan-loader%{?_isa}
+
+# libs split, obsolete older packages
+Obsoletes:      obs-studio-plugin-vkcapture < %{version}-%{release}
+Obsoletes:      obs-studio-vkcapture < %{version}-%{release}
+Obsoletes:      obs-studio-gamecapture < %{version}-%{release}
+
+# Note that the hook-libs package does not require the base package. This is useful, for example, with Flatpak OBS+plugin.
+# For this reason, the preload library wrappers are part of the hook-libs subpackage.
+# However, recommend it, to ensure that after an upgrade through the obsoletes above, both end up installed
+%if ! %{libs_only}
+Recommends:     %{name}%{?_isa} = %{version}-%{release}
+%endif
+
+%description hook-libs
+Hook libraries for %{name}.
+
 %prep
 %autosetup -n %{srcname}-%{version} -p1
 
 
 %build
-%cmake
+%cmake \
+%if %{libs_only}
+    -DBUILD_PLUGIN=OFF
+%endif
 %cmake_build
 
 
@@ -59,9 +93,19 @@ Provides:       obs-studio-plugin-gamecapture%{?_isa} = %{version}-%{release}
 %cmake_install
 
 
+%if ! %{libs_only}
 %files
 %doc README.md
 %license LICENSE
+# OBS plugin
+%{_libdir}/obs-plugins/linux-vkcapture.so
+# OBS plugin data
+%{_datadir}/obs/obs-plugins/linux-vkcapture/
+%endif
+
+%files hook-libs
+%doc README.md
+%license LICENSE
 # Preload library wrappers
 %{_bindir}/obs-gamecapture
 %{_bindir}/obs-glcapture
@@ -70,13 +114,11 @@ Provides:       obs-studio-plugin-gamecapture%{?_isa} = %{version}-%{release}
 %{_libdir}/obs_glcapture/libobs_glcapture.so
 %{_libdir}/libVkLayer_obs_vkcapture.so
 %{_datadir}/vulkan/implicit_layer.d/obs_vkcapture_%{__isa_bits}.json
-# OBS plugin
-%{_libdir}/obs-plugins/linux-vkcapture.so
-# OBS plugin data
-%{_datadir}/obs/obs-plugins/linux-vkcapture/
-
 
 %changelog
+* Fri Nov 28 2025 Asahi Lina <lina@lina.yt> - 1.5.1-4
+- Split off hook libraries into subpackage, build only those for i686
+
 * Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-14 21:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-14 21:28 [rpms/obs-studio-plugin-vkcapture] epel9: Split off libs subpackage Asahi Lina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox