Fix build on EL7

f37
Nicolas Chauvet 7 years ago
parent 1ca1e8598d
commit 566da35f0c

@ -1,6 +1,6 @@
Name: libplacebo Name: libplacebo
Version: 0.4.0 Version: 0.4.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: Reusable library for GPU-accelerated video/image rendering primitives Summary: Reusable library for GPU-accelerated video/image rendering primitives
License: LGPLv2+ License: LGPLv2+
@ -8,7 +8,16 @@ URL: https://github.com/haasn/libplacebo
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: meson 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 BuildRequires: vulkan-devel
%endif
%else # Fedora
BuildRequires: vulkan-devel
%endif
%description %description
@ -37,8 +46,17 @@ developing applications that use %{name}.
%prep %prep
%autosetup -p1 %autosetup -p1
%if 0%{?rhel} == 7
. /opt/rh/devtoolset-7/enable
%endif
%build %build
%if 0%{?rhel} == 7
. /opt/rh/devtoolset-7/enable
%endif
%meson %meson
%meson_build %meson_build
@ -62,5 +80,8 @@ developing applications that use %{name}.
%changelog %changelog
* Mon May 21 2018 Nicolas Chauvet <kwizart@gmail.com> - 0.4.0-2
- Fix build on EL7
* Mon Feb 12 2018 Nicolas Chauvet <kwizart@gmail.com> - 0.4.0-1 * Mon Feb 12 2018 Nicolas Chauvet <kwizart@gmail.com> - 0.4.0-1
- Initial spec file - Initial spec file

Loading…
Cancel
Save