From 904d849b2a5c635b0c76e88afc1d112804aba4fa Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Mon, 21 May 2018 15:15:08 +0200 Subject: [PATCH] Add preliminary work for vlc-3.x in el7 --- vlc.spec | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/vlc.spec b/vlc.spec index 3004b98..19fdaf4 100644 --- a/vlc.spec +++ b/vlc.spec @@ -195,6 +195,10 @@ BuildRequires: raspberrypi-vc-devel } %endif +%if 0%{?rhel} == 7 +BuildRequires: devtoolset-7-toolchain, devtoolset-7-libatomic-devel +%endif + %{?_with_workaround_circle_deps:BuildRequires: phonon-backend-gstreamer} @@ -267,6 +271,11 @@ VLC media player extras modules. %prep %setup -q -n %{name}-%{version}%{?vlc_rc:-%{vlc_rc}} %patch0 -p1 + +%if 0%{?rhel} == 7 +. /opt/rh/devtoolset-7/enable +%endif + %{?_with_bootstrap: rm aclocal.m4 m4/lib*.m4 m4/lt*.m4 || : ./bootstrap @@ -274,6 +283,10 @@ rm aclocal.m4 m4/lib*.m4 m4/lt*.m4 || : %build +%if 0%{?rhel} == 7 +. /opt/rh/devtoolset-7/enable +%endif + %configure \ --disable-dependency-tracking \ --disable-optimizations \