# # spec file for package libheif.spec # # Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define gdk_pixbuf_binary_version 2.10.0 %define lib_name libheif1 Name: libheif Version: 1.6.2+git20200131.3824054 Release: pm152.1.6 Summary: HEIF file format decoder and encoder License: GPL-2.0-or-later URL: https://github.com/strukturag/libheif Source: %{name}-%{version}.tar.xz #PATCH-FIX-UPSTREAM libheif-fix-gdk-pixbuf-linking.patch asn@cryptomilk.org -- Fix linking gdk-pixbuf against libheif. Patch0: libheif-fix-gdk-pixbuf-linking.patch BuildRequires: cmake BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: pkgconfig(gdk-pixbuf-2.0) BuildRequires: pkgconfig(libde265) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(x265) %description A ISO/IEC 23008-12:2017 HEIF file format decoder and encoder. %package -n %{lib_name} Summary: HEIF file format decoder and encoder shared library Obsoletes: heif-tools < %{version} Provides: heif-tools = %{version} %description -n %{lib_name} A ISO/IEC 23008-12:2017 HEIF file format decoder and encoder. This package contains the shared library for %{name}. %package -n gdk-pixbuf-loader-libheif Summary: GDK PixBuf Loader for %{name} %{gdk_pixbuf_loader_requires} %description -n gdk-pixbuf-loader-libheif A ISO/IEC 23008-12:2017 HEIF file format decoder and encoder. This package contains the GDK PixBuf Loader for %{name}. %package devel Summary: Devel Package for %{name} Requires: %{lib_name} = %{version} Requires: heif-devel-headers = %{version} %description devel A ISO/IEC 23008-12:2017 HEIF file format decoder and encoder. This package contains the development library and cmake files for %{name}. %package -n heif-devel-headers Summary: Development headers for %{name} BuildArch: noarch %description -n heif-devel-headers A ISO/IEC 23008-12:2017 HEIF file format decoder and encoder. This package contains development headers for %{name}. %prep %autosetup -p1 %build %cmake %cmake_build %install %cmake_install find %{buildroot} -type f -name "*.la" -delete -print %fdupes -s %{buildroot}%{_includedir} %post -n %{lib_name} -p /sbin/ldconfig %postun -n %{lib_name} -p /sbin/ldconfig %post -n gdk-pixbuf-loader-libheif %{gdk_pixbuf_loader_post} %postun -n gdk-pixbuf-loader-libheif %{gdk_pixbuf_loader_postun} %files -n %{lib_name} %license COPYING %{_libdir}/libheif.so.* %files -n gdk-pixbuf-loader-libheif %license COPYING %{_libdir}/gdk-pixbuf-2.0/%{gdk_pixbuf_binary_version}/loaders/*.so %files devel %{_libdir}/libheif.so %{_libdir}/pkgconfig/libheif.pc %{_libdir}/cmake/libheif %files -n heif-devel-headers %{_includedir}/libheif %changelog * Tue Feb 4 2020 malcolmlewis@opensuse.org - Update to version 1.6.2+git20200131.3824054: * Add heix support to README * Increase max memory block size to 512 MB (#192) * Support heix brand HDR images * cmake: Generate compile database * cmake: Create libheif pkgconfig file * cmake: Use find_package for finding PkgConfig * cmake: Use libheif as the project name * cmake: Correctly install heif_version.h * examples: Correctly cast value to uint8_t * encoder: Fix unused variable error * box: Fix size comparison * check if widht/height are positive values * Fix for the gdk pixbuf loader - Drop libheif-fix-cmake.patch as this has been upstreamed. - Add libheif-fix-gdk-pixbuf-linking.patch: Fix linking gdk-pixbuf against libheif, https://github.com/strukturag/libheif/pull/198. * Mon Jan 13 2020 malcolmlewis@opensuse.org - Add libheif-fix-cmake.patch: Several fixes to build with cmake, see https://github.com/strukturag/libheif/pull/195 - Obsolete heif-tools, these are just example programs. * Wed Jan 8 2020 malcolmlewis@opensuse.org Update to version 1.6.1+git20191230.03f2283: * Fix compiler warning for undefined variable. * Add more constants to fuzzing dictionary. * Increase coverage of box fuzzer. * Reformat gdk-pixbuf source to consistent whitespaces. * Fix allocation of grid image when it has an odd size. * Fix releasing of image memory in gdk-pixbuf-loader. * Emscripten SDK name has changed. * Remove duplicate code in CMakeLists. * Have to add the TWEAK part to the version number, otherwise that CMake variable is undefined. * Remove need for HAVE_STDDEF/STDLIB/INTTYPES by using cstddef,cstdlib,cinttypes. * Removed CMake include thats apparently not used. * Build version number from parts also in autoconf tool-chain. * Build NUMERIC_VERSION automatically from CMake project version. * Change project name to heif. * Use add_library() depending on BUILD_SHARED_LIBS. * Rename cmake config and config-version files. * Propagate include directories with libheif cmake target. * Replace hardcoded name by PROJECT_NAME variable. * Include PROJECT_BINARY_DIR to find heif_version.h (in examples folder). * Use less CMake conditionals and variables. * heif_version.h is generated in the build_directory instead of doing it in the source_directory. * Add CMake installation commands. * Separate libheif sources and headers. * CMake standard way of defining visibility and position independent code. * Do not use LIBHEIF_LIBRARY_NAME but PROJECT_NAME. * CMake modern way of requiring C++11 * Require CMake more recent version. - Really split out pixbuf-loader to sub-package. * Wed Dec 25 2019 malcolmlewis@opensuse.org - Split out pixbuf-loader into a new sub-package. - Spec file clean up. * Fri Dec 13 2019 malcolmlewis@opensuse.org - Initial build at version 1.6.0+git20191203.a0df959.