Move quantize.c back into libgif.so (#1750122)

This commit is contained in:
Sandro Mani 2019-10-01 13:08:50 +02:00
parent 48fc3cfe92
commit 109bf038d7
2 changed files with 23 additions and 1 deletions

View File

@ -1,11 +1,13 @@
Name: giflib
Summary: A library and utilities for processing GIFs
Version: 5.2.1
Release: 2%{?dist}
Release: 3%{?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 <manisandro@gmail.com> - 5.2.1-3
- Move quantize.c back into libgif.so (#1750122)
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

17
giflib_quantize.patch Normal file
View File

@ -0,0 +1,17 @@
diff -rupN giflib-5.2.1/Makefile giflib-5.2.1-new/Makefile
--- giflib-5.2.1/Makefile 2019-06-24 18:08:57.000000000 +0200
+++ giflib-5.2.1-new/Makefile 2019-10-01 13:02:33.227952230 +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)