2007-01-16 00:15:06 +01:00
|
|
|
#
|
2010-12-10 21:00:41 +01:00
|
|
|
# spec file for package gnucash (Version 2.3.17)
|
2007-01-16 00:15:06 +01:00
|
|
|
#
|
2010-07-23 23:36:47 +02:00
|
|
|
# Copyright (c) 2010 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-02-28 17:58:26 +01:00
|
|
|
|
2007-01-16 00:15:06 +01:00
|
|
|
Name: gnucash
|
2010-12-10 21:00:41 +01:00
|
|
|
Version: 2.3.17
|
|
|
|
Release: 1
|
|
|
|
# FIXME: add libdbi-devel BuildRequires once libdbi is in Factory, and remove --disable-dbi (last checked: 2010-12-10)
|
2010-07-23 23:36:47 +02:00
|
|
|
License: GPLv2+
|
2007-01-16 00:15:06 +01:00
|
|
|
Summary: Personal Finance Manager
|
2010-12-10 21:00:41 +01:00
|
|
|
Url: http://www.gnucash.org/
|
|
|
|
Group: Productivity/Office/Finance
|
2007-01-16 00:15:06 +01:00
|
|
|
Source: %{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
|
2007-07-27 15:09:57 +02:00
|
|
|
Patch: gnucash-desktop.patch
|
2010-12-10 21:00:41 +01:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/Packaging/Patches
|
2008-02-08 19:07:27 +01:00
|
|
|
Patch3: gnucash-cpan-warning.patch
|
2010-12-10 21:00:41 +01:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: guile-devel
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: libofx-devel
|
|
|
|
BuildRequires: slib
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: pkgconfig(aqbanking)
|
|
|
|
BuildRequires: pkgconfig(gconf-2.0)
|
|
|
|
BuildRequires: pkgconfig(gnome-keyring-1)
|
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
|
|
|
BuildRequires: pkgconfig(gtk+-2.0)
|
|
|
|
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)
|
|
|
|
BuildRequires: pkgconfig(webkit-1.0)
|
|
|
|
PreReq: %install_info_prereq
|
|
|
|
Requires: %{name}-lang = %{version}
|
|
|
|
Requires: guile
|
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
|
2007-01-16 00:15:06 +01:00
|
|
|
#BuildRequires: callgrind
|
2007-07-27 15:09:57 +02:00
|
|
|
# tested but unused BuildRequires: readline-devel qt3-devel termcap
|
2007-02-16 20:03:54 +01:00
|
|
|
Recommends: gnucash-docs
|
2007-01-16 00:15:06 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 20:07:44 +01:00
|
|
|
%gconf_schemas_prereq
|
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
|
|
|
|
ofyour finances. The interface is designed to be simple and easy to
|
|
|
|
use, but is backed with double-entry accounting principles to
|
|
|
|
ensurebalanced books.
|
2007-01-16 00:15:06 +01:00
|
|
|
|
|
|
|
%package devel
|
2010-07-23 23:36:47 +02:00
|
|
|
License: GPLv2+
|
2007-01-16 00:15:06 +01:00
|
|
|
Summary: Personal Finance Manager
|
2010-12-10 21:00:41 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: gconf2-devel
|
|
|
|
Requires: gtk2-devel
|
|
|
|
Requires: libglade2-devel
|
|
|
|
Requires: libgnomeui-devel
|
2010-12-20 14:49:22 +01:00
|
|
|
Requires: guile-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
|
|
|
|
%patch
|
2008-02-08 19:07:27 +01:00
|
|
|
# This patch must be applied:
|
|
|
|
%patch3
|
2007-01-16 00:15:06 +01:00
|
|
|
|
|
|
|
%build
|
2007-01-16 20:07:44 +01:00
|
|
|
%configure\
|
2007-01-16 00:15:06 +01:00
|
|
|
--disable-schemas-install\
|
2010-12-10 21:00:41 +01:00
|
|
|
--libexecdir=%{_libexecdir}\
|
2007-01-16 00:15:06 +01:00
|
|
|
--enable-ofx\
|
|
|
|
--enable-hbci\
|
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\
|
|
|
|
--disable-dbi
|
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:15:06 +01:00
|
|
|
|
|
|
|
%install
|
2009-05-04 18:11:21 +02:00
|
|
|
%makeinstall
|
2010-12-10 21:00:41 +01:00
|
|
|
# This just installs gconf schemas. Not needed in a package.
|
|
|
|
rm %{buildroot}%{_bindir}/update-gnucash-gconf
|
2007-01-16 00:15:06 +01:00
|
|
|
%suse_update_desktop_file gnucash
|
|
|
|
%find_lang gnucash
|
2007-01-16 20:07:44 +01:00
|
|
|
%find_gconf_schemas
|
2010-12-10 21:00:41 +01:00
|
|
|
cat %{name}.schemas_list
|
|
|
|
%fdupes %{buildroot}%{_datadir}
|
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
|
|
|
|
2007-01-16 20:07:44 +01:00
|
|
|
%pre -f %{name}.schemas_pre
|
|
|
|
|
2007-01-16 00:15:06 +01:00
|
|
|
%post
|
2007-08-10 01:20:43 +02:00
|
|
|
/sbin/ldconfig
|
2007-01-16 20:07:44 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/gnucash-design.info.gz
|
2009-10-06 05:06:50 +02:00
|
|
|
|
2007-01-16 20:07:44 +01:00
|
|
|
%posttrans -f %{name}.schemas_posttrans
|
|
|
|
|
|
|
|
%preun -f %{name}.schemas_preun
|
2007-01-16 00:15:06 +01:00
|
|
|
|
|
|
|
%postun
|
2007-08-10 01:20:43 +02:00
|
|
|
/sbin/ldconfig
|
2007-01-16 20:07:44 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gnucash-design.info.gz
|
2007-01-16 00:15:06 +01:00
|
|
|
|
2010-12-10 21:00:41 +01:00
|
|
|
%files -f %{name}.schemas_list
|
2007-01-16 00:15:06 +01:00
|
|
|
%defattr (-, root, root)
|
2010-12-10 21:00:41 +01:00
|
|
|
%{_bindir}/gnc-fq-*
|
|
|
|
%{_bindir}/gnc-test-env
|
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
|
2007-01-16 20:07:44 +01:00
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_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 %{_infodir}/gnucash-design.info*
|
|
|
|
%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
|
|
|
|
2007-08-10 01:20:43 +02:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
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
|
|
|
|
2007-02-16 20:03:54 +01:00
|
|
|
%changelog
|