- Add patches for Qt 6 support:

* 0001-Fix-name-of-output-variable.patch
  * 0002-Support-building-for-Qt6.patch
  * 0003-Adjusted-expression-to-work-correclty-using-Qt5-and-.patch
  * 0004-Add-missing-files-to-AC_CONFIG_FILES.patch
  * 0005-Prevent-configuration-for-Qt5-and-Qt6-at-the-same-ti.patch
  * 0006-Improve-configuration-on-systems-with-Qt5-and-Qt6-in.patch
  * 0007-Remove-debug-output.patch
- Spec cleanup

- Add patch:
  * gwenhywfar-gcc15.patch

OBS-URL: https://build.opensuse.org/package/show/Office/gwenhywfar?expand=0&rev=59
This commit is contained in:
Christophe Marin
2025-06-27 08:29:02 +00:00
committed by Git OBS Bridge
commit f73cc9307c
20 changed files with 1911 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,25 @@
From f6e4f9e39a0b9aaafdf523a73bb96bf48ba5c7a3 Mon Sep 17 00:00:00 2001
From: Thomas Baumgart <thb@net-bembel.de>
Date: Mon, 16 Jun 2025 19:59:53 +0200
Subject: [PATCH 1/7] Fix name of output variable
---
gwenhywfar-config.cmake.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gwenhywfar-config.cmake.in b/gwenhywfar-config.cmake.in
index 55152a5..f5f0944 100644
--- a/gwenhywfar-config.cmake.in
+++ b/gwenhywfar-config.cmake.in
@@ -58,7 +58,7 @@ if ( NOT ${FIND_GWEN_COMPONENT_QT4} EQUAL -1 )
endif()
endif()
-list(FIND GWENHYWFAR_FIND_COMPONENTS "qt5" FIND_GWEN_COMPONENT_QT4)
+list(FIND GWENHYWFAR_FIND_COMPONENTS "qt5" FIND_GWEN_COMPONENT_QT5)
if ( NOT ${FIND_GWEN_COMPONENT_QT5} EQUAL -1 )
find_package(gwengui-qt5 "@GWENHYWFAR_VERSION_STRING@" EXACT)
if ( gwengui-qt5_FOUND )
--
2.50.0

View File

@@ -0,0 +1,406 @@
From 19643821b41833544cbe2822e18da589673f1b24 Mon Sep 17 00:00:00 2001
From: Thomas Baumgart <thb@net-bembel.de>
Date: Mon, 16 Jun 2025 20:12:10 +0200
Subject: [PATCH 2/7] Support building for Qt6
---
gui/qt5/Makefile.am | 22 ++--
gui/qt5/gwengui-qt5-config.cmake.in | 18 +--
gui/qt5/gwengui-qt5.pc.in | 8 +-
gui/qt5/gwengui-qt6-config-version.cmake.in | 1 +
gui/qt5/gwengui-qt6-config.cmake.in | 1 +
gui/qt5/gwengui-qt6.pc.in | 1 +
gwenhywfar-config.cmake.in | 10 ++
m4/ax_have_qt.m4 | 128 ++++++++++++++------
8 files changed, 129 insertions(+), 60 deletions(-)
create mode 120000 gui/qt5/gwengui-qt6-config-version.cmake.in
create mode 120000 gui/qt5/gwengui-qt6-config.cmake.in
create mode 120000 gui/qt5/gwengui-qt6.pc.in
diff --git a/gui/qt5/Makefile.am b/gui/qt5/Makefile.am
index 96787b2..f7462a3 100644
--- a/gui/qt5/Makefile.am
+++ b/gui/qt5/Makefile.am
@@ -5,26 +5,26 @@ qt5_moc = @QT_MOC@
qt5_uic = @QT_UIC@
pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = gwengui-qt5.pc
+pkgconfig_DATA = gwengui-qt@QT_MAJOR_VERSION@.pc
-cmakeconfigdir = $(libdir)/cmake/gwengui-qt5-@GWENHYWFAR_VERSION_MAJOR@.@GWENHYWFAR_VERSION_MINOR@
-cmakeconfig_DATA = gwengui-qt5-config.cmake gwengui-qt5-config-version.cmake
+cmakeconfigdir = $(libdir)/cmake/gwengui-qt@QT_MAJOR_VERSION@-@GWENHYWFAR_VERSION_MAJOR@.@GWENHYWFAR_VERSION_MINOR@
+cmakeconfig_DATA = gwengui-qt@QT_MAJOR_VERSION@-config.cmake gwengui-qt@QT_MAJOR_VERSION@-config-version.cmake
-lib_LTLIBRARIES=libgwengui-qt5.la
+lib_LTLIBRARIES=libgwengui-qt@QT_MAJOR_VERSION@.la
noinst_PROGRAMS=libtest
noinst_HEADERS=
-libgwengui_qt5_la_LIBADD=$(QT_LIBS) $(top_builddir)/src/$(gwenhywfar_internal_libname) $(builddir)/../cpp/libgwengui-cpp.la
-libgwengui_qt5_la_LDFLAGS=-no-undefined -version-info \
+libgwengui_qt@QT_MAJOR_VERSION@_la_LIBADD=$(QT_LIBS) $(top_builddir)/src/$(gwenhywfar_internal_libname) $(builddir)/../cpp/libgwengui-cpp.la
+libgwengui_qt@QT_MAJOR_VERSION@_la_LDFLAGS=-no-undefined -version-info \
$(GWENHYWFAR_SO_CURRENT):$(GWENHYWFAR_SO_REVISION):$(GWENHYWFAR_SO_AGE)
-libgwengui_qt5_la_SOURCES=\
+libgwengui_qt@QT_MAJOR_VERSION@_la_SOURCES=\
qt5dialogbox.cpp \
qt5_gui.cpp \
qt5_gui_dialog.cpp
-nodist_libgwengui_qt5_la_SOURCES=
+nodist_libgwengui_qt@QT_MAJOR_VERSION@_la_SOURCES=
nodist_noinst_HEADERS=
@@ -67,7 +67,7 @@ EXTRA_DIST=$(UI_FILES) \
w_spinbox.cpp
libtest_SOURCES=libtest.cpp
-libtest_LDADD=libgwengui-qt5.la $(top_builddir)/src/$(gwenhywfar_internal_libname) $(QT_LIBS) \
+libtest_LDADD=libgwengui-qt@QT_MAJOR_VERSION@.la $(top_builddir)/src/$(gwenhywfar_internal_libname) $(QT_LIBS) \
$(top_builddir)/gui/cpp/libgwengui-cpp.la \
$(builddir)/../testdialogs/libgwengui-test.la
@@ -82,7 +82,7 @@ SUFFIXES = .ui .ui.hpp .ui.cpp .moc
sources:
- for f in $(libgwengui_qt5_la_SOURCES) $(foreach uifile,$(UI_FILES),$(uifile).cpp); do \
+ for f in $(libgwengui_qt@QT_MAJOR_VERSION@_la_SOURCES) $(foreach uifile,$(UI_FILES),$(uifile).cpp); do \
echo $(subdir)/$$f >>$(top_srcdir)/qtsources; \
done
for d in $(SUBDIRS); do \
@@ -95,5 +95,5 @@ built_sources: $(BUILT_SOURCES)
done ;
-BUILT_SOURCES = $(MOC_FILES) $(nodist_libgwengui_qt5_la_SOURCES)
+BUILT_SOURCES = $(MOC_FILES) $(nodist_libgwengui_qt@QT_MAJOR_VERSION@_la_SOURCES)
CLEANFILES = $(BUILT_SOURCES)
diff --git a/gui/qt5/gwengui-qt5-config.cmake.in b/gui/qt5/gwengui-qt5-config.cmake.in
index 98375ac..8cfebd1 100644
--- a/gui/qt5/gwengui-qt5-config.cmake.in
+++ b/gui/qt5/gwengui-qt5-config.cmake.in
@@ -20,8 +20,8 @@ endmacro()
include(CMakeFindDependencyMacro)
find_dependency(gwengui-cpp "@GWENHYWFAR_VERSION_STRING@")
-find_dependency(Qt5Core)
-find_dependency(Qt5Widgets)
+find_dependency(Qt@QT_MAJOR_VERSION@Core)
+find_dependency(Qt@QT_MAJOR_VERSION@Widgets)
set_and_check(prefix "@prefix@")
@@ -29,21 +29,21 @@ set_and_check(exec_prefix "@exec_prefix@")
set_and_check(includedir "@includedir@")
set_and_check(${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIRS "@gwenhywfar_headerdir@")
if(WIN32)
- set_and_check(${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES "@libdir@/libgwengui-qt5.dll.a")
+ set_and_check(${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES "@libdir@/libgwengui-qt@QT_MAJOR_VERSION@.dll.a")
elseif(APPLE)
- set_and_check(${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES "@libdir@/libgwengui-qt5.dylib")
+ set_and_check(${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES "@libdir@/libgwengui-qt@QT_MAJOR_VERSION@.dylib")
else()
- set_and_check(${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES "@libdir@/libgwengui-qt5.so")
+ set_and_check(${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES "@libdir@/libgwengui-qt@QT_MAJOR_VERSION@.so")
endif()
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND true)
-if(NOT TARGET gwenhywfar::gui-qt5)
- add_library(gwenhywfar::gui-qt5 UNKNOWN IMPORTED)
- set_target_properties(gwenhywfar::gui-qt5 PROPERTIES
+if(NOT TARGET gwenhywfar::gui-qt@QT_MAJOR_VERSION@)
+ add_library(gwenhywfar::gui-qt@QT_MAJOR_VERSION@ UNKNOWN IMPORTED)
+ set_target_properties(gwenhywfar::gui-qt@QT_MAJOR_VERSION@ PROPERTIES
IMPORTED_LOCATION "${${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES}"
INTERFACE_INCLUDE_DIRECTORIES "${${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIRS}"
- INTERFACE_LINK_LIBRARIES "gwenhywfar::core;gwenhywfar::gui-cpp;Qt5::Core;Qt5::Widgets"
+ INTERFACE_LINK_LIBRARIES "gwenhywfar::core;gwenhywfar::gui-cpp;Qt@QT_MAJOR_VERSION@::Core;Qt@QT_MAJOR_VERSION@::Widgets"
)
endif()
diff --git a/gui/qt5/gwengui-qt5.pc.in b/gui/qt5/gwengui-qt5.pc.in
index b514a6a..ec0ed8e 100644
--- a/gui/qt5/gwengui-qt5.pc.in
+++ b/gui/qt5/gwengui-qt5.pc.in
@@ -1,4 +1,4 @@
-# pkg-config configuration for gwengui_qt5
+# pkg-config configuration for gwengui_qt@QT_MAJOR_VERSION@
# For information about the syntax, see pkg-config(1)
# General installation directories
@@ -13,11 +13,11 @@ bindir=@bindir@
sysconfdir=@sysconfdir@
# Human-readable name
-Name: gwengui-qt5
+Name: gwengui-qt@QT_MAJOR_VERSION@
# Human-readable description
-Description: QT5 Implementation of the GWEN_DIALOG framework.
+Description: Qt@QT_MAJOR_VERSION@ Implementation of the GWEN_DIALOG framework.
Version: @VERSION@
-Libs: -L@libdir@ -lgwengui-qt5 -lgwengui-cpp
+Libs: -L@libdir@ -lgwengui-qt@QT_MAJOR_VERSION@ -lgwengui-cpp
Cflags: -I@includedir@
diff --git a/gui/qt5/gwengui-qt6-config-version.cmake.in b/gui/qt5/gwengui-qt6-config-version.cmake.in
new file mode 120000
index 0000000..f834d96
--- /dev/null
+++ b/gui/qt5/gwengui-qt6-config-version.cmake.in
@@ -0,0 +1 @@
+gwengui-qt5-config-version.cmake.in
\ No newline at end of file
diff --git a/gui/qt5/gwengui-qt6-config.cmake.in b/gui/qt5/gwengui-qt6-config.cmake.in
new file mode 120000
index 0000000..906db7d
--- /dev/null
+++ b/gui/qt5/gwengui-qt6-config.cmake.in
@@ -0,0 +1 @@
+gwengui-qt5-config.cmake.in
\ No newline at end of file
diff --git a/gui/qt5/gwengui-qt6.pc.in b/gui/qt5/gwengui-qt6.pc.in
new file mode 120000
index 0000000..c9e883f
--- /dev/null
+++ b/gui/qt5/gwengui-qt6.pc.in
@@ -0,0 +1 @@
+gwengui-qt5.pc.in
\ No newline at end of file
diff --git a/gwenhywfar-config.cmake.in b/gwenhywfar-config.cmake.in
index f5f0944..4913738 100644
--- a/gwenhywfar-config.cmake.in
+++ b/gwenhywfar-config.cmake.in
@@ -68,6 +68,16 @@ if ( NOT ${FIND_GWEN_COMPONENT_QT5} EQUAL -1 )
endif()
endif()
+list(FIND GWENHYWFAR_FIND_COMPONENTS "qt6" FIND_GWEN_COMPONENT_QT6)
+if ( NOT ${FIND_GWEN_COMPONENT_QT6} EQUAL -1 )
+ find_package(gwengui-qt6 "@GWENHYWFAR_VERSION_STRING@" EXACT)
+ if ( gwengui-qt6_FOUND )
+ set( GWENHYWFAR_INCLUDE_DIRS ${GWENHYWFAR_INCLUDE_DIRS} ${gwengui-qt6_INCLUDE_DIRS} )
+ set( GWENHYWFAR_LIBRARIES ${GWENHYWFAR_LIBRARIES} ${gwengui-qt6_LIBRARIES} )
+ set( GWENHYWFAR_qt6_FOUND true )
+ endif()
+endif()
+
check_required_components(GWENHYWFAR)
# The target is available since gwenhywfar 4.15.3
diff --git a/m4/ax_have_qt.m4 b/m4/ax_have_qt.m4
index f035a81..88075fa 100644
--- a/m4/ax_have_qt.m4
+++ b/m4/ax_have_qt.m4
@@ -25,18 +25,13 @@
# QT_LRELEASE
# QT_LUPDATE
# QT_DIR
+# QMAKE
#
# which respectively contain an "-I" flag pointing to the Qt include
# directory, link flags necessary to link with Qt and X, the full path to
# the meta object compiler and the user interface compiler both, and
# finally the variable QTDIR as Qt likes to see it defined.
#
-# Also the usually unneeded var
-#
-# QT_QMAKE
-#
-# to qmake is defined.
-#
# Example lines for Makefile.in:
#
# CXXFLAGS = @QT_CXXFLAGS@
@@ -60,7 +55,7 @@
# and this notice are preserved. This file is offered as-is, without any
# warranty.
-#serial 17
+#serial 27
AU_ALIAS([BNV_HAVE_QT], [AX_HAVE_QT])
AC_DEFUN([AX_HAVE_QT],
@@ -69,19 +64,32 @@ AC_DEFUN([AX_HAVE_QT],
AC_REQUIRE([AC_PATH_X])
AC_REQUIRE([AC_PATH_XTRA])
- AC_ARG_WITH(qt5-qmake,
- [ --with-qt5-qmake=FILE uses given qmake],
- [QT_QMAKE="$withval"],
- [QT_QMAKE="qmake"]
+ # openSUSE leap 15.3 installs qmake-qt5, not qmake, for example.
+ # Store the full name (like qmake-qt5) into QMAKE
+ # and the specifier (like -qt5 or empty) into am_have_qt_qmexe_suff.
+ AC_ARG_VAR([QMAKE],[Qt make tool])
+ AC_CHECK_TOOLS([QMAKE],[qmake qmake-qt6 qmake6 qmake-qt5],[false])
+
+ AC_ARG_WITH(qmake,
+ [ --with-qmake=FILE uses given qmake],
+ [QMAKE="$withval"],
+ []
)
+
+ AC_CHECK_TOOLS([QTPATHS],[qtpaths qtpaths-qt6 qtpaths6 qtpaths-qt5 qtpaths5],[false])
+
AC_MSG_CHECKING(for Qt)
+ am_have_qt_qmexe_suff=`echo $QMAKE | sed 's,^.*qmake,,'`
# If we have Qt5 or later in the path, we're golden
- ver=`$QT_QMAKE --version | grep -o "Qt version ."`
+ ver=`$QMAKE --version | grep -o "Qt version ."`
+
if test "$ver" ">" "Qt version 4"; then
+ QT_MAJOR_VERSION="5"
have_qt=yes
# This pro file dumps qmake's variables, but it only works on Qt 5 or later
am_have_qt_dir=`mktemp -d`
am_have_qt_pro="$am_have_qt_dir/test.pro"
+ am_have_qt_stash="$am_have_qt_dir/.qmake.stash"
am_have_qt_makefile="$am_have_qt_dir/Makefile"
# http://qt-project.org/doc/qt-5/qmake-variable-reference.html#qt
cat > $am_have_qt_pro << EOF
@@ -89,37 +97,87 @@ win32 {
CONFIG -= debug_and_release
CONFIG += release
}
+qtHaveModule(axcontainer): QT += axcontainer
+qtHaveModule(axserver): QT += axserver
+qtHaveModule(concurrent): QT += concurrent
qtHaveModule(core): QT += core
+qtHaveModule(dbus): QT += dbus
+qtHaveModule(declarative): QT += declarative
+qtHaveModule(designer): QT += designer
qtHaveModule(gui): QT += gui
-qtHaveModule(widgets): QT += widgets
+qtHaveModule(help): QT += help
+qtHaveModule(multimedia): QT += multimedia
+qtHaveModule(multimediawidgets): QT += multimediawidgets
+qtHaveModule(network): QT += network
+qtHaveModule(opengl): QT += opengl
+qtHaveModule(printsupport): QT += printsupport
+qtHaveModule(qml): QT += qml
+qtHaveModule(qmltest): QT += qmltest
+qtHaveModule(x11extras): QT += x11extras
+qtHaveModule(script): QT += script
+qtHaveModule(scripttools): QT += scripttools
+qtHaveModule(sensors): QT += sensors
+qtHaveModule(serialport): QT += serialport
+qtHaveModule(sql): QT += sql
+qtHaveModule(svg): QT += svg
+qtHaveModule(testlib): QT += testlib
+qtHaveModule(uitools): QT += uitools
+qtHaveModule(webkit): QT += webkit
+qtHaveModule(webkitwidgets): QT += webkitwidgets
+qtHaveModule(xml): QT += xml
+qtHaveModule(xmlpatterns): QT += xmlpatterns
percent.target = %
percent.commands = @echo -n "\$(\$(@))\ "
QMAKE_EXTRA_TARGETS += percent
EOF
- $QT_QMAKE $am_have_qt_pro -o $am_have_qt_makefile
+ $QMAKE $am_have_qt_pro -o $am_have_qt_makefile
QT_CXXFLAGS=`cd $am_have_qt_dir; make -s -f $am_have_qt_makefile CXXFLAGS INCPATH`
QT_LIBS=`cd $am_have_qt_dir; make -s -f $am_have_qt_makefile LIBS`
- rm $am_have_qt_pro $am_have_qt_makefile
+ rm $am_have_qt_pro $am_have_qt_stash $am_have_qt_makefile
rmdir $am_have_qt_dir
+ ver=`$QTPATHS --version | cut -d' ' -f 2`
+ if test "$ver" '>' "1"; then
+ QT_MAJOR_VERSION="6"
+ # Add QT_HOST_BINS and QT_HOST_LIBEXECS paths to PATH
+ for var in QT_HOST_BINS QT_HOST_LIBEXECS; do
+ PATH=$PATH:`$QTPATHS --query $var`
+ done
+ fi
+
# Look for specific tools in $PATH
- AC_ARG_WITH(qt5-moc,
- [ --with-qt5-moc=FILE uses given qt moc],
- [QT_MOC="$withval"],
- [QT_MOC=`which moc`]
- )
- AC_ARG_WITH(qt5-uic,
- [ --with-qt5-uic=FILE uses given qt uic],
- [QT_UIC="$withval"],
- [QT_UIC=`which uic`]
- )
-
- QT_RCC=`which rcc`
- QT_LRELEASE=`which lrelease`
- QT_LUPDATE=`which lupdate`
+ AC_ARG_VAR([QT_MOC],[Qt moc tool])
+ AC_PATH_PROG([QT_MOC],[moc$am_have_qt_qmexe_suff])
+ if test "$QT_MOC" = ""; then
+ AC_PATH_PROG([QT_MOC],[moc])
+ fi
+
+ AC_ARG_VAR([QT_UIC],[Qt uic tool])
+ AC_PATH_PROG([QT_UIC],[uic$am_have_qt_qmexe_suff])
+ if test "$QT_UIC" = ""; then
+ AC_PATH_PROG([QT_UIC],[uic])
+ fi
+
+ AC_ARG_VAR([QT_RCC],[Qt rcc tool])
+ AC_PATH_PROG([QT_RCC],[rcc$am_have_qt_qmexe_suff])
+ if test "$QT_RCC" = ""; then
+ AC_PATH_PROG([QT_RCC],[rcc])
+ fi
+
+ AC_ARG_VAR([QT_LRELEASE],[Qt lrelease tool])
+ AC_PATH_PROG([QT_LRELEASE],[lrelease$am_have_qt_qmexe_suff])
+ if test "$QT_LRELEASE" = ""; then
+ AC_PATH_PROG([QT_LRELEASE],[lrelease])
+ fi
+
+ AC_ARG_VAR([QT_LUPDATE],[Qt lupdate tool])
+ AC_PATH_PROG([QT_LUPDATE],[lupdate$am_have_qt_qmexe_suff])
+ if test "$QT_LUPDATE" = ""; then
+ AC_PATH_PROG([QT_LUPDATE],[lupdate])
+ fi
# Get Qt version from qmake
- QT_DIR=`$QT_QMAKE --version | grep -o -E /.+`
+ QT_DIR=`$QMAKE --version | grep -o -E /.+`
# All variables are defined, report the result
AC_MSG_RESULT([$have_qt:
@@ -130,7 +188,8 @@ EOF
QT_MOC=$QT_MOC
QT_RCC=$QT_RCC
QT_LRELEASE=$QT_LRELEASE
- QT_LUPDATE=$QT_LUPDATE])
+ QT_LUPDATE=$QT_LUPDATE
+ QT_MAJOR_VERSION=$QT_MAJOR_VERSION])
else
# Qt was not found
have_qt=no
@@ -142,16 +201,13 @@ EOF
QT_RCC=
QT_LRELEASE=
QT_LUPDATE=
+ QT_MAJOR_VERSION=
AC_MSG_RESULT($have_qt)
fi
AC_SUBST(QT_CXXFLAGS)
AC_SUBST(QT_DIR)
AC_SUBST(QT_LIBS)
- AC_SUBST(QT_UIC)
- AC_SUBST(QT_MOC)
- AC_SUBST(QT_RCC)
- AC_SUBST(QT_LRELEASE)
- AC_SUBST(QT_LUPDATE)
+ AC_SUBST(QT_MAJOR_VERSION)
#### Being paranoid:
if test x"$have_qt" = xyes; then
--
2.50.0

View File

@@ -0,0 +1,25 @@
From 77db6dc15d60f18bcf8ca934ee698db028264518 Mon Sep 17 00:00:00 2001
From: Thomas Baumgart <thb@net-bembel.de>
Date: Thu, 19 Jun 2025 09:07:36 +0200
Subject: [PATCH 3/7] Adjusted expression to work correclty using Qt5 and Qt6
---
m4/ax_have_qt.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/m4/ax_have_qt.m4 b/m4/ax_have_qt.m4
index 88075fa..51bb0d2 100644
--- a/m4/ax_have_qt.m4
+++ b/m4/ax_have_qt.m4
@@ -137,7 +137,7 @@ EOF
rmdir $am_have_qt_dir
ver=`$QTPATHS --version | cut -d' ' -f 2`
- if test "$ver" '>' "1"; then
+ if test "$ver" = "2.0"; then
QT_MAJOR_VERSION="6"
# Add QT_HOST_BINS and QT_HOST_LIBEXECS paths to PATH
for var in QT_HOST_BINS QT_HOST_LIBEXECS; do
--
2.50.0

View File

@@ -0,0 +1,26 @@
From 3c79c27fea411d45fc4489c570b107dc4633434b Mon Sep 17 00:00:00 2001
From: Thomas Baumgart <thb@net-bembel.de>
Date: Fri, 20 Jun 2025 08:38:10 +0200
Subject: [PATCH 4/7] Add missing files to AC_CONFIG_FILES
---
configure.ac | 3 +++
1 file changed, 3 insertions(+)
diff --git a/configure.ac b/configure.ac
index 4e43f5c..edcf131 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1460,6 +1460,9 @@ AC_CONFIG_FILES([Doxyfile
gui/qt5/gwengui-qt5.pc
gui/qt5/gwengui-qt5-config.cmake
gui/qt5/gwengui-qt5-config-version.cmake
+ gui/qt5/gwengui-qt6.pc
+ gui/qt5/gwengui-qt6-config.cmake
+ gui/qt5/gwengui-qt6-config-version.cmake
gui/fox16/Makefile
gui/fox16/gwengui-fox16.pc
gui/gtk2/Makefile
--
2.50.0

View File

@@ -0,0 +1,40 @@
From 7cd1c0667e248eec558fb2a10270a593184396f1 Mon Sep 17 00:00:00 2001
From: Thomas Baumgart <thb@net-bembel.de>
Date: Fri, 20 Jun 2025 08:38:56 +0200
Subject: [PATCH 5/7] Prevent configuration for Qt5 and Qt6 at the same time
---
configure.ac | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index edcf131..0f4423f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -436,7 +436,7 @@ case "$OS_TYPE" in
all_libraries="${all_libraries} -framework CoreFoundation"
fi
fi
-
+
gwenbuild_tool="gwenbuild"
;;
windows)
@@ -1000,8 +1000,12 @@ AM_CONDITIONAL(WITH_GUI_QT4, [test "$with_gui_qt4" = "yes"])
#
case "$gwenhywfar_guis" in
- *qt5*)
- AX_HAVE_QT
+ *qt5*qt6* | *qt6*qt5*)
+ AC_MSG_ERROR(**** Configuring for Qt5 and Qt6 at the same time is not supported)
+ ;;
+ *qt5* | *qt6*)
+ AX_HAVE_QT
+ ;;
esac
--
2.50.0

View File

@@ -0,0 +1,43 @@
From 524dc0f16fc6599915ebe72cae6f5bd329a0969e Mon Sep 17 00:00:00 2001
From: Thomas Baumgart <thb@net-bembel.de>
Date: Sat, 21 Jun 2025 15:10:24 +0200
Subject: [PATCH 6/7] Improve configuration on systems with Qt5 and Qt6
installed
---
m4/ax_have_qt.m4 | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/m4/ax_have_qt.m4 b/m4/ax_have_qt.m4
index 51bb0d2..487059e 100644
--- a/m4/ax_have_qt.m4
+++ b/m4/ax_have_qt.m4
@@ -76,7 +76,6 @@ AC_DEFUN([AX_HAVE_QT],
[]
)
- AC_CHECK_TOOLS([QTPATHS],[qtpaths qtpaths-qt6 qtpaths6 qtpaths-qt5 qtpaths5],[false])
AC_MSG_CHECKING(for Qt)
am_have_qt_qmexe_suff=`echo $QMAKE | sed 's,^.*qmake,,'`
@@ -136,9 +135,16 @@ EOF
rm $am_have_qt_pro $am_have_qt_stash $am_have_qt_makefile
rmdir $am_have_qt_dir
+ if test "$ver" ">" "Qt version 5"; then
+ QT_MAJOR_VERSION="6"
+ AC_CHECK_TOOLS([QTPATHS],[qtpaths-qt6 qtpaths6 qtpaths],[false])
+ else
+ AC_CHECK_TOOLS([QTPATHS],[qtpaths-qt5 qtpaths5 qtpaths],[false])
+ fi
+
ver=`$QTPATHS --version | cut -d' ' -f 2`
+ echo "QTPATH version: $ver" >&AS_MESSAGE_LOG_FD
if test "$ver" = "2.0"; then
- QT_MAJOR_VERSION="6"
# Add QT_HOST_BINS and QT_HOST_LIBEXECS paths to PATH
for var in QT_HOST_BINS QT_HOST_LIBEXECS; do
PATH=$PATH:`$QTPATHS --query $var`
--
2.50.0

View File

@@ -0,0 +1,24 @@
From d69af00e9dec30c90cd8b4adb8bd3e3e5e4c05f0 Mon Sep 17 00:00:00 2001
From: Thomas Baumgart <thb@net-bembel.de>
Date: Sat, 21 Jun 2025 15:42:33 +0200
Subject: [PATCH 7/7] Remove debug output
---
m4/ax_have_qt.m4 | 1 -
1 file changed, 1 deletion(-)
diff --git a/m4/ax_have_qt.m4 b/m4/ax_have_qt.m4
index 487059e..559cbfc 100644
--- a/m4/ax_have_qt.m4
+++ b/m4/ax_have_qt.m4
@@ -143,7 +143,6 @@ EOF
fi
ver=`$QTPATHS --version | cut -d' ' -f 2`
- echo "QTPATH version: $ver" >&AS_MESSAGE_LOG_FD
if test "$ver" = "2.0"; then
# Add QT_HOST_BINS and QT_HOST_LIBEXECS paths to PATH
for var in QT_HOST_BINS QT_HOST_LIBEXECS; do
--
2.50.0

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>gwenhywfar-qt6</package>
</multibuild>

3
gwenhywfar-5.10.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a2f60a9dde5da27e57e0e5ef5f8931f495c1d541ad90a841e2b6231565547160
size 2687042

View File

@@ -0,0 +1,11 @@
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEEQkAK9esqF/Cmm7VR6YmdeEqXdBYFAmL0GoYACgkQ6YmdeEqX
dBae5Qf+JwF2AiPECt7vR4V8iA5/SMSSWGNk/sdJJuuZS162OjG+XXANH8LwbB+Y
Esenj65u8LogNeSMksJvyBd1RqcDZDgA1S1h1VkdGhppI/771n8TX4OKqQkv39rw
XezPWvJaU965LycsCBZmOqY4NLXh/vKWMmqJlegqEJpLT71gHeIUgvFgPPVzosFw
Q8Wmr/IQjroADpk5O0lh58jonXHdQeR7qxAWdIktU6FcIrPKEYE+uZQttSf3QsXI
9JyIKo3jHke7yiigZOchXFknqBhHylS3/4pD5VJ8zFlh6rHN9IBLencPl76T+Giw
CgJnVrQBIcA0vr6NClmSrwy6mRfsQA==
=jdwi
-----END PGP SIGNATURE-----

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e7f2b12c092d6f598f29e255b0b003d98ac1796c85b73a570890dbf2dcf35b24
size 2715826

View File

@@ -0,0 +1,11 @@
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEEQkAK9esqF/Cmm7VR6YmdeEqXdBYFAmYlNzIACgkQ6YmdeEqX
dBbvKAf/Uajl3541sbzXav2wXUhBkf0YxTM55NehvgIf/nJT2SnWVIWGYTCjwPWr
rxxPWuyJPpXuuLxjRU1vH7YqRLasiRf/HFLtTNLsWbEXuPn8vKtya6+UEuvogvIF
iFTznezAqAcn3OopaU5h+sfg+XIUIBdq+IMB6sv9QbggsdXFnhJ0fN4F1NooBZS4
TASu78ldT9XQSrLHQlSUE8AvrWH2JqReO1htzpcf6s4aiECmHjrGZJOlE13HqBpa
qrRomEcjgz4XxRtyhCTbbkykSPVY15GOXHEwZPW4w3r5+Yfznl+XY7HcDzhoxCFp
DwuT6U69DMOMdnFQM9VfGyCniDh7Nw==
=NtK4
-----END PGP SIGNATURE-----

3
gwenhywfar-5.12.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0ad5f1447703211f1610053a94bce1e82abceda2222a2ecc9cf45b148395d626
size 2721790

View File

@@ -0,0 +1,11 @@
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEEQkAK9esqF/Cmm7VR6YmdeEqXdBYFAmdhzR4ACgkQ6YmdeEqX
dBbgiQf7BIUY5AmOvsoNa5a9wYcx7btkDo9oH1pDGOYIuVNKgjGy+lk0qhXmSnu8
Zlaa4H/tQ97htW1dko2dJ0q2ECcVV3Mv5wrDFVGDVuQ8d7hf+gGEIMJrIUQbhSDr
ZkBPNK0zZSQrWcqdMMOHq3Wz0/rYD7A7WqEuPktL58a2NTDqAdrFNrz0upwBImtp
y4+GcDpALdSODxCdNg+HT5vytxHStclSDw8tDvCCBd26vyeQAT7xf3sf302KGLUR
47b71enAXIW9IwP8Tj24yiD4sL+f4r4D726eMSLDdxzGn2lF9riNpRmsU9ys/eXo
PEfYpn2hCMLkK1W4yPaA9DM+CXN1nA==
=IYey
-----END PGP SIGNATURE-----

31
gwenhywfar-gcc15.patch Normal file
View File

@@ -0,0 +1,31 @@
From 3a31e47cf14a4683c13ad81b57af0dd8b56d5353 Mon Sep 17 00:00:00 2001
From: Micha Lenk <micha@lenk.info>
Date: Sun, 23 Feb 2025 21:44:55 +0100
Subject: [PATCH] Remove double declaration of HtmlObject_Grid_new
This fixes a build failure when compiling with GCC 15 due to conflicting
declarations of HtmlObject_Grid_new.
The build failure was initially reported by Matthias Klose <doko@debian.org> as
Debian bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097194
---
src/html/o_grid_p.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/html/o_grid_p.h b/src/html/o_grid_p.h
index 33f218be..7c2ebd18 100644
--- a/src/html/o_grid_p.h
+++ b/src/html/o_grid_p.h
@@ -15,9 +15,6 @@
#include "o_grid_l.h"
-HTML_OBJECT *HtmlObject_Grid_new();
-
-
typedef struct OBJECT_GRID OBJECT_GRID;
struct OBJECT_GRID {
int rows;
--
2.50.0

160
gwenhywfar-qt6.spec Normal file
View File

@@ -0,0 +1,160 @@
#
# spec file for package gwenhywfar-qt6
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define libversion 79
%define devversion 5
%define devrelease 5.12
# Beta does not mean "before release" but a release that is considered as beta:
%define _version %{version}
%define _name gwenhywfar
%define releasenumber 529
%define checksumreleasenumber 528
%bcond_without configure
Name: gwenhywfar-qt6
Version: 5.12.0
Release: 0
Summary: Multiplatform helper library for other libraries
License: LGPL-2.1-or-later
URL: https://www.aquamaniac.de/rdm/projects/gwenhywfar
Source: https://www.aquamaniac.de/rdm/attachments/download/%{releasenumber}/%{_name}-%{_version}.tar.gz
Source1: https://www.aquamaniac.de/rdm/attachments/download/%{checksumreleasenumber}/%{_name}-%{_version}.tar.gz.asc
# PATCH-FIX-UPSTREAM -- gcc 15 build fix
Patch0: gwenhywfar-gcc15.patch
# PATCH-FEATURE-UPSTREAM -- Qt 6 support needed by KMyMoney
Patch1: 0001-Fix-name-of-output-variable.patch
Patch2: 0002-Support-building-for-Qt6.patch
Patch3: 0003-Adjusted-expression-to-work-correclty-using-Qt5-and-.patch
Patch4: 0004-Add-missing-files-to-AC_CONFIG_FILES.patch
Patch5: 0005-Prevent-configuration-for-Qt5-and-Qt6-at-the-same-ti.patch
Patch6: 0006-Improve-configuration-on-systems-with-Qt5-and-Qt6-in.patch
Patch7: 0007-Remove-debug-output.patch
BuildRequires: fdupes
%if 0%{?suse_version} < 1600
BuildRequires: gcc13
BuildRequires: gcc13-PIE
%endif
BuildRequires: pkgconfig
BuildRequires: cmake(Qt6Concurrent)
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6DBus)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6LinguistTools)
BuildRequires: cmake(Qt6Network)
BuildRequires: cmake(Qt6PrintSupport)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: pkgconfig(gnutls) >= 2.9.8
BuildRequires: pkgconfig(gpg-error)
BuildRequires: pkgconfig(libgcrypt) >= 1.2.0
BuildRequires: pkgconfig(opengl)
BuildRequires: pkgconfig(openssl)
%if %{with configure}
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%endif
%description
Gwenhywfar is a base library used to provide OS abstraction functions
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes some
often needed functions (for example, handling and parsing of
configuration files, reading and writingof XML files, and interprocess
communication).
%package -n libgwengui-qt6-%{libversion}
Summary: Qt6 UI backend for the gwenhywfar multi-platform helper library
%description -n libgwengui-qt6-%{libversion}
Gwenhywfar is a base library used to provide OS abstraction functions
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes
some often needed functions (for example, for handling and parsing of
configuration files, reading and writing of XML files, and interprocess
communication).
This package provides the Qt6 implementation of the generic UI toolkit.
%package devel
Summary: Header files for the Gwenhywfar multi-platform helper library
Requires: glibc-devel
Requires: gwenhywfar-devel = %{version}
Requires: libgwengui-qt6-%{libversion} = %{version}
Requires: cmake(Qt6Core)
Requires: cmake(Qt6Widgets)
%description devel
Gwenhywfar is a base library used to provide OS abstraction functions
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes
some often needed functions (e.g. for handling and parsing of
configuration files, reading/writing of XML files, interprocess
communication etc).
%lang_package
%prep
%autosetup -p1 -n %{_name}-%{_version}
%build
%if 0%{?suse_version} < 1600
export CC=gcc-13 CXX=g++-13
%endif
export PATH=%{_qt6_bindir}:$PATH
%if %{with configure}
autoreconf -ifv
%endif
# with-guis=qt5 will build with Qt 6
%configure\
--enable-release\
--disable-static \
--with-guis="qt5" \
--with-plugins-ct= \
--with-plugins-cfgmgr= \
--with-plugins-dbio=
%make_jobs
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
# Cleanup, we only want Qt 6 related files
rm -r %{buildroot}%{_bindir}
rm -r %{buildroot}%{_datadir}
# Headers are identical for both Qt 5 and 6 and we can't have 'Conflicts'
rm -r %{buildroot}%{_includedir}
rm -r %{buildroot}%{_libdir}/cmake/{gwengui-cpp,gwenhywfar}*
rm %{buildroot}%{_libdir}/{libgwengui-cpp,libgwenhywfar}.*
rm %{buildroot}%{_libdir}/pkgconfig/gwenhywfar.pc
%fdupes %{buildroot}%{_libdir}/cmake
%ldconfig_scriptlets -n libgwengui-qt6-%{libversion}
%files -n libgwengui-qt6-%{libversion}
%license COPYING
%{_libdir}/libgwengui-qt6.so.*
%files devel
%{_libdir}/libgwengui-qt6.so
%{_libdir}/pkgconfig/gwengui-qt6.pc
%dir %{_libdir}/cmake
%{_libdir}/cmake/gwengui-qt6-%{devrelease}
%changelog

733
gwenhywfar.changes Normal file
View File

@@ -0,0 +1,733 @@
-------------------------------------------------------------------
Tue Jun 24 22:33:43 UTC 2025 - Christophe Marin <christophe@krop.fr>
- Add patches for Qt 6 support:
* 0001-Fix-name-of-output-variable.patch
* 0002-Support-building-for-Qt6.patch
* 0003-Adjusted-expression-to-work-correclty-using-Qt5-and-.patch
* 0004-Add-missing-files-to-AC_CONFIG_FILES.patch
* 0005-Prevent-configuration-for-Qt5-and-Qt6-at-the-same-ti.patch
* 0006-Improve-configuration-on-systems-with-Qt5-and-Qt6-in.patch
* 0007-Remove-debug-output.patch
- Spec cleanup
-------------------------------------------------------------------
Tue Jun 24 11:57:06 UTC 2025 - Christophe Marin <christophe@krop.fr>
- Add patch:
* gwenhywfar-gcc15.patch
-------------------------------------------------------------------
Thu Jan 23 11:17:50 UTC 2025 - Ralf Habacker <ralf.habacker@freenet.de>
- Add missing runtime dependency for libgwengui-cpp to
the development package
-------------------------------------------------------------------
Wed Jan 1 18:41:47 UTC 2025 - Nico Kruber <nico.kruber@gmail.com>
- Update to 5.12.0
+ Add GWEN_MSG convenience functions
+ Use pkgconf for gpg-error build flags
+ Bugfixes
-------------------------------------------------------------------
Sun Nov 24 12:48:48 UTC 2024 - Nico Kruber <nico.kruber@gmail.com>
- Update to 5.11.2 (beta)
- Changelog for 5.11.0 (beta)
+ first version with support for HKTAN#7 and first implementation
of "Decoupled TAN" for app-based TAN input
-------------------------------------------------------------------
Tue Oct 18 02:39:09 UTC 2022 - Jason Sikes <jsikes@suse.com>
- Update to 5.10.0
* Bugfixes
* Added more checks for invalid dates
* Remove GTK2 from target "mp"
* Make output a bit more compact.
-------------------------------------------------------------------
Sun Mar 20 17:12:39 UTC 2022 - Johannes Engel <jcnengel@gmail.com>
- Update to 5.9.0
+ Bugfixes
-------------------------------------------------------------------
Fri Feb 11 12:14:39 UTC 2022 - Johannes Engel <jcnengel@gmail.com>
- Update to 5.8.2
+ GUI support for keypress/keyrelease events
+ Return Window handle under X11
+ Bugfixes
-------------------------------------------------------------------
Mon Dec 13 11:59:15 UTC 2021 - Johannes Engel <jcnengel@gmail.com>
- Update to 5.7.4
+ Bugfixes
-------------------------------------------------------------------
Tue Sep 21 06:24:42 UTC 2021 - Johannes Engel <jcnengel@gmail.com>
- Update to 5.7.2
+ Bugfixes
-------------------------------------------------------------------
Tue Sep 14 14:03:41 UTC 2021 - Johannes Engel <jcnengel@gmail.com>
- Update to 5.7.1
+ Bugfixes
+ Small improvements
-------------------------------------------------------------------
Wed Mar 3 11:58:23 UTC 2021 - Johannes Engel <jcnengel@gmail.com>
- Update to 5.6.0
+ Bugfixes
+ Small improvements
-------------------------------------------------------------------
Sat Oct 31 20:27:10 UTC 2020 - Johannes Engel <jcnengel@gmail.com>
- Update to 5.4.1
+ Streamline openSSL integration
-------------------------------------------------------------------
Tue Aug 18 20:27:25 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- replace tarball with upstream one so that download_files verfication
passes
-------------------------------------------------------------------
Wed Jul 29 12:58:41 UTC 2020 - Johannes Engel <jcnengel@gmail.com>
- Update to 5.4.0
+ Introduce more generic approach to XML using libxml2
+ Straighten Qt dependencies
+ Bugfixes
-------------------------------------------------------------------
Wed Apr 8 07:15:21 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 5.3.0. No changelog.
-------------------------------------------------------------------
Sat Mar 14 12:38:03 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 5.2.0. No changelog.
-------------------------------------------------------------------
Thu Jan 23 16:27:48 UTC 2020 - Wolfgang Bauer <wbauer@tmo.at>
- Update to 5.1.2
+ XML: Improved format of written XML documents, simplified code.
+ DB: Fixed a bug in GWEN_DB_WriteVarValueToBuffer()
Was not handling "name" as full path.
+ Fixed a bug (created files had no file access rights: #178).
-------------------------------------------------------------------
Fri Jan 17 13:16:08 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
- Temporarily change the source URL until the tag is sync'ed to the github mirror.
-------------------------------------------------------------------
Wed Jan 15 19:48:53 UTC 2020 - Johannes Engel <jcnengel@gmail.com>
- Update to 5.1.1
+ Bugfixes
-------------------------------------------------------------------
Wed Nov 27 21:59:40 UTC 2019 - Bjørn Lie <bjorn.lie@gmail.com>
- Redownload tarball via osc service, upstream source have changed.
-------------------------------------------------------------------
Mon Nov 11 20:38:31 UTC 2019 - Nico Kruber <nico.kruber@gmail.com>
- Update to 4.99.25rc9
+ fixed crashes on Windows
+ minor tweaks
-------------------------------------------------------------------
Mon Oct 14 07:42:59 UTC 2019 - Nico Kruber <nico.kruber@gmail.com>
- Update to 4.99.22rc6
-------------------------------------------------------------------
Sat Sep 28 13:36:03 UTC 2019 - Johannes Engel <jcnengel@gmail.com>
- Update to 4.99.19rc3
+ Merge with gwenhywfar package
-------------------------------------------------------------------
Tue Sep 24 22:49:26 UTC 2019 - Nico Kruber <nico.kruber@gmail.com>
- Update to 4.99.17rc1
-------------------------------------------------------------------
Sat Sep 14 18:09:48 UTC 2019 - Johannes Engel <jcnengel@gmail.com>
- Update to 4.99.15
+ Fix issue with Postbank
-------------------------------------------------------------------
Tue Apr 23 15:44:53 UTC 2019 - Michele Bologna <michele.bologna@suse.com>
- Fixed typo in changelog file
-------------------------------------------------------------------
Tue Apr 23 12:17:38 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Remove --with-pic which has no effect with --disable-static.
- Redo summaries without em dashes.
-------------------------------------------------------------------
Mon Mar 25 17:48:25 UTC 2019 - Christophe Giboudeaux <christophe@krop.fr>
- Prepare the KDE4/Qt4 removal from factory.
- Run spec-cleaner
-------------------------------------------------------------------
Wed Jan 30 21:34:35 CET 2019 - sbrabec@suse.com
- Update to version 4.99.8 (beta) required by libchipcard-5.1.2:
* Generalization in the generic TLV to GWEN DB parser.
* Speedup of GWEN_Date_dup (about factor 16).
* Correctly read a UTF-8-encoded MT940 file.
* Updated Gwengui-Gtk3.
* API improvements.
* Other fixes.
-------------------------------------------------------------------
Tue May 15 15:36:12 UTC 2018 - dimstar@opensuse.org
- Update to version 4.20.1:
+ bgo#794707: Aqbanking combo boxes missing selection.
+ Major speedup of GWEN_IdList64_AddId().
+ Fix all Gtk3 deprecation warnings.
-------------------------------------------------------------------
Thu Apr 5 01:14:17 UTC 2018 - luc14n0@linuxmail.org
- Update to version 4.20.0:
+ Add a Gtk3 frontend.
- Add:
+ pkgconfig(gtk+-3.0) BuildRequires and libgwengui-gtk3
subpackage following upstream changes.
+ Conditionalized autoconf, automake and libtool BuildRequires
along with autoreconf call to ease the switching between
tarballs with or without configure script.
+ Missing ldconfig post/postun scriptlets for libgwengui-qt5.
- Drop standard BuilRoot tag definition: RPM already handles this
itself.
- Delete redundant deprecated clean section.
- Switch gnutls and gtk2 devel packages BuildRequires with their
respectives pkgconfig modules counterparts.
-------------------------------------------------------------------
Mon Dec 11 13:02:15 UTC 2017 - wbauer@tmo.at
- Re-enable Qt4 front-end, kmymoney still needs it for its kbanking
plugin
- BuildIgnore libopenssl-1_0_0-devel to avoid openssl conflict on
Tumbleweed
-------------------------------------------------------------------
Mon Dec 4 22:59:04 UTC 2017 - nico.kruber@gmail.com
- Update to 4.18.0
+ show SSL certificate hashes as MD5, SHA1, and SHA512
-------------------------------------------------------------------
Mon Nov 27 10:00:09 UTC 2017 - dimstar@opensuse.org
- Conditionalize usage of qt4 libs
-------------------------------------------------------------------
Sat Jun 10 11:17:28 UTC 2017 - wbauer@tmo.at
- Enable Qt5 front-end
-------------------------------------------------------------------
Tue May 30 21:33:32 UTC 2017 - nico.kruber@gmail.com
- Update to 4.17.0
+ minor bugfixes
-------------------------------------------------------------------
Fri Oct 14 19:02:52 UTC 2016 - jcnengel@gmail.com
- Update to 4.16.0
+ Fix issues handling certificates
-------------------------------------------------------------------
Wed Sep 7 21:47:37 UTC 2016 - nico.kruber@gmail.com
- quick fix for $CPP being unset and configure failing to handle
include dirs properly
-------------------------------------------------------------------
Sun Aug 21 21:47:50 UTC 2016 - jcnengel@gmail.com
- Update to 4.15.5beta
+ Fix connections to buggy SSL servers
-------------------------------------------------------------------
Sat Apr 30 11:23:03 UTC 2016 - nico.kruber@gmail.com
- Update to 4.15.3
+ improve and simplify the TLS code
+ fix an error in the message parser (MsgEngine) that caused
problems with some special HBCI messages
+ new (experimental) QT5 front-end (not enabled yet here)
-------------------------------------------------------------------
Wed Jan 13 14:55:50 UTC 2016 - jcnengel@gmail.com
- Update to 4.15.2beta
+ Use new code for SSL connections to enable build with current
GnuTLS versions. This obsoletes patch gwenhywfar-gnutls30.patch
-------------------------------------------------------------------
Thu Nov 5 23:39:26 UTC 2015 - nico.kruber@gmail.com
- Update to 4.14.0:
+ Fix segfault on windows when using HBCI with keyfile.
+ Major speedup of GWEN_Directory_GetMatchingFilesRecursively().
+ Re-work Compiler Symbol Visibility Check.
+ Drop unused autoconf variable gwen_enable_export.
+ Fix symbol visibilty check for GCC 5.x.
+ Revert "Turn compiler warning for implicit function declaration
into error."
+ Revert "Disable timestamps in HTML pages generated by Doxygen".
+ Disable timestamps in HTML pages generated by Doxygen.
+ typemaker2: Added support for _free-hooks, fixed many compiler
warnings.
+ API ADDITION: Added 2 more virtual functions to
GWEN_MULTICACHE.
+ Added functions
GWEN_Param_List_Get/SetCurrentValueAsInt/Double.
-------------------------------------------------------------------
Thu Apr 23 18:33:42 UTC 2015 - zaitor@opensuse.org
- Add gwenhywfar-gnutls30.patch: Fix build with gnutls30, patch
taken from Arch linux.
-------------------------------------------------------------------
Fri Jan 30 13:28:41 UTC 2015 - zaitor@opensuse.org
- Update to version 4.13.1:
+ Add function declaration that was missing in header, as
discovered by the additional compiler option.
+ Turn compiler warning for implicit function declaration into
error.
+ Fix function name for systems without <langinfo.h> but with
<localcharset.h>.
-------------------------------------------------------------------
Sat Jan 3 11:41:27 UTC 2015 - jcnengel@gmail.com
- Update to version 4.13.0
+ Some bugfixes, stable version
-------------------------------------------------------------------
Fri Apr 18 22:05:36 UTC 2014 - jcnengel@gmail.com
- Update to version 4.12.0beta
+ Fixes a bug in calculating quarter's beginning and end
-------------------------------------------------------------------
Mon Mar 3 09:53:52 UTC 2014 - jcnengel@gmail.com
- Update to version 4.11.0beta
+ Bugfixes by Elias Oltmanns
-------------------------------------------------------------------
Sun Feb 9 19:55:20 UTC 2014 - jcnengel@gmail.com
- Update to version 4.10.0beta
+ Add functions for individual plugin paths for other libraries
- Create Fox16 GUI
- Move documentation to separate package to enable multi-version
coexistence of the library
-------------------------------------------------------------------
Mon Jan 6 21:31:06 UTC 2014 - nico.kruber@gmail.com
- Update to version 4.9.0beta:
+ adds new code for cipher selection with SSL connections
(still some problems with the Netbank, please report back)
+ Netbank works setting the GWEN_TLS_CIPHER_PRIORITIES
environment variable to "NORMAL:-AES-256-CBC"
-------------------------------------------------------------------
Wed Oct 23 14:42:06 UTC 2013 - nico.kruber@gmail.com
- Update to version 4.8.0beta:
+ new functions to work with dates (module GWEN_DATE,
e.g. GWEN_Date_GetLastHalfYearStart())
+ fix some errors in the layout of the FOX 1.6 GUI module.
+ some improvements in typemaker2.
-------------------------------------------------------------------
Wed Aug 21 19:57:46 UTC 2013 - nico.kruber@gmail.com
- Update to version 4.7.0beta:
+ contains improvements if the TypeMaker2 tool
+ fixes an error linking libgpg-error.so
+ adds some functions to the GWEN_XML and GWEN_DATE modules
used by the new AqBanking version 5.0.31beta
+ Info: this is still beta because the MULTICACHE module is
still work in progress
-------------------------------------------------------------------
Sun Jun 23 11:09:55 UTC 2013 - nico.kruber@gmail.com
- Update to version 4.6.0beta:
+ adds a new module for cache handling and some widely used
functionality
+ major (internal) improvements to typemaker2
+ complete German translation (thanks to Christian)
- Update to version 4.5.0beta:
+ adds some small changes for SEPA transactions needed by
aqbanking
-------------------------------------------------------------------
Sat Mar 2 08:18:17 UTC 2013 - coolo@suse.com
- update license to new format
-------------------------------------------------------------------
Tue Jul 3 11:20:52 UTC 2012 - aj@suse.de
- Change lang package Requires to Recommends since it is not
mandatory at runtime.
-------------------------------------------------------------------
Wed May 9 20:35:41 UTC 2012 - Nico.Laus.2001@gmx.de
- Update to version 4.3.3:
+ do not use the deprecated libgcrypt interface for RSA keys
anymore (allows compilation with newer libgcrypt versions)
-------------------------------------------------------------------
Fri Mar 9 07:37:01 UTC 2012 - Nico.Laus.2001@gmx.de
- Update to version 4.3.2:
+ fixes network problems on Windows
-------------------------------------------------------------------
Mon Jan 2 20:35:40 UTC 2012 - Nico.Laus.2001@gmx.de
- included %{_datadir}/aclocal in the devel package
-------------------------------------------------------------------
Tue Dec 20 08:39:50 UTC 2011 - Nico.Laus.2001@gmx.de
- removed gwenhywfar-gnutls-3.0.3.patch (fixed upstream in 4.3.1)
-------------------------------------------------------------------
Mon Dec 19 23:11:41 UTC 2011 - Nico.Laus.2001@gmx.de
- Update to version 4.3.1:
+ this version is needed for AqBanking's new support for the
optical chipTAN method
+ some improvements to the typemaker2 tool
-------------------------------------------------------------------
Wed Sep 28 08:41:14 UTC 2011 - vuntz@opensuse.org
- Add gwenhywfar-gnutls-3.0.3.patch: fix build with gnutls 3.0.3.
-------------------------------------------------------------------
Wed Sep 21 08:37:48 UTC 2011 - kruber@zib.de
- Update to version 4.3.0:
+ added a new method for converting charsets
+ better error handling in the build system
-------------------------------------------------------------------
Fri Aug 12 11:37:22 UTC 2011 - dimstar@opensuse.org
- Add GPL-2.0+ tag to the main package and the tools subpackage, as
this is the correct license for the tools and related sources.
See also bnc#710065.
-------------------------------------------------------------------
Tue Aug 2 09:33:34 CEST 2011 - dimstar@opensuse.org
- Update to version 4.2.1:
+ Make QLabel in GUI wrap words.
+ Relaxed http code.
-------------------------------------------------------------------
Sat Jul 16 04:14:05 CEST 2011 - malcolmlewis@opensuse.org
- Update to version 4.2.0:
+ Marked argument list of GWEN_StringList_new() as void.
+ Added keyword "void" to functions with empty argument list.
+ Let typemaker tools use "void" for empty argument lists in
constructors.
+ Added field "CustomerId" to GWEN_Crypt_Token_Context.
+ Added function GWEN_DB_GetParentGroup().
+ Added line for "hasKeyNumber" flag.
+ Show customer if available.
+ Added some tm2 files to ignore list.
+ typemaker2: added type uint64_t.
+ Improved and fixed GWEN_TLV, added functions
GWEN_TLV_ReadHeader() and GWEN_TLV_WriteHeader().
+ Started working on a simple archiver.
+ Fixed a few bugs in new TLV code.
+ Added tool "gsa" ("Gwen's simple archiver").
+ Improved HTTP handling:
- added function GWEN_SyncIo_Http_RecvBodyToSio().
- added function GWEN_HttpSession_RecvPacketToFile().
+ Added function GWEN_Directory_GetAbsoluteFolderPath().
+ Added convenience function GWEN_Sar_UnpackArchive().
+ Added code and commands to sign a sar archive.
+ Improved progress handling in network code.
+ Fixed GWEN_MDigest__HashFileTree().
+ Added missing include.
+ Various bug fixes and code cleanup.
- Update Url as Gwenhywfar is now being hosted at
http://www.aqbanking.de/.
- Update spec file License field from LGPLv2.1+ to LGPL-2.1+ to
conform with spdx.org identifier.
- Minor reformatting in spec file.
- Remove service usage, following the new consensus on Factory
packaging.
-------------------------------------------------------------------
Sat Jun 11 21:02:36 UTC 2011 - Nico.Laus.2001@gmx.de
- Update to version 4.1.0:
+ new code for sorting any GWEN_LIST
+ some bug fixes
-------------------------------------------------------------------
Thu Mar 17 20:18:46 UTC 2011 - Nico.Laus.2001@gmx.de
- Update to version 4.0.9:
+ fixes a bug in the Qt4 frontend
+ fixes a bug in the LIST1 module
+ fixes xml file generation using the XMLDB module
-------------------------------------------------------------------
Sun Feb 20 12:24:52 UTC 2011 - Nico.Laus.2001@gmx.de
- Update to version 4.0.7:
+ fixes problems with smsTAN/mTAN
+ keep the focus chain intact in QT4 GUI
- Update to version 4.0.5:
+ fixes a bug with chunked HTTP
-------------------------------------------------------------------
Thu Jan 27 20:41:17 UTC 2011 - Nico.Laus.2001@gmx.de
- Update to version 4.0.4:
+ fixes a bug in the GTK2 front-end
+ fixes a bug in the network code on MaxOSX
-------------------------------------------------------------------
Sat Jan 15 09:50:16 UTC 2011 - Nico.Laus.2001@gmx.de
- Update to version 4.0.3:
+ improved error messages
+ several bug fixes
-------------------------------------------------------------------
Fri Dec 10 10:05:23 CET 2010 - vuntz@opensuse.org
- Update to version 4.0.2:
+ Fix GTK+ password entry.
+ Build fixes.
- Split libgwengui_gtk2-0 and libgwengui_qt4-0 subpackages, as we
don't want libgwenhywfar60 to depend on both GTK+ and Qt.
- Add libgwengui-gtk2-0 and libgwengui-qt4-0 Requires to devel
package.
-------------------------------------------------------------------
Thu Sep 2 20:30:28 UTC 2010 - dimstar@opensuse.org
- Update to version 4.0.1:
+ Fix gtk2 building for Windows
+ Improved HTTP handling.
-------------------------------------------------------------------
Thu Sep 2 10:27:29 CEST 2010 - dimstar@opensuse.org
- Update to version 4.0.0:
+ Gwenhywfar4 features a new XML-based platform and toolkit.
+ Independent dialog framework which is heavily used by
AqBanking5.
+ Provide generic UI implementations for GTK-2, Qt-4, and
FOX-1.6.
+ The network code has been rewritten and thereby changed from
asynchronous to synchronous access to fix some strange timeout
problems.
+ Many bugs and problems have been fixed.
- Add gtk2-devel and libqt4-devel BuildRequires.
- Follow the so bump of the library, change the library package
name to from libgwenhywfar47 to libgwenhywfar60
- Remove Provides/Obsoletes of gwenhywfar$sover from
libgwenhywfar$sover-plugins: it was there for upgrades of the old
package.
- Pass --with-qt4-libs=%{_libdir} to configure.
- Use _smp_mflags.
-------------------------------------------------------------------
Sat Jan 2 16:17:01 CET 2010 - vuntz@opensuse.org
- Update to version 3.11.3:
+ GWEN_DB: Escape and unescape group names upon read/write,
respectively.
+ Show a more informative erro message when a false chipcard has
been inserted.
- Changes from version 3.11.2:
+ Add unittest for GWEN_Url_fromString that checks those cases
that work.
+ Do not abort on unknown port number.
+ Improve error messages.
+ Check for NULL token name before crashing in FSLock_new so that
a more clear error message is printed instead.
+ Decrease debug level of non-critical info message.
+ Improved handling of file/directory locks on POSIX systems.
+ Windows fixes.
+ Build system fixes.
-------------------------------------------------------------------
Tue Dec 15 14:55:58 CET 2009 - vuntz@opensuse.org
- Remove unneeded libxml2-devel BuildRequires.
- Remove autoreconf call since we have no patch.
- Rework the install section to be more readable.
- Rename gwenhywfar47 to libgwenhywfar47-plugins, since it's a more
appropriate name. Add Provides/Obsoletes for the old package.
- Make libgwenhywfar47 recommends the libgwenhywfar47-plugins
package. Also remove any Requires/Recommends from the main
package to libgwenhywfar47-plugins or gwenhywfar47 since
libgwenhywfar47 should be enough.
- Rename the main package to gwenhywfar-tools and move some tools
from devel subpackage there.
- Split a lang package, that is required by the library package,
and make the library package now provide gwenhywfar to make the
lang package installable.
-------------------------------------------------------------------
Sun Dec 1 22:00:00 CET 2009 - Nico.Laus.2001@gmx.de
- Update to version 3.11.1:
+ compile on windows
- Changes from version 3.11.0:
+ fixes some minor bugs
+ extended the HTTP session module to allow testing connections
(used by the AqBanking-EBICS module to download new
certificates)
+ special support for statistical modules has been removed again
to simplify the build system
- Changes from version 3.10.1:
+ fixes a bug in GWEN_Url_fromString() and supports username and
password with HTTP proxies (tested with squid2)
+ fixed a problem on MacOSX
- Changes from version 3.10.0
+ adds new support for RDH-10
+ includes the tool typemaker2, an improved version of the old
typemaker which includes support for AqFinance
+ added the data type GWEN_DATE which is now used by AqFinance
instead of GWEN_TIME when only a date is required instead of a
full timestamp
-------------------------------------------------------------------
Mon Oct 12 02:02:57 UTC 2009 - crrodriguez@opensuse.org
- fix dependencies (was using >= instead of =)
-------------------------------------------------------------------
Thu Sep 3 16:05:28 CEST 2009 - sbrabec@suse.cz
- Typo fix in dependencies.
-------------------------------------------------------------------
Fri Aug 14 17:34:35 CEST 2009 - sbrabec@suse.cz
- Split package to allow parrallel installation of more versions.
-------------------------------------------------------------------
Wed Jun 24 19:35:29 CEST 2009 - mkudlvasr@suse.cz
- update to version 3.8.3
* lots of bugs fixed, lots of new features
- removed patch0 (tests/gwenhywfar.c). not needed anymore
-------------------------------------------------------------------
Thu Jan 24 11:32:18 CET 2008 - coolo@suse.de
- fixing open call
-------------------------------------------------------------------
Fri Nov 9 06:17:34 CET 2007 - crrodriguez@suse.de
- update to version 2.6.2
* Release is only interesting for windows or NetBSD users
- disable static libraries
- remove "la" files
- remove unnedded dependency on libopenssl-devel in the -devel package
-------------------------------------------------------------------
Fri Jul 27 12:55:13 CEST 2007 - sbrabec@suse.cz
- Updated to version 2.6.1:
* Minor bugs have been fixed.
* Cross-compiling is now supported.
* Some missing list functions have been added.
* Decreases the verbosity.
* Makes gwenhywfar completely relocatable using binreloc.
- Split package according to shared library packaging policy.
- Build with libxml2.
- Build and create api docs.
-------------------------------------------------------------------
Mon Oct 2 18:05:46 CEST 2006 - sbrabec@suse.cz
- Updated to version 2.4.1:
* bug fixes
* removed debugging messages
* clean up the API
-------------------------------------------------------------------
Fri Sep 15 23:56:04 CEST 2006 - jhargadon@suse.de
- update to version 2.4.0
- This release adds GWEN_DBIO plugin which writes GWEN_DB's as XML files
-------------------------------------------------------------------
Tue Jun 20 09:10:57 CEST 2006 - stbinner@suse.de
- Update to version 2.3.0:
* Adds a new module for fast lookup of objects via integer IDs.
* Adds a storage module to be used by further projects.
-------------------------------------------------------------------
Thu May 11 13:56:26 CEST 2006 - sbrabec@suse.cz
- Updated to version 2.2.0.
-------------------------------------------------------------------
Wed Jan 25 21:36:24 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Mon Jan 16 19:02:19 CET 2006 - sbrabec@suse.cz
- Updated to version 1.19.2.
-------------------------------------------------------------------
Wed Oct 19 16:34:46 CEST 2005 - sbrabec@suse.cz
- New SuSE package, version 1.18.0.
Based on spec file from Rajesh Singh <rajeshsingh.geo@yahoo.com>.

329
gwenhywfar.spec Normal file
View File

@@ -0,0 +1,329 @@
#
# spec file for package gwenhywfar
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define libversion 79
%define devversion 5
%define devrelease 5.12
# Beta does not mean "before release" but a release that is considered as beta:
%define _version %{version}
%define _name gwenhywfar
%define releasenumber 529
%define checksumreleasenumber 528
%bcond_without configure
Name: gwenhywfar
Version: 5.12.0
Release: 0
Summary: Multiplatform helper library for other libraries
License: GPL-2.0-or-later AND LGPL-2.1-or-later
URL: https://www.aquamaniac.de/rdm/projects/gwenhywfar
Source: https://www.aquamaniac.de/rdm/attachments/download/%{releasenumber}/%{_name}-%{_version}.tar.gz
Source1: https://www.aquamaniac.de/rdm/attachments/download/%{checksumreleasenumber}/%{_name}-%{_version}.tar.gz.asc
# PATCH-FIX-UPSTREAM -- gcc 15 build fix
Patch0: gwenhywfar-gcc15.patch
# PATCH-FEATURE-UPSTREAM -- Qt 6 support
Patch1: 0001-Fix-name-of-output-variable.patch
Patch2: 0002-Support-building-for-Qt6.patch
Patch3: 0003-Adjusted-expression-to-work-correclty-using-Qt5-and-.patch
Patch4: 0004-Add-missing-files-to-AC_CONFIG_FILES.patch
Patch5: 0005-Prevent-configuration-for-Qt5-and-Qt6-at-the-same-ti.patch
Patch6: 0006-Improve-configuration-on-systems-with-Qt5-and-Qt6-in.patch
Patch7: 0007-Remove-debug-output.patch
BuildRequires: doxygen
BuildRequires: fdupes
# graphviz wants a URW font
BuildRequires: ghostscript-fonts-std-converted
# For doc graphs
BuildRequires: graphviz
BuildRequires: graphviz-gd
BuildRequires: pkgconfig
BuildRequires: xorg-x11-fonts
BuildRequires: cmake(Qt5Concurrent)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: cmake(Qt5Network)
BuildRequires: cmake(Qt5OpenGL)
BuildRequires: cmake(Qt5PrintSupport)
BuildRequires: cmake(Qt5Sql)
BuildRequires: cmake(Qt5Test)
BuildRequires: cmake(Qt5Xml)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: pkgconfig(gnutls) >= 2.9.8
BuildRequires: pkgconfig(gpg-error)
BuildRequires: pkgconfig(gtk+-2.0) >= 2.17.5
BuildRequires: pkgconfig(gtk+-3.0) >= 3.14.0
BuildRequires: pkgconfig(libgcrypt) >= 1.2.0
BuildRequires: pkgconfig(opengl)
BuildRequires: pkgconfig(openssl)
Recommends: libgwenhywfar%{libversion}
%if %{with configure}
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%endif
%if 0%{?fedora} == 15
BuildRequires: fox-devel >= 1.6
%else
BuildRequires: fox16-devel
%endif
%description
Gwenhywfar is a base library used to provide OS abstraction functions
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes some
often needed functions (for example, handling and parsing of
configuration files, reading and writingof XML files, and interprocess
communication).
%package tools
Summary: Tools for the gwenhywfar multi-platform helper library
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Requires: libgwenhywfar%{libversion} = %{version}
%description tools
Gwenhywfar is a base library used to provide OS abstraction functions
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes
some often needed functions (for example, for handling and parsing of
configuration files, reading and writing of XML files, and interprocess
communication).
%package -n libgwenhywfar%{libversion}-plugins
Summary: Plugins for the gwenhywfar multi-platform helper library
License: LGPL-2.1-or-later
Requires: %{name} = %{version}
%description -n libgwenhywfar%{libversion}-plugins
Gwenhywfar is a base library used to provide OS abstraction functions
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes
some often needed functions (for example, for handling and parsing of
configuration files, reading and writing of XML files, and interprocess
communication).
%package -n libgwenhywfar%{libversion}
Summary: Multiplatform Helper Library for Other Libraries
License: LGPL-2.1-or-later
Recommends: %{name}-lang
Recommends: libgwenhywfar%{libversion}-plugins = %{version}
%description -n libgwenhywfar%{libversion}
Gwenhywfar is a base library used to provide OS abstraction functions
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes
some often needed functions (for example, for handling and parsing of
configuration files, reading and writing of XML files, and interprocess
communication).
%package -n libgwengui-cpp%{libversion}
Summary: C++ interface for Gwenhywfar
License: GPL-2.0-or-later AND LGPL-2.1-or-later
%description -n libgwengui-cpp%{libversion}
This package contains the C++ GUI interface for Gwenhywfar.
%package -n libgwengui-gtk2-%{libversion}
Summary: GTK+ 2 UI backend for Gwenhywfar
License: LGPL-2.1-or-later
%description -n libgwengui-gtk2-%{libversion}
Gwenhywfar is a base library used to provide OS abstraction functions
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes
some often needed functions (for example, for handling and parsing of
configuration files, reading and writing of XML files, and interprocess
communication).
This package provides the GTK+ 2 implementation of the generic UI toolkit.
%package -n libgwengui-gtk3-%{libversion}
Summary: GTK+ 3 UI backend for Gwenhywfar
License: LGPL-2.1-or-later
%description -n libgwengui-gtk3-%{libversion}
Gwenhywfar is a base library used to provide OS abstraction functions
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes
some often needed functions (for example, for handling and parsing of
configuration files, reading and writing of XML files, and interprocess
communication).
This package provides the GTK+ 3 implementation of the generic UI toolkit.
%package -n libgwengui-qt5-%{libversion}
Summary: Qt5 UI backend for the gwenhywfar multi-platform helper library
License: LGPL-2.1-or-later
Provides: libgwengui-qt4-0 = %{version}
Obsoletes: libgwengui-qt4-0 < %{version}
%description -n libgwengui-qt5-%{libversion}
Gwenhywfar is a base library used to provide OS abstraction functions
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes
some often needed functions (for example, for handling and parsing of
configuration files, reading and writing of XML files, and interprocess
communication).
This package provides the Qt5 implementation of the generic UI toolkit.
%package -n libgwengui-fox16-%{libversion}
Summary: FOX interface for Gwenhywfar
License: GPL-2.0-or-later AND LGPL-2.1-or-later
%description -n libgwengui-fox16-%{libversion}
This package contains the interface to the FOX toolkit
for Gwenhywfar.
%package devel
Summary: Header files for the Gwenhywfar multi-platform helper library
License: LGPL-2.1-or-later
Requires: glibc-devel
Requires: libgwengui-cpp%{libversion} >= %{version}
Requires: libgwengui-fox16-%{libversion} >= %{version}
Requires: libgwengui-gtk2-%{libversion} >= %{version}
Requires: libgwengui-gtk3-%{libversion} >= %{version}
Requires: libgwengui-qt5-%{libversion} >= %{version}
Requires: libgwenhywfar%{libversion} = %{version}
%description devel
Gwenhywfar is a base library used to provide OS abstraction functions
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes
some often needed functions (e.g. for handling and parsing of
configuration files, reading/writing of XML files, interprocess
communication etc).
%package gwenbuild
Summary: Specific build system for the aqbanking universe
License: LGPL-2.1-or-later
Requires: %{name}-devel = %{version}
%description gwenbuild
Gwenbuild is a lightweight and fast build system tailored for the
aqbanking universe.
%lang_package
%prep
%autosetup -p1 -n %{_name}-%{_version}
%build
# Fix warnings
doxygen -u Doxyfile.in
export PATH=%{_libqt5_bindir}:$PATH
%if %{with configure}
autoreconf -ifv
%endif
%configure\
--enable-release\
--enable-full-doc\
--with-docpath=%{_docdir}/%{name}/api \
--disable-static \
--with-guis="fox16 qt5 gtk2 gtk3" \
--with-plugins-cfgmgr=all
%make_jobs
%make_build srcdoc
%install
%make_install
%make_install install-srcdoc
pushd %{buildroot}%{_docdir}/%{name}/api
# we don't want another 'gwenhywfar' dir below docpath
mv %{_name}/* ./
rm -rf %{_name}
# remove empty files
`find -maxdepth 1 -type f -empty -print0 | xargs -0 echo rm -f`
popd
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{_name}
%fdupes %{buildroot}%{_datadir}/%{_name}/apidoc
%fdupes %{buildroot}%{_libdir}/cmake
%fdupes %{buildroot}%{_docdir}
%ldconfig_scriptlets -n libgwenhywfar%{libversion}
%ldconfig_scriptlets -n libgwengui-cpp%{libversion}
%ldconfig_scriptlets -n libgwengui-gtk2-%{libversion}
%ldconfig_scriptlets -n libgwengui-gtk3-%{libversion}
%ldconfig_scriptlets -n libgwengui-qt5-%{libversion}
%ldconfig_scriptlets -n libgwengui-fox16-%{libversion}
%files
%license COPYING
%doc AUTHORS NEWS README TODO
%dir %{_datadir}/%{_name}/
%{_datadir}/%{_name}/dialogs/
%dir %{_libdir}/%{_name}
%dir %{_libdir}/%{_name}/plugins
%dir %{_libdir}/%{_name}/plugins/%{libversion}
%exclude %{_docdir}/%{name}/api
%files tools
%{_bindir}/gct-tool
%{_bindir}/gsa
%{_bindir}/mklistdoc
%{_bindir}/typemaker
%{_bindir}/typemaker2
%{_bindir}/xmlmerge
%{_datadir}/%{_name}/typemaker2/
%files -n libgwenhywfar%{libversion}-plugins
%{_libdir}/%{_name}/plugins/%{libversion}/*
%files -n libgwenhywfar%{libversion}
%{_libdir}/lib%{_name}.so.*
%files -n libgwengui-cpp%{libversion}
%{_libdir}/libgwengui-cpp.so.*
%files -n libgwengui-gtk2-%{libversion}
%{_libdir}/libgwengui-gtk2.so.*
%files -n libgwengui-gtk3-%{libversion}
%{_libdir}/libgwengui-gtk3.so.*
%files -n libgwengui-qt5-%{libversion}
%{_libdir}/libgwengui-qt5.so.*
%files -n libgwengui-fox16-%{libversion}
%{_libdir}/libgwengui-fox16.so.*
%files devel
%{_bindir}/%{_name}-config
%dir %{_datadir}/aclocal
%{_datadir}/aclocal/%{_name}.m4
%doc %{_docdir}/%{name}/api/
%{_includedir}/%{_name}%{devversion}/
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{_name}.pc
%{_libdir}/pkgconfig/gwengui-gtk2.pc
%{_libdir}/pkgconfig/gwengui-gtk3.pc
%{_libdir}/pkgconfig/gwengui-qt5.pc
%{_libdir}/pkgconfig/gwengui-fox16.pc
%dir %{_libdir}/cmake
%{_libdir}/cmake/%{_name}-%{devrelease}
%{_libdir}/cmake/gwengui-cpp-%{devrelease}
%{_libdir}/cmake/gwengui-qt5-%{devrelease}
%files lang -f %{_name}.lang
%files gwenbuild
%dir %{_datadir}/gwenhywfar
%{_datadir}/gwenhywfar/gwenbuild
%{_datadir}/gwenbuild
%{_bindir}/gwbuild
%changelog