# # spec file for package libheif.spec # # Copyright (c) 2019 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 soname 1 Name: libheif Version: 1.6.0+git20191203.a0df959 Release: lp152.1.1 Summary: HEIF file format decoder and encoder License: GPL-2.0-or-later URL: https://github.com/strukturag/libheif Source: %{name}-%{version}.tar.xz BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: libtool 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 heif-tools Summary: HEIF file format decoder and encoder binaries Requires: %{name}%{soname} = %{version} %description -n heif-tools A ISO/IEC 23008-12:2017 HEIF file format decoder and encoder. This package contains the binary tools. %package -n %{name}%{soname} Summary: HEIF file format decoder and encoder shared library %description -n %{name}%{soname} A ISO/IEC 23008-12:2017 HEIF file format decoder and encoder. This package contains the shared library. %package devel Summary: Devel Package for %{name} Requires: %{name}%{soname} = %{version} Requires: glibc-devel Requires: pkgconfig(x265) %description devel A ISO/IEC 23008-12:2017 HEIF file format decoder and encoder. This package contains the header files. %prep %autosetup %build ./autogen.sh %configure --disable-static make %{?_smp_mflags} %install %make_install find %{buildroot} -type f -name "*.la" -delete -print %post -n %{name}%{soname} -p /sbin/ldconfig %postun -n %{name}%{soname} -p /sbin/ldconfig %files -n heif-tools %license COPYING %doc README.md %{_bindir}/heif-* %{_datadir}/mime/packages/heif.xml %dir %{_datadir}/thumbnailers %{_datadir}/thumbnailers/heif.thumbnailer %{_mandir}/man1/heif-*.1%{?ext_man} %{_libdir}/gdk-pixbuf-2.0/%{gdk_pixbuf_binary_version}/loaders/*.so %files -n %{name}%{soname} %{_libdir}/libheif.so.* %files devel %{_includedir}/libheif* %{_libdir}/libheif.so %{_libdir}/pkgconfig/libheif*.pc %changelog * Fri Dec 13 2019 malcolmlewis@opensuse.org - Initial build at version 1.6.0+git20191203.a0df959.