public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Asahi Lina <lina@lina.yt>
To: git-commits@fedoraproject.org
Subject: [rpms/obs-studio-plugin-vkcapture] epel9: Split off libs subpackage
Date: Wed, 14 Oct 2026 21:28:41 GMT	[thread overview]
Message-ID: <179201332157.1.17419069194570557723.rpms-obs-studio-plugin-vkcapture-8f917ca9e09a@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-10-14 21:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179201332157.1.17419069194570557723.rpms-obs-studio-plugin-vkcapture-8f917ca9e09a@fedoraproject.org \
    --to=lina@lina.yt \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox