[packages/giflib4] Rel 3
arekm
arekm at pld-linux.org
Sun Aug 23 14:32:51 CEST 2026
commit 8f29e816fab2d01bc120f2c7ed22ceaed7bf935a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Aug 23 14:32:43 2026 +0200
Rel 3
giflib4-getarg-bool.patch | 37 +++++++++++++++++++++++++++++++++++++
giflib4-includes.patch | 10 ++++++++++
giflib4-lib-no-x11.patch | 8 ++++++++
giflib4.spec | 14 +++++++++-----
4 files changed, 64 insertions(+), 5 deletions(-)
---
diff --git a/giflib4.spec b/giflib4.spec
index 0f2e4d4..051b73d 100644
--- a/giflib4.spec
+++ b/giflib4.spec
@@ -10,17 +10,19 @@ Summary(ru.UTF-8): Библиотека для работы с GIF-файлам
Summary(uk.UTF-8): Бібліотека для роботи з GIF-файлами
Name: giflib4
Version: 4.2.3
-Release: 2
+Release: 3
License: MIT-like
Group: Libraries
-Source0: http://downloads.sourceforge.net/giflib/giflib-%{version}.tar.bz2
+Source0: https://downloads.sourceforge.net/giflib/giflib-%{version}.tar.bz2
# Source0-md5: be1f5749c24644257a88c9f42429343d
Patch0: %{name}-link.patch
-URL: http://sourceforge.net/projects/giflib/
+Patch1: %{name}-includes.patch
+Patch2: %{name}-lib-no-x11.patch
+Patch3: %{name}-getarg-bool.patch
+URL: https://sourceforge.net/projects/giflib/
BuildRequires: autoconf >= 2.59-9
BuildRequires: automake
BuildRequires: libtool
-BuildRequires: netpbm-devel
BuildRequires: rpmbuild(macros) >= 1.213
BuildRequires: sed
BuildRequires: xmlto
@@ -67,7 +69,6 @@ Summary(ru.UTF-8): Хедеры, библиотеки и документаци
Summary(uk.UTF-8): Хедери, бібліотеки та документація GIF-бібліотеки
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-%{?with_x:Requires: xorg-lib-libX11-devel}
Provides: libungif-devel
Obsoletes: giflib-devel < 5
Obsoletes: libungif-devel
@@ -156,6 +157,9 @@ GIF.
%prep
%setup -q -n giflib-%{version}
%patch -P0 -p1
+%patch -P1 -p1
+%patch -P2 -p1
+%patch -P3 -p1
%build
%{__libtoolize}
diff --git a/giflib4-getarg-bool.patch b/giflib4-getarg-bool.patch
new file mode 100644
index 0000000..f96eb27
--- /dev/null
+++ b/giflib4-getarg-bool.patch
@@ -0,0 +1,37 @@
+--- giflib-4.2.3/util/getarg.c.orig
++++ giflib-4.2.3/util/getarg.c
+@@ -54,9 +54,9 @@
+ *
+ * The variables passed to GAGetArgs (starting from 4th parameter) MUST
+ * match the order of the CtrlStr:
+- * For each option, one integer address must be passed. This integer must
+- * initialized by 0. If that option is given in the command line, it will
+- * be set to one.
++ * For each option, one bool address must be passed. This bool must
++ * initialized by false. If that option is given in the command line, it will
++ * be set to true.
+ * In addition, the sequences that might follow an option require the
+ * following parameters to pass:
+ * 1. d, x, o, u - pointer to integer (int *).
+@@ -273,7 +273,7 @@
+ correct prm. */
+ i += 3;
+ /* Set boolean flag for that option. */
+- *Parameters[(*ParamCount)++] = BooleanTrue;
++ *(bool *)Parameters[(*ParamCount)++] = BooleanTrue;
+ if (ISSPACE(CtrlStrCopy[i]))
+ return ARG_OK; /* Only a boolean flag is needed. */
+
+--- giflib-4.2.3/util/rgb2gif.c.orig
++++ giflib-4.2.3/util/rgb2gif.c
+@@ -386,8 +386,8 @@
+ ******************************************************************************/
+ int main(int argc, char **argv)
+ {
+- int NumFiles, Width, Height, SizeFlag;
+- bool Error;
++ int NumFiles, Width, Height;
++ bool Error, SizeFlag;
+ char **FileName = NULL;
+ GifByteType *RedBuffer = NULL, *GreenBuffer = NULL, *BlueBuffer = NULL,
+ *OutputBuffer = NULL;
diff --git a/giflib4-includes.patch b/giflib4-includes.patch
new file mode 100644
index 0000000..2d89ac2
--- /dev/null
+++ b/giflib4-includes.patch
@@ -0,0 +1,10 @@
+--- giflib-4.2.3/lib/gif_hash.c.orig
++++ giflib-4.2.3/lib/gif_hash.c
+@@ -18,6 +18,7 @@
+
+ #include <unistd.h>
+ #include <stdint.h>
++#include <stdlib.h>
+ #include <fcntl.h>
+ #include <stdio.h>
+ #include <string.h>
diff --git a/giflib4-lib-no-x11.patch b/giflib4-lib-no-x11.patch
new file mode 100644
index 0000000..e99a123
--- /dev/null
+++ b/giflib4-lib-no-x11.patch
@@ -0,0 +1,8 @@
+--- giflib-4.2.3/lib/Makefile.am.orig
++++ giflib-4.2.3/lib/Makefile.am
+@@ -16,5 +16,4 @@
+ gif_lib_private.h
+
+ libgif_la_LDFLAGS = -no-undefined -version-info @SHLIBVERSION@
+-libgif_la_LIBADD = @DEVS@
+ libgif_CFLAGS = $(X_CFLAGS) $(AM_CFLAGS)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/giflib4.git/commitdiff/8f29e816fab2d01bc120f2c7ed22ceaed7bf935a
More information about the pld-cvs-commit
mailing list