gnucash/gnucash.spec

206 lines
6.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gnucash
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: gnucash
Version: 2.6.6
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: http://downloads.sourceforge.net/project/gnucash/gnucash%20%28stable%29/%{version}/%{name}-%{version}.tar.gz
Source1: %{name}-rpmlintrc
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/Packaging/Patches
Patch0: gnucash-cpan-warning.patch
# PATCH-FIX-UPSTREAM gnucash-libdbi-0.9.patch dimstar@opensuse.org -- Fix build with libdbi-0.9.0+git23 and newer
Patch1: gnucash-libdbi-0.9.patch
BuildRequires: automake
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: guile-devel
BuildRequires: intltool
BuildRequires: libdbi-devel
Accepting request 214473 from GNOME:Apps - Update to version 2.6.0 (bnc#858502): + New Major release, see http://gnucash.org/2.6-release-tour.phtml for a tour through the new features. + Preferences have been migrated from GConf to GSettings. + New date handling which allows GnuCash to use dates after March 2038. + Guile-2 compatibility: GnuCash now requires either Guile-1.8 or Guile-2.0. + Documents outside of GnuCash, images of receipts for example, can now be linked to transactions, with the facility of opening them in the default application for the document type. + Cutsom Reports can now be saved without renaming the report, and modifications can overwrite an existing report. + The import assistant now finishes much more quickly after assigning contra-accounts. + GnuCash now requires Gtk+-2.24.0 and GLib-2.26.0. Most of the dependencies on obsolete libraries have been removed; only libgnomecanvas remains. Unfortunately the effort to rewrite the register code to use GtkTreeModel wasn't completed in time, so GnuCash is not on the cusp of converting to Gtk3. + The Business Module has been substantially revamped, including support for Credit Notes and import of customers and vendors from a CSV file. + The Num field in the register display is now optionally per-split, so for example a check number can be entered for the checking account split and an invoice number for the expense account split. + GnuCash can now open locked books read-only so that more than one user can view a file. GnuCash still does not support (forwarded request 214444 from Zaitor) OBS-URL: https://build.opensuse.org/request/show/214473 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnucash?expand=0&rev=50
2014-01-22 09:41:24 +01:00
BuildRequires: libdbi-drivers-dbd-sqlite3
BuildRequires: libofx-devel
BuildRequires: libtool
BuildRequires: python-devel >= 2.4
BuildRequires: slib
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(aqbanking)
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(gnome-keyring-1)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(gtkmm-2.4) >= 2.24
BuildRequires: pkgconfig(gwengui-gtk2)
BuildRequires: pkgconfig(gwenhywfar)
BuildRequires: pkgconfig(libglade-2.0)
BuildRequires: pkgconfig(libgnomeui-2.0)
BuildRequires: pkgconfig(libgoffice-0.8)
BuildRequires: pkgconfig(libxml-2.0)
Accepting request 214473 from GNOME:Apps - Update to version 2.6.0 (bnc#858502): + New Major release, see http://gnucash.org/2.6-release-tour.phtml for a tour through the new features. + Preferences have been migrated from GConf to GSettings. + New date handling which allows GnuCash to use dates after March 2038. + Guile-2 compatibility: GnuCash now requires either Guile-1.8 or Guile-2.0. + Documents outside of GnuCash, images of receipts for example, can now be linked to transactions, with the facility of opening them in the default application for the document type. + Cutsom Reports can now be saved without renaming the report, and modifications can overwrite an existing report. + The import assistant now finishes much more quickly after assigning contra-accounts. + GnuCash now requires Gtk+-2.24.0 and GLib-2.26.0. Most of the dependencies on obsolete libraries have been removed; only libgnomecanvas remains. Unfortunately the effort to rewrite the register code to use GtkTreeModel wasn't completed in time, so GnuCash is not on the cusp of converting to Gtk3. + The Business Module has been substantially revamped, including support for Credit Notes and import of customers and vendors from a CSV file. + The Num field in the register display is now optionally per-split, so for example a check number can be entered for the checking account split and an invoice number for the expense account split. + GnuCash can now open locked books read-only so that more than one user can view a file. GnuCash still does not support (forwarded request 214444 from Zaitor) OBS-URL: https://build.opensuse.org/request/show/214473 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnucash?expand=0&rev=50
2014-01-22 09:41:24 +01:00
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(webkit-1.0)
#BuildRequires: callgrind
# tested but unused BuildRequires: readline-devel qt3-devel termcap
Requires: guile
# Required to make quotes working. Gnucash can run without quotes support:
Requires: perl-Crypt-SSLeay
Requires: perl-Date-Manip
Requires: perl-Finance-Quote
Requires: perl-HTML-Parser
Requires: perl-HTML-TableExtract
Requires: perl-libwww-perl
Requires: slib
Recommends: %{name}-lang
Recommends: gnucash-docs
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Accepting request 214473 from GNOME:Apps - Update to version 2.6.0 (bnc#858502): + New Major release, see http://gnucash.org/2.6-release-tour.phtml for a tour through the new features. + Preferences have been migrated from GConf to GSettings. + New date handling which allows GnuCash to use dates after March 2038. + Guile-2 compatibility: GnuCash now requires either Guile-1.8 or Guile-2.0. + Documents outside of GnuCash, images of receipts for example, can now be linked to transactions, with the facility of opening them in the default application for the document type. + Cutsom Reports can now be saved without renaming the report, and modifications can overwrite an existing report. + The import assistant now finishes much more quickly after assigning contra-accounts. + GnuCash now requires Gtk+-2.24.0 and GLib-2.26.0. Most of the dependencies on obsolete libraries have been removed; only libgnomecanvas remains. Unfortunately the effort to rewrite the register code to use GtkTreeModel wasn't completed in time, so GnuCash is not on the cusp of converting to Gtk3. + The Business Module has been substantially revamped, including support for Credit Notes and import of customers and vendors from a CSV file. + The Num field in the register display is now optionally per-split, so for example a check number can be entered for the checking account split and an invoice number for the expense account split. + GnuCash can now open locked books read-only so that more than one user can view a file. GnuCash still does not support (forwarded request 214444 from Zaitor) OBS-URL: https://build.opensuse.org/request/show/214473 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnucash?expand=0&rev=50
2014-01-22 09:41:24 +01:00
%glib2_gsettings_schema_requires
%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. A full set of reports allows you to see the state
of your finances. The interface is designed to be simple and easy to
use, but is backed with double-entry accounting principles to
ensure balanced books.
%package -n python-gnucash
Summary: Python bindings for GnuCash
Group: Development/Libraries/Python
Requires: %{name} = %{version}
%py_requires
%description -n python-gnucash
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. A full set of reports allow you to see the state of
your finances. The interface is designed to be simple and easy to use,
but is backed with double-entry accounting principles to ensure
balanced books.
%package devel
Summary: Personal Finance Manager
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: gtk2-devel
Requires: guile-devel
Requires: libglade2-devel
Requires: libgnomeui-devel
%description devel
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. A full set of reports allow you to see the state of
your finances. The interface is designed to be simple and easy to use,
but is backed with double-entry accounting principles to ensure
balanced books.
%lang_package
%prep
%setup -q
# This patch must be applied:
%patch0
%if 0%{?suse_version} > 1315
# in openSUSE Factory, we have libdbi 0.9.0+git23, which changed the API a bit
# SLE12 contains libdbi 0.9.0, before this API change.
%patch1 -p1
%endif
%build
Accepting request 253932 from GNOME:Apps - Update gnucash-libdbi-0.9.patch: fix usage of internal function _gnucash-libdbi-0.9.patch (boo#898974). - Update to version 2.6.4: + Add business lot scrubbing to Check & Repair->All/This transaction(s). + Add context to generic translatable string. + Add scrub function to reduce the amount of lot links used. + Add some date format checking and make sure generated dates are the correct user selected format, not always locale format. + Allow the ability to skip rows when importing transactions. + Always use the price we display to calculate the current value of an account. + Better period totals formatting in Invoices. + CSV Export: factor out function to generate regular expression. + CSV Import transform macro into function. + Convert ISO-8859-1 account chart templates to UTF-8. + Correct txf output to use a minus sign, rather than parenthesis. + Fix document type dispay for credit notes on owner report. + Fix test-backend-dbi segfault with libdbi-0.9.0. + Handle the case of scrubbing a lot link between two non-document lots. + Lots of refactoring. + Chart-of-Account Templates Updated. + Bugs fixed: bgo#120199, bgo#434462, bgo#509263, bgo#610202, bgo#630638, bgo#671615, bgo#688965, bgo#692249, bgo#695240, bgo#707243, bgo#711440, bgo#711567, bgo#719457, bgo#719457, bgo#720427, bgo#720934, bgo#722140, bgo#722200, bgo#723145, bgo#723442, bgo#725054, bgo#725366, bgo#726449, bgo#726888, OBS-URL: https://build.opensuse.org/request/show/253932 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnucash?expand=0&rev=57
2014-10-05 20:32:06 +02:00
autoreconf -fiv
%configure\
--libexecdir=%{_libexecdir}\
--docdir=%{_docdir}/%{name} \
--enable-ofx\
--enable-aqbanking\
--enable-locale-specific-tax\
--enable-html-docs\
--with-html-engine=webkit\
--enable-dbi\
--enable-gtkmm\
Accepting request 214473 from GNOME:Apps - Update to version 2.6.0 (bnc#858502): + New Major release, see http://gnucash.org/2.6-release-tour.phtml for a tour through the new features. + Preferences have been migrated from GConf to GSettings. + New date handling which allows GnuCash to use dates after March 2038. + Guile-2 compatibility: GnuCash now requires either Guile-1.8 or Guile-2.0. + Documents outside of GnuCash, images of receipts for example, can now be linked to transactions, with the facility of opening them in the default application for the document type. + Cutsom Reports can now be saved without renaming the report, and modifications can overwrite an existing report. + The import assistant now finishes much more quickly after assigning contra-accounts. + GnuCash now requires Gtk+-2.24.0 and GLib-2.26.0. Most of the dependencies on obsolete libraries have been removed; only libgnomecanvas remains. Unfortunately the effort to rewrite the register code to use GtkTreeModel wasn't completed in time, so GnuCash is not on the cusp of converting to Gtk3. + The Business Module has been substantially revamped, including support for Credit Notes and import of customers and vendors from a CSV file. + The Num field in the register display is now optionally per-split, so for example a check number can be entered for the checking account split and an invoice number for the expense account split. + GnuCash can now open locked books read-only so that more than one user can view a file. GnuCash still does not support (forwarded request 214444 from Zaitor) OBS-URL: https://build.opensuse.org/request/show/214473 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnucash?expand=0&rev=50
2014-01-22 09:41:24 +01:00
--enable-python
make %{?_smp_mflags}
%install
%makeinstall
%suse_update_desktop_file gnucash
%find_lang gnucash %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}
%fdupes %{buildroot}%{python_sitearch}
%clean
rm -rf %{buildroot}
%post
/sbin/ldconfig
Accepting request 214473 from GNOME:Apps - Update to version 2.6.0 (bnc#858502): + New Major release, see http://gnucash.org/2.6-release-tour.phtml for a tour through the new features. + Preferences have been migrated from GConf to GSettings. + New date handling which allows GnuCash to use dates after March 2038. + Guile-2 compatibility: GnuCash now requires either Guile-1.8 or Guile-2.0. + Documents outside of GnuCash, images of receipts for example, can now be linked to transactions, with the facility of opening them in the default application for the document type. + Cutsom Reports can now be saved without renaming the report, and modifications can overwrite an existing report. + The import assistant now finishes much more quickly after assigning contra-accounts. + GnuCash now requires Gtk+-2.24.0 and GLib-2.26.0. Most of the dependencies on obsolete libraries have been removed; only libgnomecanvas remains. Unfortunately the effort to rewrite the register code to use GtkTreeModel wasn't completed in time, so GnuCash is not on the cusp of converting to Gtk3. + The Business Module has been substantially revamped, including support for Credit Notes and import of customers and vendors from a CSV file. + The Num field in the register display is now optionally per-split, so for example a check number can be entered for the checking account split and an invoice number for the expense account split. + GnuCash can now open locked books read-only so that more than one user can view a file. GnuCash still does not support (forwarded request 214444 from Zaitor) OBS-URL: https://build.opensuse.org/request/show/214473 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnucash?expand=0&rev=50
2014-01-22 09:41:24 +01:00
%glib2_gsettings_schema_post
%if 0%{?suse_version} > 1130
%desktop_database_post
%icon_theme_cache_post
%endif
%postun
/sbin/ldconfig
Accepting request 214473 from GNOME:Apps - Update to version 2.6.0 (bnc#858502): + New Major release, see http://gnucash.org/2.6-release-tour.phtml for a tour through the new features. + Preferences have been migrated from GConf to GSettings. + New date handling which allows GnuCash to use dates after March 2038. + Guile-2 compatibility: GnuCash now requires either Guile-1.8 or Guile-2.0. + Documents outside of GnuCash, images of receipts for example, can now be linked to transactions, with the facility of opening them in the default application for the document type. + Cutsom Reports can now be saved without renaming the report, and modifications can overwrite an existing report. + The import assistant now finishes much more quickly after assigning contra-accounts. + GnuCash now requires Gtk+-2.24.0 and GLib-2.26.0. Most of the dependencies on obsolete libraries have been removed; only libgnomecanvas remains. Unfortunately the effort to rewrite the register code to use GtkTreeModel wasn't completed in time, so GnuCash is not on the cusp of converting to Gtk3. + The Business Module has been substantially revamped, including support for Credit Notes and import of customers and vendors from a CSV file. + The Num field in the register display is now optionally per-split, so for example a check number can be entered for the checking account split and an invoice number for the expense account split. + GnuCash can now open locked books read-only so that more than one user can view a file. GnuCash still does not support (forwarded request 214444 from Zaitor) OBS-URL: https://build.opensuse.org/request/show/214473 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnucash?expand=0&rev=50
2014-01-22 09:41:24 +01:00
%glib2_gsettings_schema_postun
%if 0%{?suse_version} > 1130
%desktop_database_postun
%icon_theme_cache_postun
%endif
Accepting request 214473 from GNOME:Apps - Update to version 2.6.0 (bnc#858502): + New Major release, see http://gnucash.org/2.6-release-tour.phtml for a tour through the new features. + Preferences have been migrated from GConf to GSettings. + New date handling which allows GnuCash to use dates after March 2038. + Guile-2 compatibility: GnuCash now requires either Guile-1.8 or Guile-2.0. + Documents outside of GnuCash, images of receipts for example, can now be linked to transactions, with the facility of opening them in the default application for the document type. + Cutsom Reports can now be saved without renaming the report, and modifications can overwrite an existing report. + The import assistant now finishes much more quickly after assigning contra-accounts. + GnuCash now requires Gtk+-2.24.0 and GLib-2.26.0. Most of the dependencies on obsolete libraries have been removed; only libgnomecanvas remains. Unfortunately the effort to rewrite the register code to use GtkTreeModel wasn't completed in time, so GnuCash is not on the cusp of converting to Gtk3. + The Business Module has been substantially revamped, including support for Credit Notes and import of customers and vendors from a CSV file. + The Num field in the register display is now optionally per-split, so for example a check number can be entered for the checking account split and an invoice number for the expense account split. + GnuCash can now open locked books read-only so that more than one user can view a file. GnuCash still does not support (forwarded request 214444 from Zaitor) OBS-URL: https://build.opensuse.org/request/show/214473 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnucash?expand=0&rev=50
2014-01-22 09:41:24 +01:00
%files
%defattr (-, root, root)
%doc AUTHORS COPYING LICENSE README
%{_bindir}/gnc-fq-*
%{_bindir}/gnucash
%{_bindir}/gnucash-env
%{_bindir}/gnucash-make-guids
%{_bindir}/gnucash-valgrind
Accepting request 214473 from GNOME:Apps - Update to version 2.6.0 (bnc#858502): + New Major release, see http://gnucash.org/2.6-release-tour.phtml for a tour through the new features. + Preferences have been migrated from GConf to GSettings. + New date handling which allows GnuCash to use dates after March 2038. + Guile-2 compatibility: GnuCash now requires either Guile-1.8 or Guile-2.0. + Documents outside of GnuCash, images of receipts for example, can now be linked to transactions, with the facility of opening them in the default application for the document type. + Cutsom Reports can now be saved without renaming the report, and modifications can overwrite an existing report. + The import assistant now finishes much more quickly after assigning contra-accounts. + GnuCash now requires Gtk+-2.24.0 and GLib-2.26.0. Most of the dependencies on obsolete libraries have been removed; only libgnomecanvas remains. Unfortunately the effort to rewrite the register code to use GtkTreeModel wasn't completed in time, so GnuCash is not on the cusp of converting to Gtk3. + The Business Module has been substantially revamped, including support for Credit Notes and import of customers and vendors from a CSV file. + The Num field in the register display is now optionally per-split, so for example a check number can be entered for the checking account split and an invoice number for the expense account split. + GnuCash can now open locked books read-only so that more than one user can view a file. GnuCash still does not support (forwarded request 214444 from Zaitor) OBS-URL: https://build.opensuse.org/request/show/214473 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnucash?expand=0&rev=50
2014-01-22 09:41:24 +01:00
%dir %{_datadir}/appdata
%{_datadir}/appdata/gnucash.appdata.xml
%{_datadir}/applications/*.desktop
Accepting request 214473 from GNOME:Apps - Update to version 2.6.0 (bnc#858502): + New Major release, see http://gnucash.org/2.6-release-tour.phtml for a tour through the new features. + Preferences have been migrated from GConf to GSettings. + New date handling which allows GnuCash to use dates after March 2038. + Guile-2 compatibility: GnuCash now requires either Guile-1.8 or Guile-2.0. + Documents outside of GnuCash, images of receipts for example, can now be linked to transactions, with the facility of opening them in the default application for the document type. + Cutsom Reports can now be saved without renaming the report, and modifications can overwrite an existing report. + The import assistant now finishes much more quickly after assigning contra-accounts. + GnuCash now requires Gtk+-2.24.0 and GLib-2.26.0. Most of the dependencies on obsolete libraries have been removed; only libgnomecanvas remains. Unfortunately the effort to rewrite the register code to use GtkTreeModel wasn't completed in time, so GnuCash is not on the cusp of converting to Gtk3. + The Business Module has been substantially revamped, including support for Credit Notes and import of customers and vendors from a CSV file. + The Num field in the register display is now optionally per-split, so for example a check number can be entered for the checking account split and an invoice number for the expense account split. + GnuCash can now open locked books read-only so that more than one user can view a file. GnuCash still does not support (forwarded request 214444 from Zaitor) OBS-URL: https://build.opensuse.org/request/show/214473 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnucash?expand=0&rev=50
2014-01-22 09:41:24 +01:00
%{_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
%{_libdir}/*.so.*
# Required by slib for many libraries:
%{_libdir}/*.so
# NOTE: .la files are required by ltdl in the main package (skip-check-libtool-deps)
%{_libdir}/*.la
%{_libdir}/gnucash
%doc %{_mandir}/man?/*.*
%if "%{_libdir}" != "%{_libexecdir}"
%{_libexecdir}/gnucash
%endif
%dir %{_sysconfdir}/gnucash
%config %{_sysconfdir}/gnucash/config
%config %{_sysconfdir}/gnucash/environment
%files -n python-gnucash
%defattr (-, root, root)
%{python_sitearch}/gnucash/
%files devel
%defattr (-, root, root)
%{_includedir}/gnucash/
%files lang -f %{name}.lang
%changelog