Name: libultrahdr Version: 1.4.0 Release: %autorelease Summary: A fast image processing library with low memory needs. License: LGPL-2.1-or-later URL: https://github.com/google/libultrahdr Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Patch0: https://github.com/google/libultrahdr/pull/363.patch#/add-missing-header.patch Patch1: https://github.com/google/libultrahdr/pull/376.patch#/add-ppc64le-and-s390x-build-support.patch Patch2: https://github.com/google/libultrahdr/pull/381.patch#/use-system-gtest.patch BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: libjpeg-turbo-devel BuildRequires: gtest-devel BuildRequires: gmock-devel %description libultrahdr is an image compression library that uses gain map technology to store and distribute HDR images. Conceptually on the encoding side, the library accepts SDR and HDR rendition of an image and from these a Gain Map (quotient between the two renditions) is computed. The library then uses backward compatible means to store the base image (SDR), gain map image and some associated metadata. Legacy readers that do not support handling the gain map image and/or metadata, will display the base image. Readers that support the format combine the base image with the gain map and render a high dynamic range image on compatible displays. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains development files for %{name}. %prep %autosetup -p1 -C %build %cmake -DUHDR_BUILD_TESTS=ON -DUHDR_ENABLE_SYSTEM_GTEST=ON %cmake_build %install %cmake_install rm %{buildroot}%{_libdir}/libuhdr.a %check %ctest %files %license %doc README.md %{_libdir}/libuhdr.so.1* %files devel %{_bindir}/ultrahdr_app %{_includedir}/ultrahdr_api.h %{_libdir}/libuhdr.so %{_libdir}/pkgconfig/libuhdr.pc %changelog %autochangelog