diff --git a/libplacebo.spec b/libplacebo.spec index 8d08ec7..dc843cc 100644 --- a/libplacebo.spec +++ b/libplacebo.spec @@ -1,6 +1,6 @@ Name: libplacebo Version: 0.4.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Reusable library for GPU-accelerated video/image rendering primitives License: LGPLv2+ @@ -8,7 +8,16 @@ URL: https://github.com/haasn/libplacebo Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: meson +# Use a more modern compiler toolchain on EL7 +%if 0%{?rhel} == 7 +BuildRequires: devtoolset-7-toolchain, devtoolset-7-libatomic-devel +# Vulkan is optional, but only available on theses arches for EL7 +%ifarch x86_64 ppc64le BuildRequires: vulkan-devel +%endif +%else # Fedora +BuildRequires: vulkan-devel +%endif %description @@ -37,8 +46,17 @@ developing applications that use %{name}. %prep %autosetup -p1 +%if 0%{?rhel} == 7 +. /opt/rh/devtoolset-7/enable +%endif + %build + +%if 0%{?rhel} == 7 +. /opt/rh/devtoolset-7/enable +%endif + %meson %meson_build @@ -62,5 +80,8 @@ developing applications that use %{name}. %changelog +* Mon May 21 2018 Nicolas Chauvet - 0.4.0-2 +- Fix build on EL7 + * Mon Feb 12 2018 Nicolas Chauvet - 0.4.0-1 - Initial spec file