2007-01-16 00:15:06 +01:00
|
|
|
#
|
2011-02-14 01:28:43 +01:00
|
|
|
# spec file for package gnucash
|
2007-01-16 00:15:06 +01:00
|
|
|
#
|
2014-01-22 09:41:24 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:15:06 +01:00
|
|
|
#
|
2008-10-06 18:09:40 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:15:06 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-01-09 15:17:01 +01:00
|
|
|
|
2007-01-16 00:15:06 +01:00
|
|
|
Name: gnucash
|
2014-04-02 17:22:30 +02:00
|
|
|
Version: 2.6.3
|
2012-01-05 19:12:19 +01:00
|
|
|
Release: 0
|
2007-01-16 00:15:06 +01:00
|
|
|
Summary: Personal Finance Manager
|
2012-03-09 21:22:54 +01:00
|
|
|
License: SUSE-GPL-2.0-with-openssl-exception or SUSE-GPL-3.0-with-openssl-exception
|
2010-12-10 21:00:41 +01:00
|
|
|
Group: Productivity/Office/Finance
|
2012-01-05 19:12:19 +01:00
|
|
|
Url: http://www.gnucash.org/
|
2014-04-02 17:22:30 +02:00
|
|
|
Source: http://downloads.sourceforge.net/project/gnucash/gnucash%20%28stable%29/2.6.3/%{name}-%{version}.tar.bz2
|
2007-08-10 01:20:43 +02:00
|
|
|
Source1: %{name}-rpmlintrc
|
2010-12-10 21:00:41 +01:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/Packaging/Patches
|
2012-08-07 08:07:27 +02:00
|
|
|
Patch0: gnucash-cpan-warning.patch
|
2014-07-17 06:58:07 +02:00
|
|
|
# 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
|
2012-01-05 19:12:19 +01:00
|
|
|
BuildRequires: automake
|
2010-12-10 21:00:41 +01:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: fdupes
|
2012-03-09 21:22:54 +01:00
|
|
|
BuildRequires: gcc-c++
|
2010-12-10 21:00:41 +01:00
|
|
|
BuildRequires: intltool
|
2011-06-06 12:33:03 +02:00
|
|
|
BuildRequires: libdbi-devel
|
2014-01-22 09:41:24 +01:00
|
|
|
BuildRequires: libdbi-drivers-dbd-sqlite3
|
2012-03-09 21:22:54 +01:00
|
|
|
%if 0%{?suse_version} >= 1210
|
|
|
|
BuildRequires: libguile1-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: guile-devel
|
|
|
|
%endif
|
2010-12-10 21:00:41 +01:00
|
|
|
BuildRequires: libofx-devel
|
2012-01-05 19:12:19 +01:00
|
|
|
BuildRequires: libtool
|
2012-03-09 21:22:54 +01:00
|
|
|
BuildRequires: python-devel >= 2.4
|
2010-12-10 21:00:41 +01:00
|
|
|
BuildRequires: slib
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: pkgconfig(aqbanking)
|
|
|
|
BuildRequires: pkgconfig(gconf-2.0)
|
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
2012-01-05 19:12:19 +01:00
|
|
|
BuildRequires: pkgconfig(gnome-keyring-1)
|
2010-12-10 21:00:41 +01:00
|
|
|
BuildRequires: pkgconfig(gtk+-2.0)
|
Accepting request 225943 from GNOME:Apps
Now I've too have touched the package that must not be touched.
- Update to version 2.6.2:
+ Advanced Portfolio Report have been reworked.
+ Bugs Fixed: bgo#497831, bgo#721472, bgo#721677, bgo#722123,
bgo#722903, bgo#723051, bgo#723373, bgo#723644, bgo#724211,
bgo#724426, bgo#724427, bgo#724578, bgo#724753, bgo#725131.
+ Updated translations. (forwarded request 225894 from Zaitor)
OBS-URL: https://build.opensuse.org/request/show/225943
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnucash?expand=0&rev=53
2014-03-15 17:36:34 +01:00
|
|
|
BuildRequires: pkgconfig(gtkmm-2.4) >= 2.24
|
2010-12-10 21:00:41 +01:00
|
|
|
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)
|
2014-01-22 09:41:24 +01:00
|
|
|
BuildRequires: pkgconfig(libxslt)
|
2010-12-10 21:00:41 +01:00
|
|
|
BuildRequires: pkgconfig(webkit-1.0)
|
2011-02-14 01:28:36 +01:00
|
|
|
#BuildRequires: callgrind
|
|
|
|
# tested but unused BuildRequires: readline-devel qt3-devel termcap
|
2012-08-07 08:07:27 +02:00
|
|
|
|
|
|
|
# In openSUSE 12.2, guile1 packaging was fixed to have the .so files in the main package
|
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
Requires: guile1
|
|
|
|
%else
|
|
|
|
%if 0%{?suse_version} == 1210
|
|
|
|
# on 12.1, guile1 was 'broken' and we require libguile1-devel
|
2012-03-09 21:22:54 +01:00
|
|
|
# ERROR: In procedure dynamic-link:
|
|
|
|
# ERROR: file: "libguile-srfi-srfi-1-v-3", message: "file not found"
|
|
|
|
Requires: libguile1-devel
|
|
|
|
%else
|
2012-08-07 08:07:27 +02:00
|
|
|
# Before openSUSE 12.1, guile 2 was not existing, so guile == guile1
|
2010-12-10 21:00:41 +01:00
|
|
|
Requires: guile
|
2012-03-09 21:22:54 +01:00
|
|
|
%endif
|
2012-08-07 08:07:27 +02:00
|
|
|
%endif
|
2007-08-24 01:08:39 +02:00
|
|
|
# Required to make quotes working. Gnucash can run without quotes support:
|
2010-12-10 21:00:41 +01:00
|
|
|
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
|
2011-02-14 01:28:36 +01:00
|
|
|
Recommends: %{name}-lang
|
2007-02-16 20:03:54 +01:00
|
|
|
Recommends: gnucash-docs
|
2007-01-16 00:15:06 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-01-22 09:41:24 +01:00
|
|
|
%glib2_gsettings_schema_requires
|
2007-01-16 00:15:06 +01:00
|
|
|
|
|
|
|
%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
|
2007-08-10 01:20:43 +02:00
|
|
|
currency trades. A full set of reports allows you to see the state
|
2011-10-02 10:08:52 +02:00
|
|
|
of your finances. The interface is designed to be simple and easy to
|
2007-08-10 01:20:43 +02:00
|
|
|
use, but is backed with double-entry accounting principles to
|
2011-10-02 10:08:52 +02:00
|
|
|
ensure balanced books.
|
2007-01-16 00:15:06 +01:00
|
|
|
|
2012-03-09 21:22:54 +01:00
|
|
|
%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.
|
|
|
|
|
2007-01-16 00:15:06 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Personal Finance Manager
|
2010-12-10 21:00:41 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: gtk2-devel
|
2012-03-09 21:22:54 +01:00
|
|
|
%if %{?suse_version} >= 1210
|
|
|
|
Requires: libguile1-devel
|
|
|
|
%else
|
2011-01-10 12:18:26 +01:00
|
|
|
Requires: guile-devel
|
2012-03-09 21:22:54 +01:00
|
|
|
%endif
|
2010-12-10 21:00:41 +01:00
|
|
|
Requires: libglade2-devel
|
|
|
|
Requires: libgnomeui-devel
|
2007-01-16 00:15:06 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2007-08-10 01:20:43 +02:00
|
|
|
%lang_package
|
2007-01-16 00:15:06 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2008-02-08 19:07:27 +01:00
|
|
|
# This patch must be applied:
|
2012-08-07 08:07:27 +02:00
|
|
|
%patch0
|
2014-07-17 06:58:07 +02:00
|
|
|
%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
|
2007-01-16 00:15:06 +01:00
|
|
|
|
|
|
|
%build
|
2012-03-09 21:22:54 +01:00
|
|
|
%if %{?suse_version} >= 1210
|
|
|
|
# needed for patch0 and use of guile1
|
|
|
|
sed -i "s:GUILE_MODULE_AVAILABLE:GUILE1_MODULE_AVAILABLE:" configure.ac
|
|
|
|
autoreconf -fi
|
|
|
|
sed -i "s:guile-config:guile1-config:" configure
|
|
|
|
export GUILE=/usr/bin/guile1
|
|
|
|
%endif
|
2007-01-16 20:07:44 +01:00
|
|
|
%configure\
|
2010-12-10 21:00:41 +01:00
|
|
|
--libexecdir=%{_libexecdir}\
|
2007-01-16 00:15:06 +01:00
|
|
|
--enable-ofx\
|
2011-06-06 12:33:03 +02:00
|
|
|
--enable-aqbanking\
|
2007-07-27 15:09:57 +02:00
|
|
|
--enable-locale-specific-tax\
|
2010-12-10 21:00:41 +01:00
|
|
|
--enable-html-docs\
|
|
|
|
--with-html-engine=webkit\
|
2012-03-09 21:22:54 +01:00
|
|
|
--enable-dbi\
|
|
|
|
--enable-gtkmm\
|
2014-01-22 09:41:24 +01:00
|
|
|
--enable-python
|
2010-12-10 21:00:41 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:15:06 +01:00
|
|
|
|
|
|
|
%install
|
2009-05-04 18:11:21 +02:00
|
|
|
%makeinstall
|
2007-01-16 00:15:06 +01:00
|
|
|
%suse_update_desktop_file gnucash
|
2011-02-14 01:28:36 +01:00
|
|
|
%find_lang gnucash %{?no_lang_C}
|
2010-12-10 21:00:41 +01:00
|
|
|
%fdupes %{buildroot}%{_datadir}
|
2012-03-09 21:22:54 +01:00
|
|
|
%fdupes %{buildroot}%{python_sitearch}
|
2007-07-27 15:09:57 +02:00
|
|
|
|
2007-01-16 00:15:06 +01:00
|
|
|
%clean
|
2010-12-10 21:00:41 +01:00
|
|
|
rm -rf %{buildroot}
|
2007-01-16 00:15:06 +01:00
|
|
|
|
|
|
|
%post
|
2007-08-10 01:20:43 +02:00
|
|
|
/sbin/ldconfig
|
2014-01-22 09:41:24 +01:00
|
|
|
%glib2_gsettings_schema_post
|
2011-02-14 01:28:36 +01:00
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%endif
|
2009-10-06 05:06:50 +02:00
|
|
|
|
2007-01-16 00:15:06 +01:00
|
|
|
%postun
|
2007-08-10 01:20:43 +02:00
|
|
|
/sbin/ldconfig
|
2014-01-22 09:41:24 +01:00
|
|
|
%glib2_gsettings_schema_postun
|
2011-02-14 01:28:36 +01:00
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%endif
|
2007-01-16 00:15:06 +01:00
|
|
|
|
2014-01-22 09:41:24 +01:00
|
|
|
%files
|
2007-01-16 00:15:06 +01:00
|
|
|
%defattr (-, root, root)
|
2012-03-09 21:22:54 +01:00
|
|
|
%doc AUTHORS COPYING LICENSE README
|
2010-12-10 21:00:41 +01:00
|
|
|
%{_bindir}/gnc-fq-*
|
2007-01-16 20:07:44 +01:00
|
|
|
%{_bindir}/gnucash
|
2010-12-10 21:00:41 +01:00
|
|
|
%{_bindir}/gnucash-env
|
|
|
|
%{_bindir}/gnucash-make-guids
|
|
|
|
%{_bindir}/gnucash-valgrind
|
2014-01-22 09:41:24 +01:00
|
|
|
%dir %{_datadir}/appdata
|
|
|
|
%{_datadir}/appdata/gnucash.appdata.xml
|
2007-01-16 20:07:44 +01:00
|
|
|
%{_datadir}/applications/*.desktop
|
2014-01-30 17:41:01 +01:00
|
|
|
%{_datadir}/doc/gnucash/
|
2014-01-22 09:41:24 +01:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnucash.*.xml
|
2014-01-30 17:41:01 +01:00
|
|
|
%{_datadir}/gnucash/
|
2010-12-10 21:00:41 +01:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/gnucash-icon.png
|
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/gnucash-icon.svg
|
2007-01-16 20:07:44 +01:00
|
|
|
%{_libdir}/*.so.*
|
2007-01-16 00:15:06 +01:00
|
|
|
# Required by slib for many libraries:
|
2007-01-16 20:07:44 +01:00
|
|
|
%{_libdir}/*.so
|
|
|
|
# NOTE: .la files are required by ltdl in the main package (skip-check-libtool-deps)
|
|
|
|
%{_libdir}/*.la
|
|
|
|
%{_libdir}/gnucash
|
|
|
|
%doc %{_mandir}/man?/*.*
|
2010-12-10 21:00:41 +01:00
|
|
|
%if "%{_libdir}" != "%{_libexecdir}"
|
|
|
|
%{_libexecdir}/gnucash
|
2007-01-16 20:07:44 +01:00
|
|
|
%endif
|
|
|
|
%dir %{_sysconfdir}/gnucash
|
|
|
|
%config %{_sysconfdir}/gnucash/config
|
2010-12-10 21:00:41 +01:00
|
|
|
%config %{_sysconfdir}/gnucash/environment
|
2007-01-16 00:15:06 +01:00
|
|
|
|
2012-03-09 21:22:54 +01:00
|
|
|
%files -n python-gnucash
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%{python_sitearch}/gnucash/
|
2007-08-10 01:20:43 +02:00
|
|
|
|
2007-01-16 00:15:06 +01:00
|
|
|
%files devel
|
|
|
|
%defattr (-, root, root)
|
2010-12-10 21:00:41 +01:00
|
|
|
%{_includedir}/gnucash/
|
2007-11-27 19:01:11 +01:00
|
|
|
|
2012-03-09 21:22:54 +01:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2007-02-16 20:03:54 +01:00
|
|
|
%changelog
|