[packages/iv] - build fixes, release 5

qboosh qboosh at pld-linux.org
Sat Oct 4 21:07:00 CEST 2025


commit 427f3368e19bccd4b6c3fd8c88cd2f031617e34d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Oct 4 21:10:12 2025 +0200

    - build fixes, release 5

 iv-includes.patch | 40 ++++++++++++++++++++++++++++++++++++++++
 iv-nostrip.patch  | 14 ++++++++++++++
 iv-types.patch    | 20 ++++++++++++++++++++
 iv.spec           | 14 +++++++++++---
 4 files changed, 85 insertions(+), 3 deletions(-)
---
diff --git a/iv.spec b/iv.spec
index 9d05f3b..70e5f74 100644
--- a/iv.spec
+++ b/iv.spec
@@ -2,7 +2,7 @@ Summary:	ImgView - simple GTK+ image viewer using Imlib
 Summary(pl.UTF-8):	ImgView - prosta przeglądarka obrazków oparta na GTK+ i używająca Imliba
 Name:		iv
 Version:	2.6.1
-Release:	4
+Release:	5
 License:	GPL v2
 Group:		X11/Applications/Graphics
 Source0:	http://wolfsinger.com/~wolfpack/packages/%{name}-%{version}.tar.bz2
@@ -10,7 +10,11 @@ Source0:	http://wolfsinger.com/~wolfpack/packages/%{name}-%{version}.tar.bz2
 Patch0:		%{name}-vidmode.patch
 Patch1:		%{name}-libpng.patch
 Patch2:		%{name}-verbose.patch
+Patch3:		%{name}-includes.patch
+Patch4:		%{name}-types.patch
+Patch5:		%{name}-nostrip.patch
 URL:		http://freecode.com/projects/iv
+BuildRequires:	endeavour-devel
 BuildRequires:	gtk+-devel
 BuildRequires:	imlib-devel
 BuildRequires:	libpng-devel >= 2:1.4.0
@@ -28,15 +32,19 @@ Prosta przeglądarka obrazków oparta na GTK+ i używająca Imliba.
 %patch -P0 -p1
 %patch -P1 -p1
 %patch -P2 -p1
+%patch -P3 -p1
+%patch -P4 -p1
+%patch -P5 -p1
 
 %build
 ./configure Linux
 %{__make} -C iv \
 	CC="%{__cc}" \
 	CPP="%{__cxx}" \
-	CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer} -ffast-math -Wall \
+	CFLAGS="%{rpmcflags} %{rpmcppflags} %{!?debug:-fomit-frame-pointer} -ffast-math -Wall \
 		-DHAVE_LIBPNG -DHAVE_IMLIB -DINCLUDE_IV_TITLE_IMAGE \
-		`gtk-config --cflags` `imlib-config --cflags`"
+		$(gtk-config --cflags) $(imlib-config --cflags)" \
+	LIB_DIRS="%{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/iv-includes.patch b/iv-includes.patch
new file mode 100644
index 0000000..ab8cd6d
--- /dev/null
+++ b/iv-includes.patch
@@ -0,0 +1,40 @@
+--- iv-2.6.1/iv/fullscreen_img.c.orig	2009-07-27 02:00:00.000000000 +0200
++++ iv-2.6.1/iv/fullscreen_img.c	2025-10-04 20:35:20.143478614 +0200
+@@ -1,3 +1,4 @@
++#include <string.h>
+ #include <gtk/gtk.h>
+ #include <gdk/gdkkeysyms.h>
+ #include <gdk/gdkprivate.h>
+--- iv-2.6.1/iv/color_levels_dlg.c.orig	2009-07-27 02:00:00.000000000 +0200
++++ iv-2.6.1/iv/color_levels_dlg.c	2025-10-04 20:35:48.190312637 +0200
+@@ -1,4 +1,5 @@
+ #include <stdlib.h>
++#include <string.h>
+ #include <gtk/gtk.h>
+ #include <gdk/gdkkeysyms.h>
+ #include "guiutils.h"
+--- iv-2.6.1/iv/header_dlg.c.orig	2009-07-27 02:00:00.000000000 +0200
++++ iv-2.6.1/iv/header_dlg.c	2025-10-04 20:36:18.033824047 +0200
+@@ -1,4 +1,5 @@
+ #include <stdlib.h>
++#include <string.h>
+ #include <gtk/gtk.h>
+ #include <gdk/gdkkeysyms.h>
+ #include "guiutils.h"
+--- iv-2.6.1/iv/rgba_to_cidx.c.orig	2009-07-27 02:00:00.000000000 +0200
++++ iv-2.6.1/iv/rgba_to_cidx.c	2025-10-04 21:03:02.296695895 +0200
+@@ -1,5 +1,6 @@
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <sys/types.h>
+ #include "fsdither.h"
+ #include "rgba_to_cidx.h"
+--- iv-2.6.1/iv/save_options_dlg.c.orig	2009-07-27 02:00:00.000000000 +0200
++++ iv-2.6.1/iv/save_options_dlg.c	2025-10-04 21:03:45.233614213 +0200
+@@ -1,4 +1,5 @@
+ #include <stdlib.h>
++#include <string.h>
+ #include <gtk/gtk.h>
+ #include <gdk/gdkkeysyms.h>
+ 
diff --git a/iv-nostrip.patch b/iv-nostrip.patch
new file mode 100644
index 0000000..c70ee8a
--- /dev/null
+++ b/iv-nostrip.patch
@@ -0,0 +1,14 @@
+--- iv-2.6.1/iv/Makefile.install.UNIX.orig	2009-07-27 02:00:00.000000000 +0200
++++ iv-2.6.1/iv/Makefile.install.UNIX	2025-10-04 21:05:05.097414327 +0200
+@@ -12,9 +12,9 @@
+ #
+ 
+ INSTALL      = install
+-INSTBINFLAGS = -m 0755 -s
++INSTBINFLAGS = -m 0755
+ INSTUIDFLAGS = -m 4755
+-INSTLIBFLAGS = -m 0755 -s
++INSTLIBFLAGS = -m 0755
+ INSTINCFLAGS = -m 0644
+ INSTMANFLAGS = -m 0644
+ INSTCFGFLAGS = -m 0644
diff --git a/iv-types.patch b/iv-types.patch
new file mode 100644
index 0000000..46cf9f0
--- /dev/null
+++ b/iv-types.patch
@@ -0,0 +1,20 @@
+--- iv-2.6.1/iv/print_lpr.c.orig	2009-07-27 02:00:00.000000000 +0200
++++ iv-2.6.1/iv/print_lpr.c	2025-10-04 20:56:20.184313822 +0200
+@@ -54,7 +54,7 @@ static gint print_lpr_ps_write_progress_
+ 	gint cur, gint max,
+ 	gint width, gint height,
+ 	gint bpl, gint bpp,
+-	guint8 *rgba
++	const guint8 *rgba
+ );
+ 
+ 
+@@ -125,7 +125,7 @@ static gint print_lpr_ps_write_progress_
+ 	gint cur, gint max,
+ 	gint width, gint height,
+ 	gint bpl, gint bpp,
+-	guint8 *rgba
++	const guint8 *rgba
+ )
+ {
+ 	gfloat progress_coeff;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/iv.git/commitdiff/427f3368e19bccd4b6c3fd8c88cd2f031617e34d



More information about the pld-cvs-commit mailing list