commit 42d24165843b0b99b5f4f0d4ee057d141df26e9d
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Mon Jun 15 09:20:23 2020 +0200
Add macro for dts_ver
vlc.spec | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/vlc.spec b/vlc.spec
index 5e22256..2274eb0 100644
--- a/vlc.spec
+++ b/vlc.spec
@@ -42,6 +42,8 @@
%if 0%{?el7}
%global _with_opencv 1
+# Developper toolset version
+%global dts_ver 7
%endif
@@ -222,7 +224,7 @@ BuildRequires: raspberrypi-vc-static
}
%if 0%{?el7}
-BuildRequires: devtoolset-7-toolchain, devtoolset-7-libatomic-devel
+BuildRequires: devtoolset-%{dts_ver}-toolchain, devtoolset-%{dts_ver}-libatomic-devel
%endif
%if 0%{?fedora} || 0%{?rhel} >= 8
@@ -335,7 +337,7 @@ touch src/revision.txt
%build
%if 0%{?el7}
-. /opt/rh/devtoolset-7/enable
+. /opt/rh/devtoolset-%{dts_ver}/enable
%endif
%configure \
@@ -436,7 +438,7 @@ rm -rf %{buildroot}%{_datadir}/kde4
%check
%if 0%{?el7}
-. /opt/rh/devtoolset-7/enable
+. /opt/rh/devtoolset-%{dts_ver}/enable
%endif
make check