--- /dev/null
+Avoid -L/usr/lib* during libgwengui-qt4 linking to use newly built libgwengui-cpp instead of system one.
+
+--- gwenhywfar-5.10.2/m4/qt4.m4.orig 2019-09-24 22:32:09.000000000 +0200
++++ gwenhywfar-5.10.2/m4/qt4.m4 2023-10-26 19:51:25.941284777 +0200
+@@ -132,10 +132,13 @@ if test -z "$qt4_libs"; then
+ AQ_SEARCH_FOR_PATH([$qt_searchname],[$local_qt4_libs])
+ if test -n "$found_dir" ; then
+ if test "x$host" = "xi686-w64-mingw32" || test "x$host" = "xx86_64-w64-mingw32"; then
+- qt4_libs="-L$found_dir -l${qt_libname}4 -lQtCore4 -no-undefined"
++ qt4_libs="-l${qt_libname}4 -lQtCore4 -no-undefined"
+ else
+- qt4_libs="-L$found_dir -l${qt_libname} -lQtCore"
++ qt4_libs="-l${qt_libname} -lQtCore"
+ fi
++ if test "$found_dir" != "$libdir"; then
++ qt4_libs="-L$found_dir $qt4_libs"
++ fi
+ fi
+ fi
+
#
# TODO: - define _one_, system-wide place for ca-bundle.crt and use one, up-to-date file
-# - fix qt5 link error and bring back qt5 gui subpackage
#
# Conditional build:
%bcond_without fox # FOX 1.6 GUI
Summary: Gwenhywfar - a multi-platform helper library for networking and security
Summary(pl.UTF-8): Gwenhywfar - wieloplatformowa biblioteka pomocnicza do sieci i bezpieczeństwa
Name: gwenhywfar
-Version: 5.7.3
-Release: 2
+Version: 5.10.2
+Release: 1
License: LGPL v2.1+ with OpenSSL linking exception
Group: Libraries
-# https://www.aquamaniac.de/sites/download/packages.php
-Source0: https://www.aquamaniac.de/rdm/attachments/download/390/%{name}-%{version}.tar.gz
-# Source0-md5: ba92064a046501524064c926492ecc3d
+#Source0Download: https://www.aquamaniac.de/rdm/projects/gwenhywfar/files
+Source0: https://www.aquamaniac.de/rdm/attachments/download/501/%{name}-%{version}.tar.gz
+# Source0-md5: a5d78549dcec73844d891c6a0a703e19
Patch0: gcc.patch
Patch1: %{name}-qt5.patch
+Patch2: %{name}-link.patch
URL: https://www.aquamaniac.de/sites/aqbanking/
BuildRequires: autoconf >= 2.60
BuildRequires: automake
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
# gettextize not used (custom support instead of AM_GNU_GETTEXT)