[packages/libheif] - updated to 1.4.0 - added gdkpixbuf patch (drop version from gdk-pixbuf loader module), added gdk-p

qboosh qboosh at pld-linux.org
Sun Jun 16 10:44:27 CEST 2019


commit 21ff4bc0d3bbd52b7f3d66ff851b8b6460702ead
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jun 16 10:45:33 2019 +0200

    - updated to 1.4.0
    - added gdkpixbuf patch (drop version from gdk-pixbuf loader module), added gdk-pixbuf2-loader-heif package

 libheif-gdkpixbuf.patch | 10 ++++++++++
 libheif.spec            | 39 ++++++++++++++++++++++++++++++++++-----
 2 files changed, 44 insertions(+), 5 deletions(-)
---
diff --git a/libheif.spec b/libheif.spec
index 17b395d..73c9aa3 100644
--- a/libheif.spec
+++ b/libheif.spec
@@ -5,19 +5,24 @@
 Summary:	ISO/IEC 23008-12:2017 HEIF file format decoder and encoder
 Summary(pl.UTF-8):	Koder i dekoder formatu plików HEIF zgodnego z ISO/IEC 23008-12:2017
 Name:		libheif
-Version:	1.3.2
-Release:	4
+Version:	1.4.0
+Release:	1
 License:	LGPL v3+ (library), GPL v3+ (tools)
 Group:		Libraries
 #Source0Download: https://github.com/strukturag/libheif/releases/
 Source0:	https://github.com/strukturag/libheif/releases/download/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	634b0d33db07c85eea2f56c1d8cb87b1
+# Source0-md5:	b3c726609a8750c5fc1687a7b193adff
 Patch0:		%{name}-pc.patch
+Patch1:		%{name}-gdkpixbuf.patch
 URL:		https://github.com/strukturag/libheif
+BuildRequires:	autoconf >= 2.68
+BuildRequires:	automake
+BuildRequires:	gdk-pixbuf2-devel >= 2.0
 BuildRequires:	libde265-devel
 BuildRequires:	libjpeg-devel
 BuildRequires:	libpng-devel
-BuildRequires:	libstdc++-devel
+BuildRequires:	libstdc++-devel >= 6:4.7
+BuildRequires:	libtool >= 2:2
 BuildRequires:	libx265-devel
 BuildRequires:	rpmbuild(macros) >= 1.734
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -53,7 +58,7 @@ License:	LGPL v3+
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
 Requires:	libde265-devel
-Requires:	libstdc++-devel
+Requires:	libstdc++-devel >= 6:4.7
 Requires:	libx265-devel
 
 %description devel
@@ -90,11 +95,29 @@ This package contains utility programs to convert HEIF files.
 %description progs -l pl.UTF-8
 Ten pakiet zawiera programy narzędziowe do konwersji plików HEIF.
 
+%package -n gdk-pixbuf2-loader-heif
+Summary:	gdk-pixbuf plugin to handle HEIF files
+Summary(pl.UTF-8):	Wtyczka gdk-pixbuf do obsługi plików HEIF
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description -n gdk-pixbuf2-loader-heif
+gdk-pixbuf plugin to handle HEIF files.
+
+%description -n gdk-pixbuf2-loader-heif -l pl.UTF-8
+Wtyczka gdk-pixbuf do obsługi plików HEIF.
+
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure
 %{__make}
 
@@ -106,6 +129,8 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+# module loaded via gmodule
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.*/loaders/*.la
 # obsoleted by pkg-config
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libheif.la
 
@@ -139,3 +164,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/heif-thumbnailer
 %{_datadir}/mime/packages/heif.xml
 %{_datadir}/thumbnailers/heif.thumbnailer
+
+%files -n gdk-pixbuf2-loader-heif
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/2.*/loaders/libpixbufloader-heif.so
diff --git a/libheif-gdkpixbuf.patch b/libheif-gdkpixbuf.patch
new file mode 100644
index 0000000..e8bb4aa
--- /dev/null
+++ b/libheif-gdkpixbuf.patch
@@ -0,0 +1,10 @@
+--- libheif-1.4.0/gdk-pixbuf/Makefile.am.orig	2019-02-15 13:55:23.000000000 +0100
++++ libheif-1.4.0/gdk-pixbuf/Makefile.am	2019-06-16 09:41:54.575620160 +0200
+@@ -7,6 +7,7 @@
+ libpixbufloader_heif_la_DEPENDENCIES = ../libheif/libheif.la
+ libpixbufloader_heif_la_CFLAGS = -I$(top_srcdir) -I$(top_builddir) $(gdkpixbuf_CFLAGS)
+ libpixbufloader_heif_la_LIBADD = ../libheif/libheif.la $(gdkpixbuf_LIBS)
++libpixbufloader_heif_la_LDFLAGS = -module -avoid-version -shared
+ libpixbufloader_heif_la_SOURCES = pixbufloader-heif.c
+ endif
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libheif.git/commitdiff/21ff4bc0d3bbd52b7f3d66ff851b8b6460702ead



More information about the pld-cvs-commit mailing list