--- /dev/null
+--- endeavour-3.1.4/endeavour2/imgio_gif.c~ 2014-11-10 08:41:48.000000000 +0100
++++ endeavour-3.1.4/endeavour2/imgio_gif.c 2014-11-10 08:43:54.590693857 +0100
+@@ -1465,7 +1465,7 @@
+ if(ctx != NULL) { \
+ /* Close the GIF file */ \
+ if(ctx->gif_file != NULL) \
+- (void)DGifCloseFile(ctx->gif_file); \
++ (void)DGifCloseFile(ctx->gif_file, NULL); \
+ \
+ /* Delete the GIF screen */ \
+ if(ctx->gif_screen != NULL) { \
+@@ -1762,7 +1762,7 @@
+ }
+
+ /* End the GIF decoding */
+- gif_status = DGifCloseFile(ctx->gif_file);
++ gif_status = DGifCloseFile(ctx->gif_file, NULL);
+ if(gif_status != GIF_OK)
+ {
+ ImgOpenSetError(DGIF_STR_ERROR(ctx->gif_file->Error));
+@@ -1973,7 +1973,7 @@
+ if(ctx != NULL) { \
+ /* Close the GIF file */ \
+ if(ctx->gif_file != NULL) \
+- (void)DGifCloseFile(ctx->gif_file); \
++ (void)DGifCloseFile(ctx->gif_file, NULL); \
+ \
+ /* Delete the GIF screen */ \
+ if(ctx->gif_screen != NULL) { \
+@@ -2281,7 +2281,7 @@
+ }
+
+ /* End the GIF decoding */
+- gif_status = DGifCloseFile(ctx->gif_file);
++ gif_status = DGifCloseFile(ctx->gif_file, NULL);
+ if(gif_status != GIF_OK)
+ {
+ ImgOpenSetError(DGIF_STR_ERROR(ctx->gif_file->Error));
+@@ -3994,7 +3994,7 @@
+ if(ctx != NULL) { \
+ /* Close the GIF file */ \
+ if(ctx->gif_file != NULL) \
+- (void)EGifCloseFile(ctx->gif_file); \
++ (void)EGifCloseFile(ctx->gif_file, NULL); \
+ \
+ free(ctx); \
+ } \
+@@ -4177,7 +4177,7 @@
+ }
+
+ /* End the GIF encoding */
+- gif_status = EGifCloseFile(ctx->gif_file);
++ gif_status = EGifCloseFile(ctx->gif_file, NULL);
+ if(gif_status != GIF_OK)
+ {
+ ImgSaveSetError(EGIF_STR_ERROR(ctx->gif_file->Error));
Summary(pl.UTF-8): Oprogramowanie do zarządzania plikami Endeavour Mark II
Name: endeavour
Version: 3.1.4
-Release: 3
+Release: 4
License: GPL v2
Group: X11/Applications
Source0: http://wolfsinger.com/~wolfpack/packages/%{name}-%{version}.tar.bz2
Patch4: %{name}-libmng.patch
Patch5: %{name}-libpng.patch
Patch6: %{name}-PLD-polish.patch
+Patch7: %{name}-giflib51.patch
URL: http://freecode.com/projects/endeavour2
BuildRequires: bzip2-devel
-BuildRequires: giflib-devel
+BuildRequires: giflib-devel >= 5.1.0
BuildRequires: glib-devel >= 1.2
%{!?with_gtk2:BuildRequires: gtk+-devel >= 1.2}
%{?with_gtk2:BuildRequires: gtk+2-devel >= 2.0}
BuildRequires: libtar-devel
BuildRequires: libtiff-devel
BuildRequires: libzip-devel
-%{?with_gtk2:BuildRequires: pkgconfig}
+BuildRequires: pkgconfig
BuildRequires: xar-devel
BuildRequires: xorg-lib-libXpm-devel
BuildRequires: xorg-lib-libXxf86vm-devel
%if %{with polish}
%patch6 -p1
%endif
+%patch7 -p1
%build
./configure \
%{__make} \
CC="%{__cc}" \
CPP="%{__cxx}" \
- OPTCFLAGS="%{rpmcflags} -fPIC" \
+ OPTCFLAGS="%{rpmcflags} -fPIC `pkg-config --cflags libzip`" \
EDV_BIN_DIR=%{pkglibdir}/bin \
EDV_LIB_DIR=%{_libdir}