From 3f9d17cdbdb9230472993ece2773c69a45b28496 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Tue, 1 Oct 2019 13:08:50 +0200 Subject: [PATCH] Move quantize.c back into libgif.so (#1750122) --- giflib.spec | 7 ++++++- giflib_quantize.patch | 17 +++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 giflib_quantize.patch diff --git a/giflib.spec b/giflib.spec index 7510f76..2f05933 100644 --- a/giflib.spec +++ b/giflib.spec @@ -1,11 +1,13 @@ Name: giflib Summary: A library and utilities for processing GIFs Version: 5.1.9 -Release: 1%{?dist} +Release: 2%{?dist} License: MIT URL: http://www.sourceforge.net/projects/%{name}/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +# Move quantize.c back into libgif.so (#1750122) +Patch0: giflib_quantize.patch BuildRequires: gcc BuildRequires: make @@ -68,6 +70,9 @@ rm -f %{buildroot}%{_libdir}/libgif.a %changelog +* Tue Oct 01 2019 Sandro Mani - 5.1.9-2 +- Move quantize.c back into libgif.so (#1750122) + * Mon Apr 01 2019 Sandro Mani - 5.1.9-1 - Update to 5.1.9 diff --git a/giflib_quantize.patch b/giflib_quantize.patch new file mode 100644 index 0000000..4982004 --- /dev/null +++ b/giflib_quantize.patch @@ -0,0 +1,17 @@ +diff -rupN --no-dereference giflib-5.1.9/Makefile giflib-5.1.9-new/Makefile +--- giflib-5.1.9/Makefile 2019-03-28 19:57:23.000000000 +0100 ++++ giflib-5.1.9-new/Makefile 2019-10-01 13:13:02.738924566 +0200 +@@ -29,11 +29,11 @@ LIBPOINT=0 + LIBVER=$(LIBMAJOR).$(LIBMINOR).$(LIBPOINT) + + SOURCES = dgif_lib.c egif_lib.c gifalloc.c gif_err.c gif_font.c \ +- gif_hash.c openbsd-reallocarray.c ++ gif_hash.c openbsd-reallocarray.c quantize.c + HEADERS = gif_hash.h gif_lib.h gif_lib_private.h + OBJECTS = $(SOURCES:.c=.o) + +-USOURCES = qprintf.c quantize.c getarg.c ++USOURCES = qprintf.c getarg.c + UHEADERS = getarg.h + UOBJECTS = $(USOURCES:.c=.o) +