mirror of
https://gitlab.com/GloriousEggroll/obs-studio-nobara.git
synced 2025-12-12 00:00:02 -05:00
update to latest build
This commit is contained in:
@@ -7,22 +7,22 @@
|
||||
%global rel_build %{build_timestamp}.%{shortcommit}%{?dist}
|
||||
|
||||
# obs version and commit
|
||||
%define commit fd7c23b2003b27676e9687646ba2fd293fd44603
|
||||
%define commit f5be6f5fdd2fe34b18518ecd38030f0768845688
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
|
||||
Name: obs-studio
|
||||
Version: %{version_string}
|
||||
Release: 3.%{rel_build}
|
||||
Release: 10.%{rel_build}
|
||||
Summary: Open Broadcaster Software Studio
|
||||
|
||||
License: GPLv2+
|
||||
URL: https://obsproject.com/
|
||||
Source0: https://github.com/obsproject/obs-studio/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
||||
Source1: https://cdn-fastly.obsproject.com/downloads/cef_binary_4638_linux64.tar.bz2
|
||||
Patch0: hevc-vaapi.patch
|
||||
Source1: https://cdn-fastly.obsproject.com/downloads/cef_binary_5060_linux64.tar.bz2
|
||||
Patch0: remove-ffmpeg-vaapi.patch
|
||||
Patch1: add-plugins.patch
|
||||
Patch2: 6207.patch
|
||||
Patch3: 0001-Revert-UI-Enforce-Fusion-Qt-style-on-Linux.patch
|
||||
Patch3: 7129.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: git
|
||||
@@ -41,7 +41,6 @@ BuildRequires: jansson-devel
|
||||
BuildRequires: libcurl-devel
|
||||
BuildRequires: libdrm-devel
|
||||
BuildRequires: libaom-devel
|
||||
BuildRequires: libftl-devel
|
||||
BuildRequires: libGL-devel
|
||||
BuildRequires: libv4l-devel
|
||||
BuildRequires: librist-devel
|
||||
@@ -96,7 +95,7 @@ software for video recording and live streaming.
|
||||
|
||||
%package libs
|
||||
Summary: Open Broadcaster Software Studio libraries
|
||||
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
|
||||
%{?_qt6:Requires: %{_qt6}%{?_isa} = %{_qt6_version}}
|
||||
|
||||
%description libs
|
||||
Library files for Open Broadcaster Software
|
||||
@@ -122,18 +121,27 @@ sed -i 's|OBS_MULTIARCH_SUFFIX|LIB_SUFFIX|g' cmake/Modules/ObsHelpers.cmake
|
||||
|
||||
# Prepare plugins/obs-vkcapture
|
||||
git clone --recurse-submodules https://github.com/nowrep/obs-vkcapture plugins/obs-vkcapture
|
||||
cd plugins/obs-vkcapture
|
||||
sed -i 's/install_obs_plugin_with_data/setup_plugin_target/g' CMakeLists.txt
|
||||
cd ../../
|
||||
|
||||
# Prepare plugins/obs-websocket
|
||||
git clone --recurse-submodules https://github.com/obsproject/obs-websocket plugins/obs-websocket
|
||||
|
||||
# Prepare plugins/streamfx
|
||||
git clone --recurse-submodules --depth 1 --branch 0.12.0a45 https://github.com/Xaymar/obs-StreamFX plugins/streamfx
|
||||
git clone --recurse-submodules https://github.com/Xaymar/obs-StreamFX plugins/streamfx
|
||||
cd plugins/streamfx
|
||||
git checkout 1d1e646a2319d45ff84e31b1ab0da4a5395d845b
|
||||
cd ../../
|
||||
|
||||
# Prepare plugins/obs-browser
|
||||
git clone --recurse-submodules https://github.com/obsproject/obs-browser plugins/obs-browser
|
||||
|
||||
# Prepare plugins/obs-source-record
|
||||
git clone --recurse-submodules https://github.com/exeldro/obs-source-record plugins/obs-source-record
|
||||
cd plugins/obs-source-record
|
||||
sed -i 's/install_obs_plugin_with_data/setup_plugin_target/g' CMakeLists.txt
|
||||
cd ../../
|
||||
|
||||
# Prepare CEF source for obs-browser
|
||||
tar -xf %{SOURCE1} -C ../
|
||||
@@ -142,7 +150,7 @@ tar -xf %{SOURCE1} -C ../
|
||||
%build
|
||||
%cmake -DOBS_VERSION_OVERRIDE=%{version} \
|
||||
-DUNIX_STRUCTURE=1 -GNinja \
|
||||
-DCEF_ROOT_DIR=../cef_binary_4638_linux64 \
|
||||
-DCEF_ROOT_DIR=../cef_binary_5060_linux64 \
|
||||
-DStreamFX_ENABLE_CLANG=OFF \
|
||||
%if ! %{with lua_scripting}
|
||||
-DDISABLE_LUA=ON \
|
||||
@@ -155,13 +163,14 @@ tar -xf %{SOURCE1} -C ../
|
||||
%cmake_install
|
||||
|
||||
# Add missing files to enable the build of obs-ndi
|
||||
mkdir -p %{buildroot}%{_libdir}/cmake/LibObs/
|
||||
mkdir -p %{buildroot}%{_libdir}/cmake/libobs/
|
||||
install -Dm644 UI/obs-frontend-api/obs-frontend-api.h %{buildroot}%{_includedir}/obs/
|
||||
install -Dm644 cmake/external/ObsPluginHelpers.cmake %{buildroot}%{_libdir}/cmake/LibObs/
|
||||
install -Dm644 cmake/external/ObsPluginHelpers.cmake %{buildroot}%{_libdir}/cmake/libobs/
|
||||
|
||||
# cleanup gamecapture plugin files, we ship these in a separate package obs-studio-gamecapture to allow 32 and 64 bit versions
|
||||
rm %{buildroot}/%{_bindir}/obs-vkcapture
|
||||
rm %{buildroot}/%{_bindir}/obs-glcapture
|
||||
rm %{buildroot}/%{_bindir}/obs-gamecapture
|
||||
rm %{buildroot}/%{_datadir}/vulkan/implicit_layer.d/*.json
|
||||
rm %{buildroot}/%{_libdir}/libobs_glcapture.so
|
||||
rm %{buildroot}/%{_libdir}/libVkLayer_obs_vkcapture.so
|
||||
@@ -188,7 +197,8 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
%{_libdir}/cmake/LibObs/
|
||||
%{_libdir}/cmake/libobs/
|
||||
%{_libdir}/cmake/obs-frontend-api/
|
||||
%{_libdir}/pkgconfig/libobs.pc
|
||||
%{_includedir}/obs/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user