From b27cffec73fd51ecf5e119e6d77034e388762034b5568ba8b39e172cd8efb7c4 Mon Sep 17 00:00:00 2001
From: Johannes Engel <jcnengel@gmail.com>
Date: Sat, 8 Jul 2023 15:10:09 +0000
Subject: [PATCH] Accepting request 1097746 from home:j-engel:banking

Update to 5.3

OBS-URL: https://build.opensuse.org/request/show/1097746
OBS-URL: https://build.opensuse.org/package/show/Office/gnucash?expand=0&rev=33
---
 gnucash-4.14.tar.bz2 |  3 --
 gnucash-5.3.tar.bz2  |  3 ++
 gnucash.changes      | 95 ++++++++++++++++++++++++++++++++++++++++++++
 gnucash.spec         | 29 +++++++-------
 4 files changed, 113 insertions(+), 17 deletions(-)
 delete mode 100644 gnucash-4.14.tar.bz2
 create mode 100644 gnucash-5.3.tar.bz2

diff --git a/gnucash-4.14.tar.bz2 b/gnucash-4.14.tar.bz2
deleted file mode 100644
index aefbc19..0000000
--- a/gnucash-4.14.tar.bz2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:ac1b550bc6a85c458323fbee5090828ed939aefd33a6902a0bba3e5d99c04199
-size 14675204
diff --git a/gnucash-5.3.tar.bz2 b/gnucash-5.3.tar.bz2
new file mode 100644
index 0000000..3fc112c
--- /dev/null
+++ b/gnucash-5.3.tar.bz2
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1458cb08c585eae9d724bec6f2812bcc03bbe83ed294a46a7897aaab01a6f15a
+size 14928584
diff --git a/gnucash.changes b/gnucash.changes
index c86aed6..9de6e51 100644
--- a/gnucash.changes
+++ b/gnucash.changes
@@ -1,3 +1,98 @@
+-------------------------------------------------------------------
+Sat Jul  8 13:02:24 UTC 2023 - Johannes Engel <jcnengel@gmail.com>
+
+- Update to 5.3
+  + Bugfixes
+  + The type-ahead selection of transaction descriptions has been 
+    substantially overhauled based on extensive user feedback. 
+    Matches are now only on the beginning of words and are now 
+    sorted by age since last use. This both substantially reduces 
+    the number of matches and prioritizes the most recently used as
+    being the most likely candidates for re-use. To help 
+    distinguish cases of long descriptions where the match would be 
+    outside the popup's viewport the viewport is automatically 
+    scrolled horizontally so that the end of the left-most 
+    (right-most in rtl languages) matches is centered in the view. 
+    Completion can be aborted with the <escape> key or a new 
+    Don't autocomplete selection that's the first entry in the popup.
+  + Fix lockup on Windows in type-ahead selection of transaction 
+    descriptions.
+  + More budget-module sign fixes and improvements.
+  + Lots of memory-leak fixes, GLib modernization, and code cleanup 
+    by Richard Cohen, Simon Arlott, & Chris Lam.
+  + bugfix xaccTransGetTxnType: avoid returning TXN_TYPE_LINK 
+    incorrectly: A TXN_TYPE_PAYMENT will have non-APAR splits; a 
+    TXN_TYPE_LINK will not have non-APAR splits. This bug manifests 
+    as a regular TXN_TYPE_PAYMENT transaction being later voided 
+    being incorrectly changed to TXN_TYPE_LINK.
+  + Including brokerage fees in Money Out calculation (if not 
+    ignoring them) in advanced-portfolio.scm report and updating the 
+    "advanced" tests to reflect selling fees being included into the 
+    money out value
+  + [stock-txn-asst] Don't use the initial value in amount edit 
+    widgets unless they're valid. Otherwise the invalid value will 
+    log an error that will prevent later valid input from working.
+  + BUGFIX: Actions > Online Actions > Show log Window does not open 
+    when it is first clicked.
+  + cmake: check gdk only when building GUI
+  + Get the tooltip working on "Online Banking Setup"
+
+-------------------------------------------------------------------
+Sun Jun 11 19:29:03 UTC 2023 - Johannes Engel <jcnengel@gmail.com>
+
+- Update to 5.1
+  + Bugfixes
+
+-------------------------------------------------------------------
+Sat Apr 15 17:56:05 UTC 2023 - Johannes Engel <jcnengel@gmail.com>
+
+- Update to 5.0
+  + A new Stock Transaction Assistant to guide you through entering 
+    most investment transactions for stocks, bonds, and mutual 
+    funds. You can access it from Actions>Stock Assistant when the 
+    focus tab is the Accounts page or a Stock or Fund account 
+    register.
+  + A new Investment Lots report showing a graph of capital gains 
+    and losses in a period by investment lot. Note that if you 
+    don't use the View Lots dialog to manage capital gains and 
+    losses this report won't have anything to show you. Use 
+    Reports>Assets & Liabilities>Investment Lots to see the report.
+  + The Online Quotes facility has been completely rewritten and 
+    the old gnc-fq-check, gnc-fq-dump, and gnc-fq-helper programs 
+    have been replaced with finance-quote-wrapper. The functions 
+    performed by those programs may now be accomplished by passing 
+    commands to gnucash-cli -Q, see gnucash-cli --help for 
+    specifics. The perl module requirements have changed with the 
+    rewrite: The new version doesn't need Date::Manip but needs 
+    JSON::Parse instead. gnc-fq-update has been, er, updated to 
+    reflect that.
+  + A new tab on the New/Edit Account dialog called More Properties 
+    includes entries to set a high and low limit on an account. 
+    That's coupled to a new column that's available on the Accounts 
+    Page, Balance Limit. If you set a high or low limit and the 
+    account balance falls above or below the respective limit an 
+    indicator will be shown in the Balance Limit column.
+  + The description field quickfill in the register now displays a 
+    drop-down list of possible completions instead of just one 
+    inline completion.
+  + File import menu items for the MT940, MT942, and DTAUS formats 
+    is replaced with a single Import from AQBanking that supports 
+    importing any file format supported by AQBanking, including the 
+    frequently requested CAMT. (Note that some CAMT profiles are 
+    under the XML format.)
+  + The import matcher now permits editing descriptions, notes, and 
+    memo fields in the matcher window before creating the 
+    transactions. Right-click and select from the context menu.
+  + The report generated by the Print Invoice button on the Edit 
+    Invoice tab can now be configured as a book option at the 
+    bottom of the Business tab; this permits selecting a saved 
+    configuration of one of the standard invoice reports. Another 
+    option enables a delay, during which a dialog box will appear 
+    enabling the user to select a different report. Note: When 
+    saving a configuration make sure that the invoice number is not 
+    set or you'll get that particular invoice instead of the one 
+    that you pressed the button for.
+
 -------------------------------------------------------------------
 Sun Apr  2 13:34:56 UTC 2023 - Johannes Engel <jcnengel@gmail.com>
 
diff --git a/gnucash.spec b/gnucash.spec
index 140ec79..b53ee76 100644
--- a/gnucash.spec
+++ b/gnucash.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package gnucash
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -28,7 +28,7 @@
 %endif
 
 Name:           gnucash
-Version:        4.14
+Version:        5.3
 Release:        0
 Summary:        Personal Finance Manager
 License:        SUSE-GPL-2.0-with-openssl-exception OR SUSE-GPL-3.0-with-openssl-exception
@@ -43,21 +43,20 @@ Patch0:         gnucash-cpan-warning.patch
 Patch1:         gnucash-libm.patch
 Patch2:         gnucash-4.1-fix-gtest-path.patch
 
-BuildRequires:  boost-devel >= 1.60.0
-BuildRequires:  cmake >= 3.5
+BuildRequires:  cmake >= 3.10
 BuildRequires:  doxygen
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  gmock >= 1.8.0
 BuildRequires:  gtest >= 1.8.0
 BuildRequires:  guile-devel
-BuildRequires:  libboost_date_time-devel >= 1.60.0
-BuildRequires:  libboost_filesystem-devel >= 1.60.0
-BuildRequires:  libboost_headers-devel >= 1.60.0
-BuildRequires:  libboost_locale-devel >= 1.60.0
-BuildRequires:  libboost_program_options-devel >= 1.60.0
-BuildRequires:  libboost_regex-devel >= 1.60.0
-BuildRequires:  libboost_system-devel >= 1.60.0
+BuildRequires:  libboost_date_time-devel-impl >= 1.67.0
+BuildRequires:  libboost_filesystem-devel-impl >= 1.67.0
+BuildRequires:  libboost_headers-devel-impl >= 1.67.0
+BuildRequires:  libboost_locale-devel-impl >= 1.67.0
+BuildRequires:  libboost_program_options-devel-impl >= 1.67.0
+BuildRequires:  libboost_regex-devel-impl >= 1.67.0
+BuildRequires:  libboost_system-devel-impl >= 1.67.0
 BuildRequires:  libdbi-drivers-dbd-sqlite3
 BuildRequires:  makeinfo
 BuildRequires:  ninja
@@ -74,7 +73,7 @@ BuildRequires:  pkgconfig(gmodule-2.0) >= 2.40
 BuildRequires:  pkgconfig(gnome-keyring-1) >= 0.6
 BuildRequires:  pkgconfig(gobject-2.0) >= 2.40
 BuildRequires:  pkgconfig(gthread-2.0) >= 2.40
-BuildRequires:  pkgconfig(gtk+-3.0) >= 3.10.0
+BuildRequires:  pkgconfig(gtk+-3.0) >= 3.22.29
 BuildRequires:  pkgconfig(gwenhywfar) >= 3.99.20
 BuildRequires:  pkgconfig(icu-i18n)
 BuildRequires:  pkgconfig(icu-uc)
@@ -82,7 +81,7 @@ BuildRequires:  pkgconfig(ktoblzcheck)
 BuildRequires:  pkgconfig(libglade-2.0)
 BuildRequires:  pkgconfig(libofx) >= 0.9.0
 BuildRequires:  pkgconfig(libsecret-1) >= 0.18
-BuildRequires:  pkgconfig(libxml-2.0) >= 2.7.0
+BuildRequires:  pkgconfig(libxml-2.0) >= 2.9.4
 BuildRequires:  pkgconfig(libxslt)
 BuildRequires:  pkgconfig(webkit2gtk-4.1)
 Recommends:     %{name}-docs
@@ -144,7 +143,8 @@ a personal finance manager.
     -DGMOCK_ROOT=%{_includedir}/gmock \
     -DGTEST_ROOT=%{_includedir}/gtest \
     -DWITH_PYTHON=ON \
-    -DCOMPILE_GSCHEMAS=OFF
+    -DCOMPILE_GSCHEMAS=OFF \
+    -DCMAKE_CXX_FLAGS=-Wno-error
 %cmake_build
 
 %install
@@ -161,6 +161,7 @@ rm %{buildroot}%{_docdir}/%{name}/LICENSE
 %files
 %license LICENSE
 %{_bindir}/gnc-fq-*
+%{_bindir}/finance-quote-wrapper
 %{_bindir}/gnucash
 %{_bindir}/gnucash-cli
 %{_bindir}/gnucash-valgrind