[packages/geeqie] - up to 2.2

mrozowik mrozowik at pld-linux.org
Fri Jan 26 15:28:03 CET 2024


commit 7fdd775df94b25798688a654247b090f39755b24
Author: Krzysztof Mrozowicz <mrozowik at pld-linux.org>
Date:   Fri Jan 26 13:43:46 2024 +0000

    - up to 2.2

 geeqie-exif-fix.patch | 151 --------------------------------------------------
 geeqie-lua.patch      |  13 -----
 geeqie.spec           |  16 +++---
 3 files changed, 8 insertions(+), 172 deletions(-)
---
diff --git a/geeqie.spec b/geeqie.spec
index f0551b9..67cefc2 100644
--- a/geeqie.spec
+++ b/geeqie.spec
@@ -6,14 +6,12 @@ Summary:	Graphics file browser utility
 Summary(hu.UTF-8):	Képfájl-böngésző eszköz
 Summary(pl.UTF-8):	Narzędzie do przeglądania plików graficznych
 Name:		geeqie
-Version:	2.1
+Version:	2.2
 Release:	1
 License:	GPL v2+
 Group:		X11/Applications/Graphics
 Source0:	https://github.com/BestImageViewer/geeqie/releases/download/v%{version}/%{name}-%{version}.tar.xz
-# Source0-md5:	a34e3bcfdc679db713ed304971721db5
-Patch0:		%{name}-lua.patch
-Patch1:		%{name}-exif-fix.patch
+# Source0-md5:	cd8bf090172006797d9bd8b894a0353e
 URL:		http://www.geeqie.org/
 %{?with_champlain:BuildRequires:	clutter-devel >= 1.0}
 %{?with_champlain:BuildRequires:	clutter-gtk-devel >= 1.0}
@@ -43,6 +41,7 @@ BuildRequires:	lua-devel >= 5.3
 BuildRequires:	meson >= 0.56.2
 BuildRequires:	ninja >= 1.5
 BuildRequires:	openjpeg2-devel >= 2.3.0
+BuildRequires:	pandoc
 BuildRequires:	pkgconfig
 BuildRequires:	poppler-glib-devel >= 0.62
 BuildRequires:	rpmbuild(macros) >= 1.197
@@ -93,8 +92,6 @@ i opcje filtrowania, jak również wsparcie dla zewnętrznego edytora.
 
 %prep
 %setup -q
-%patch0 -p1
-%patch1 -p1
 
 %build
 %{__sed} -i '1s,%{_bindir}/awk,/bin/awk,' \
@@ -114,7 +111,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %ninja_install -C build
 
-%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/{applications,template.desktop}
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/{applications,org.geeqie.template.desktop}
 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
 
 
@@ -134,19 +131,22 @@ rm -rf $RPM_BUILD_ROOT
 %doc NEWS README.md TODO build/doc/html
 %attr(755,root,root) %{_bindir}/geeqie
 %{_mandir}/man1/geeqie.1*
-%{_desktopdir}/geeqie.desktop
+%{_desktopdir}/org.geeqie.Geeqie.desktop
 %{_iconsdir}/hicolor/scalable/apps/geeqie.svg
 %{_pixmapsdir}/geeqie.png
 %dir %{_libdir}/%{name}
+%attr(755,root,root) %{_libdir}/%{name}/downsize
 %attr(755,root,root) %{_libdir}/%{name}/geeqie-camera-import
 %attr(755,root,root) %{_libdir}/%{name}/geeqie-camera-import-hook-script
 %attr(755,root,root) %{_libdir}/%{name}/geeqie-export-jpeg
 %attr(755,root,root) %{_libdir}/%{name}/geeqie-image-crop
 %attr(755,root,root) %{_libdir}/%{name}/geeqie-random-image
+%attr(755,root,root) %{_libdir}/%{name}/geeqie-resize-image
 %attr(755,root,root) %{_libdir}/%{name}/geeqie-rotate
 %attr(755,root,root) %{_libdir}/%{name}/geeqie-symlink
 %attr(755,root,root) %{_libdir}/%{name}/geeqie-tethered-photography
 %attr(755,root,root) %{_libdir}/%{name}/geeqie-tethered-photography-hook-script
 %attr(755,root,root) %{_libdir}/%{name}/geocode-parameters.awk
 %attr(755,root,root) %{_libdir}/%{name}/lensID
+%attr(755,root,root) %{_libdir}/%{name}/resize-help.sh
 %{_datadir}/metainfo/org.geeqie.Geeqie.appdata.xml
diff --git a/geeqie-exif-fix.patch b/geeqie-exif-fix.patch
deleted file mode 100644
index 13b6a17..0000000
--- a/geeqie-exif-fix.patch
+++ /dev/null
@@ -1,151 +0,0 @@
-From c45cca777aa3477eaf297db99f337e18d9683c61 Mon Sep 17 00:00:00 2001
-From: Kevin Backhouse <kevinbackhouse at github.com>
-Date: Wed, 21 Jun 2023 12:23:33 +0100
-Subject: [PATCH] Add ExifData as extra argument to
- exif_item_get_data_as_text().
-
----
- src/advanced-exif.cc | 2 +-
- src/exif-common.cc   | 2 +-
- src/exif.cc          | 8 ++++----
- src/exif.h           | 2 +-
- src/exiv2.cc         | 4 ++--
- 5 files changed, 9 insertions(+), 9 deletions(-)
-
-diff --git a/src/advanced-exif.cc b/src/advanced-exif.cc
-index 79a54b12..e3d3067a 100644
---- a/src/advanced-exif.cc
-+++ b/src/advanced-exif.cc
-@@ -120,7 +120,7 @@ static void advanced_exif_update(ExifWin *ew)
- 		tag = g_strdup_printf("0x%04x", exif_item_get_tag_id(item));
- 		tag_name = exif_item_get_tag_name(item);
- 		format = exif_item_get_format_name(item, TRUE);
--		text = exif_item_get_data_as_text(item);
-+		text = exif_item_get_data_as_text(item, exif);
- 		utf8_text = utf8_validate_or_convert(text);
- 		g_free(text);
- 		elements = g_strdup_printf("%d", exif_item_get_elements(item));
-diff --git a/src/exif-common.cc b/src/exif-common.cc
-index 6a4c9740..b6f07ca6 100644
---- a/src/exif-common.cc
-+++ b/src/exif-common.cc
-@@ -995,7 +995,7 @@ gchar *exif_get_data_as_text(ExifData *exif, const gchar *key)
- 	if (key_valid) return text;
- 
- 	item = exif_get_item(exif, key);
--	if (item) return exif_item_get_data_as_text(item);
-+	if (item) return exif_item_get_data_as_text(item, exif);
- 
- 	return nullptr;
- }
-diff --git a/src/exif.cc b/src/exif.cc
-index 8708ff53..cda2cb1a 100644
---- a/src/exif.cc
-+++ b/src/exif.cc
-@@ -1454,7 +1454,7 @@ gchar *exif_item_get_string(ExifItem *item, gint UNUSED(idx))
- 	return exif_item_get_data_as_text_full(item, METADATA_PLAIN);
- }
- 
--gchar *exif_item_get_data_as_text(ExifItem *item)
-+gchar *exif_item_get_data_as_text(ExifItem *item, ExifData *exif)
- {
- 	return exif_item_get_data_as_text_full(item, METADATA_FORMATTED);
- }
-@@ -1527,11 +1527,11 @@ gchar *exif_get_tag_description_by_key(const gchar *key)
- 	return NULL;
- }
- 
--static void exif_write_item(FILE *f, ExifItem *item)
-+static void exif_write_item(FILE *f, ExifItem *item, ExifData *exif)
- {
- 	gchar *text;
- 
--	text = exif_item_get_data_as_text(item);
-+	text = exif_item_get_data_as_text(item, exif);
- 	if (text)
- 		{
- 		gchar *tag = exif_item_get_tag_name(item);
-@@ -1578,7 +1578,7 @@ void exif_write_data_list(ExifData *exif, FILE *f, gint human_readable_list)
- 			item = (ExifItem*)(work->data);
- 			work = work->next;
- 
--			exif_write_item(f, item);
-+			exif_write_item(f, item, exif);
- 			}
- 		}
- 	g_fprintf(f, "----------------------------------------------------\n");
-diff --git a/src/exif.h b/src/exif.h
-index fcc7d8f5..4b03c201 100644
---- a/src/exif.h
-+++ b/src/exif.h
-@@ -136,7 +136,7 @@ gchar *exif_item_get_data(ExifItem *item, guint *data_len);
- gchar *exif_item_get_description(ExifItem *item);
- guint exif_item_get_format_id(ExifItem *item);
- const gchar *exif_item_get_format_name(ExifItem *item, gboolean brief);
--gchar *exif_item_get_data_as_text(ExifItem *item);
-+gchar *exif_item_get_data_as_text(ExifItem *item, ExifData *exif);
- gint exif_item_get_integer(ExifItem *item, gint *value);
- ExifRational *exif_item_get_rational(ExifItem *item, gint *sign, guint n);
- 
-diff --git a/src/exiv2.cc b/src/exiv2.cc
-index 33b779e7..dc62e8e0 100644
---- a/src/exiv2.cc
-+++ b/src/exiv2.cc
-@@ -778,13 +778,13 @@ const char *exif_item_get_format_name(ExifItem *item, gboolean UNUSED(brief))
- }
- 
- 
--gchar *exif_item_get_data_as_text(ExifItem *item)
-+gchar *exif_item_get_data_as_text(ExifItem *item, ExifData *exif)
- {
- 	try {
- 		if (!item) return nullptr;
- 		auto metadatum = reinterpret_cast<Exiv2::Metadatum *>(item);
- #if EXIV2_TEST_VERSION(0,17,0)
--		return utf8_validate_or_convert(metadatum->print().c_str());
-+		return utf8_validate_or_convert(metadatum->print(&exif->exifData()).c_str());
- #else
- 		std::stringstream str;
- 		Exiv2::Exifdatum *exifdatum;
-From b04f7cd0546976dc4f7ea440648ac0eedd8df3ce Mon Sep 17 00:00:00 2001
-From: Colin Clark <colin.clark at cclark.uk>
-Date: Wed, 21 Jun 2023 14:24:41 +0100
-Subject: [PATCH] Remove exiv2 0.28.0 restriction
-
-https://github.com/BestImageViewer/geeqie/pull/1119
-
-The bug was fixed in the above commit.
----
- meson.build | 12 ++----------
- 1 file changed, 2 insertions(+), 10 deletions(-)
-
-diff --git a/meson.build b/meson.build
-index a4cab49c..412399fe 100644
---- a/meson.build
-+++ b/meson.build
-@@ -280,15 +280,7 @@ else
- endif
- 
- exiv2_dep = []
--# See https://github.com/BestImageViewer/geeqie/issues/1090
--# for the reason for 0.28.0 exclusion
--req_version = ['>=0.11', '!=0.28.0']
--
--req_version_str = ''
--foreach req_version_str_ : req_version
--    req_version_str += req_version_str_
--endforeach
--
-+req_version = '>=0.11'
- option = get_option('exiv2')
- if not option.disabled()
-     exiv2_dep = dependency('exiv2', version : req_version, required : get_option('exiv2'))
-@@ -296,7 +288,7 @@ if not option.disabled()
-         conf_data.set('HAVE_EXIV2', 1)
-         summary({'exiv2' : ['image metadata processed by exiv2:', true]}, section : 'Configuration', bool_yn : true)
-     else
--        summary({'exiv2' : ['exiv2 ' + req_version_str + ' not found - image data not processed by exiv2:', false]}, section : 'Configuration', bool_yn : true)
-+        summary({'exiv2' : ['exiv2 ' + req_version + ' not found - image data not processed by exiv2:', false]}, section : 'Configuration', bool_yn : true)
-     endif
- else
-     summary({'exiv2' : ['disabled - image data processed by exiv2:', false]}, section : 'Configuration', bool_yn : true)
diff --git a/geeqie-lua.patch b/geeqie-lua.patch
deleted file mode 100644
index 98f719c..0000000
--- a/geeqie-lua.patch
+++ /dev/null
@@ -1,13 +0,0 @@
---- geeqie-2.1/src/lua.cc.orig	2023-06-17 14:12:30.000000000 +0200
-+++ geeqie-2.1/src/lua.cc	2023-07-27 16:36:08.834568207 +0200
-@@ -24,9 +24,7 @@
- 
- #define _XOPEN_SOURCE
- 
--#include <lua.h>
--#include <lauxlib.h>
--#include <lualib.h>
-+#include <lua.hpp>
- 
- #include <stdio.h>
- #include <glib.h>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/geeqie.git/commitdiff/7fdd775df94b25798688a654247b090f39755b24



More information about the pld-cvs-commit mailing list