gnucash/gnucash.spec

177 lines
5.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gnucash (Version 2.3.17)
#
# Copyright (c) 2010 SUSE LINUX Products 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.3.17
Release: 1
# FIXME: add libdbi-devel BuildRequires once libdbi is in Factory, and remove --disable-dbi (last checked: 2010-12-10)
License: GPLv2+
Summary: Personal Finance Manager
Url: http://www.gnucash.org/
Group: Productivity/Office/Finance
Source: %{name}-%{version}.tar.bz2
Source1: %{name}-rpmlintrc
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/Packaging/Patches
Patch: gnucash-desktop.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/Packaging/Patches
Patch3: gnucash-cpan-warning.patch
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
# 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
#BuildRequires: callgrind
# tested but unused BuildRequires: readline-devel qt3-devel termcap
Recommends: gnucash-docs
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%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
ofyour finances. The interface is designed to be simple and easy to
use, but is backed with double-entry accounting principles to
ensurebalanced books.
%package devel
License: GPLv2+
Summary: Personal Finance Manager
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: gconf2-devel
Requires: gtk2-devel
Requires: libglade2-devel
Requires: libgnomeui-devel
Requires: guile-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
%patch
# This patch must be applied:
%patch3
%build
%configure\
--disable-schemas-install\
--libexecdir=%{_libexecdir}\
--enable-ofx\
--enable-hbci\
--enable-locale-specific-tax\
--enable-html-docs\
--with-html-engine=webkit\
--disable-dbi
make %{?_smp_mflags}
%install
%makeinstall
# This just installs gconf schemas. Not needed in a package.
rm %{buildroot}%{_bindir}/update-gnucash-gconf
%suse_update_desktop_file gnucash
%find_lang gnucash
%find_gconf_schemas
cat %{name}.schemas_list
%fdupes %{buildroot}%{_datadir}
%clean
rm -rf %{buildroot}
%pre -f %{name}.schemas_pre
%post
/sbin/ldconfig
%install_info --info-dir=%{_infodir} %{_infodir}/gnucash-design.info.gz
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%postun
/sbin/ldconfig
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gnucash-design.info.gz
%files -f %{name}.schemas_list
%defattr (-, root, root)
%{_bindir}/gnc-fq-*
%{_bindir}/gnc-test-env
%{_bindir}/gnucash
%{_bindir}/gnucash-env
%{_bindir}/gnucash-make-guids
%{_bindir}/gnucash-valgrind
%{_datadir}/applications/*.desktop
%{_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 %{_infodir}/gnucash-design.info*
%doc %{_mandir}/man?/*.*
%if "%{_libdir}" != "%{_libexecdir}"
%{_libexecdir}/gnucash
%endif
%dir %{_sysconfdir}/gnucash
%config %{_sysconfdir}/gnucash/config
%config %{_sysconfdir}/gnucash/environment
%files lang -f %{name}.lang
%files devel
%defattr (-, root, root)
%{_includedir}/gnucash/
%changelog