Name: libplacebo Version: 0.6.0 Release: 2%{?dist} Summary: Reusable library for GPU-accelerated video/image rendering primitives License: LGPLv2+ URL: https://github.com/haasn/libplacebo Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Patch0: libplacebo-0.6.0-backports.patch BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: meson BuildRequires: lcms2-devel BuildRequires: libshaderc-devel >= 2018.0-1 # 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 BuildRequires: glslang-devel %endif %description libplacebo is essentially the core rendering algorithms and ideas of mpv turned into a library. This grew out of an interest to accomplish the following goals: - Clean up mpv's internal API and make it reusable for other projects. - Provide a standard library of useful GPU-accelerated image processing primitives based on GLSL, so projects like VLC or Firefox can use them without incurring a heavy dependency on `libmpv`. - Rewrite core parts of mpv's GPU-accelerated video renderer on top of redesigned abstractions. (Basically, I wanted to eliminate code smell like `shader_cache.c` and totally redesign `gpu/video.c`) %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for 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 %install %meson_install %ldconfig_scriptlets %files %license LICENSE %doc README.md %{_libdir}/*.so.* %files devel %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/libplacebo.pc %changelog * Wed Oct 03 2018 Nicolas Chauvet - 0.6.0-2 - Drop WAR patch - Enforce the shaderc version * Mon Oct 01 2018 Nicolas Chauvet - 0.6.0-1 - Update to 0.6.0 * Tue Jul 17 2018 Nicolas Chauvet - 0.5.0-1 - Update to 0.5.0 * Fri Jul 13 2018 Fedora Release Engineering - 0.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * 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