gnucash/gnucash.spec
Johannes Engel 3edd1abd0c Accepting request 1076737 from home:j-engel:banking
- Update to 4.14
  + Bugfixes
    o Bug 797477 - Manual foreign transaction from APAR to 
      another doesn't trigger price input
    o Bug 797725 - Untranslatable string "For Period Covering 
      ~a to ~a"
    o Bug 797903 - Transaction window: The 'blue line' is always 
      (erroneously) topmost when t. sorting order is inverted.
    o Bug 798570 - Totals for the income, expenses and remaining to 
      budget incorrect for one specific date.
    o Bug 798625 - "Last up through report date" changed in 4.12
      Don't adjust report dates with time64CanonicalDayTime. They're 
      set to 23:59:59 local which is always >= neutral time at which 
      prices and transactions are timestamped. Local noon is before 
      neutral time for all time zones east of UTC+2.
    o Bug 798679 - Unicode normalization should be used for 
      comparison but not stored.
      Change to NFC normalization for all comparisons because the 
      Unicode meaning of compatible might collide with the user's 
      intent.
    o Bug 798702 - Crash in gnc_plugin_page_focus_idle_destroy() 
      closing a report before it completes.
    o Bug 798705 - ] New: UI string mismatch: OK vs. Next
    o Bug 798712 - Regional Decimal Point not recognized in budgets
    o Bug 798717 - Reports > Business > Fancy Invoice duplicates 
      company details
    o Bug 798732 - : Type of balance carry forward accounts for 
      German skr49 account template fixed
    o Bug 798734 - Aging Reports don't handle mixed currency payments 
      and invoices without Trading Accounts
    o Bug 798734 - Aging Reports don't handle mixed currency payments 
      and invoices without Trading Accounts
    o Bug 798737 - Minor grammatical error - 'for' missing in 'You 
      will be asked a conversion rate for each.'
    o Bug 798740 - Build fails with gcc 13
    o Bug 798747 - Crash in Investment Portfolio report
    o Bug 798748 - Transaction Notes field's value does not appear in 
      reverse transaction.
    o Bug 798754 - Build fails with gcc 13 and glib > 2.76
    o Bug 798759 - Register widths for 'with sub-account' not saved
    o Bug 798765 - Increase the limit for Maximum Slices in the Expense 
      Piechart

OBS-URL: https://build.opensuse.org/request/show/1076737
OBS-URL: https://build.opensuse.org/package/show/Office/gnucash?expand=0&rev=30
2023-04-02 13:48:26 +00:00

198 lines
6.3 KiB
RPMSpec

#
# spec file for package gnucash
#
# Copyright (c) 2022 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 __builder ninja
# Define used guile version
%if 0%{?suse_version} > 1500
%define guile_version 3.0
%else
%if 0%{?sle_version} >= 150200
%define guile_version 2.0
%endif
%endif
Name: gnucash
Version: 4.14
Release: 0
Summary: Personal Finance Manager
License: SUSE-GPL-2.0-with-openssl-exception OR SUSE-GPL-3.0-with-openssl-exception
Group: Productivity/Office/Finance
URL: http://www.gnucash.org/
Source: https://github.com/Gnucash/gnucash/releases/download/%{version}/%{name}-%{version}.tar.bz2
Source1: %{name}-rpmlintrc
## Cpan-warning patch must always be applied.
# PATCH-FIX-UPSTREAM gnucash-cpan-warning.patch -- Add a warning about the danger of using gnc-fq-update to update the perl modules used by GnuCash.
Patch0: gnucash-cpan-warning.patch
# PATCH-FIX-UPSTREAM gnucash-libm.patch gh#gnucash/gnucash#632 dimstar@opensuse.org -- Link libm: gnucash uses e.g. log10 without explicitly requesting libm
Patch1: gnucash-libm.patch
Patch2: gnucash-4.1-fix-gtest-path.patch
BuildRequires: boost-devel >= 1.60.0
BuildRequires: cmake >= 3.5
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: libdbi-drivers-dbd-sqlite3
BuildRequires: makeinfo
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: python3-devel
BuildRequires: swig >= 3.0.12
BuildRequires: xsltproc
BuildRequires: pkgconfig(aqbanking) >= 6.0.0
BuildRequires: pkgconfig(dbi) >= 0.8.3
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0) >= 2.56.1
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(gwenhywfar) >= 3.99.20
BuildRequires: pkgconfig(icu-i18n)
BuildRequires: pkgconfig(icu-uc)
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(libxslt)
BuildRequires: pkgconfig(webkit2gtk-4.1)
Recommends: %{name}-docs
# For translation of currency names
Recommends: iso-codes
Recommends: python3-gnucash = %{version}
# Optional perl modules for online price retrieval
Recommends: perl(Date::Manip)
Recommends: yelp
Recommends: perl(Finance::Quote)
BuildRequires: pkgconfig(gwengui-gtk3)
%description
GnuCash is a personal finance manager. A check book-like register GUI
allows you to enter and track bank accounts, stocks, income, and even
currency trades.
Feature Highlights:
* Double-Entry Accounting;
* Stock/Bond/Mutual Fund Accounts;
* Small-Business Accounting;
* Reports, Graphs;
* QIF/OFX/HBCI Import, Transaction Matching;
* Scheduled Transactions;
* Financial Calculations.
%package -n python3-gnucash
Summary: Python bindings for GnuCash
Group: Development/Libraries/Python
Requires: %{name} = %{version}
%description -n python3-gnucash
This package provides the Python 3 bindings for development of GnuCash,
a personal finance manager.
%package devel
Summary: Development files for GnuCash
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
This package provides all the necessary files for development of GnuCash,
a personal finance manager.
%lang_package
%prep
%autosetup -p1 -n %{name}-%{version}
%build
%define _lto_cflags %{nil}
%define __builder ninja
%cmake \
-DCMAKE_SKIP_INSTALL_RPATH:BOOL=OFF \
-DCMAKE_SKIP_RPATH=OFF \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
-DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name} \
-DGMOCK_ROOT=%{_includedir}/gmock \
-DGTEST_ROOT=%{_includedir}/gtest \
-DWITH_PYTHON=ON \
-DCOMPILE_GSCHEMAS=OFF
%cmake_build
%install
%cmake_install
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_libdir}
%fdupes %{buildroot}%{_datadir}
# Remove MS-Windows-related files and auto-installed LICENSE file
rm %{buildroot}%{_docdir}/%{name}/LICENSE
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license LICENSE
%{_bindir}/gnc-fq-*
%{_bindir}/gnucash
%{_bindir}/gnucash-cli
%{_bindir}/gnucash-valgrind
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/gnucash.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/org.gnucash.*.xml
%{_datadir}/gnucash/
%{_datadir}/icons/hicolor/*/apps/gnucash-icon.png
%{_datadir}/icons/hicolor/scalable/apps/gnucash-icon.svg
%dir %{_datadir}/guile/site/%{guile_version}
%{_datadir}/guile/site/%{guile_version}/gnucash
%doc %{_docdir}/%{name}
%{_libdir}/*.so
%{_libdir}/gnucash
%dir %{_libdir}/guile/%{guile_version}/site-ccache
%{_libdir}/guile/%{guile_version}/site-ccache/gnucash
%{_mandir}/man?/*%{?ext_man}
%dir %{_sysconfdir}/gnucash
%config %{_sysconfdir}/gnucash/environment
%exclude %{_datadir}/gnucash/python
%files -n python3-gnucash
%{_datadir}/gnucash/python
%dir %{python3_sitearch}/gnucash
%{python3_sitearch}/gnucash
%files devel
%doc ChangeLog README
%{_includedir}/gnucash/
%files lang -f %{name}.lang
%changelog