commit 3eaa4413a1f56d6b186a1d2a78f2b7298796273b
Author: Momcilo Medic <fedorauser(a)fedoraproject.org>
Date: Wed Oct 14 16:46:34 2020 +0200
Added devtoolset bits for building.
obs-studio.spec | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/obs-studio.spec b/obs-studio.spec
index 8505c3d..64f2fbb 100644
--- a/obs-studio.spec
+++ b/obs-studio.spec
@@ -61,6 +61,9 @@ BuildRequires: swig
BuildRequires: libxcb-devel
BuildRequires: mbedtls-devel
BuildRequires: libappstream-glib
+%if 0%{?el7}
+BuildRequires: devtoolset-%{dts_ver}-toolchain, devtoolset-%{dts_ver}-libatomic-devel
+%endif
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: ffmpeg
@@ -85,6 +88,9 @@ Header files for Open Broadcaster Software
%prep
+%if 0%{?el7}
+. /opt/rh/devtoolset-%{dts_ver}/enable
+%endif
%autosetup -p0
# rpmlint reports E: hardcoded-library-path
@@ -92,6 +98,9 @@ Header files for Open Broadcaster Software
sed -i 's|OBS_MULTIARCH_SUFFIX|LIB_SUFFIX|g' cmake/Modules/ObsHelpers.cmake
%build
+%if 0%{?el7}
+. /opt/rh/devtoolset-%{dts_ver}/enable
+%endif
%cmake3 -DOBS_VERSION_OVERRIDE=%{version} \
-DUNIX_STRUCTURE=1 -GNinja \
-DOpenGL_GL_PREFERENCE=GLVND
@@ -106,6 +115,9 @@ install -Dm644 UI/obs-frontend-api/obs-frontend-api.h
%{buildroot}%{_includedir}
install -Dm644 cmake/external/ObsPluginHelpers.cmake
%{buildroot}%{_libdir}/cmake/LibObs/
%check
+%if 0%{?el7}
+. /opt/rh/devtoolset-%{dts_ver}/enable
+%endif
/usr/bin/desktop-file-validate
%{buildroot}/%{_datadir}/applications/com.obsproject.Studio.desktop
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml
Show replies by date