gnucash-docs/gnucash-docs.spec
Stephan Kulow dc333b6d5c Accepting request 128564 from GNOME:Apps
Fixup the help for yelp - with this tarball, the german help can at least be started using 'yelp file:///usr/share/gnome/help/gnucash/de_DE/gnucash-help.xml' - part of bnc#771530 (in-app launch of help is missing.. but that is likely in gnucash package itself) (forwarded request 128537 from Zaitor)

OBS-URL: https://build.opensuse.org/request/show/128564
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnucash-docs?expand=0&rev=16
2012-07-22 13:15:18 +00:00

78 lines
2.6 KiB
RPMSpec

#
# spec file for package gnucash-docs
#
# Copyright (c) 2012 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-docs
Version: 2.4.1.svn
Release: 0
Summary: Documentation Module for GnuCash
License: GFDL-1.1 ; GPL-2.0+
Group: Productivity/Office/Finance
Url: http://www.gnucash.org/
#Source: http://downloads.sourceforge.net/project/gnucash/gnucash-docs/2.4.1/%{name}-%{version}.tar.gz
# The upstream tarball is actually rather broken, missing a bunch of files, which are all in svn. So we ship an
# own tarball, which was created using "svn export http://code.gnucash.org/repo/gnucash-docs/tags/2.4.1 gnucash-docs-2.4.1.svn"
Source: %{name}-%{version}.tar.xz
Patch0: gnucash-docs-fixup.patch
BuildRequires: fdupes
BuildRequires: kdelibs3-doc
# Only for directory ownership:
BuildRequires: libgnome
# Needed for the svn exported tarball.
BuildRequires: libtool
BuildRequires: scrollkeeper
BuildRequires: sgml-skel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%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. The interface is designed to be simple and easy to
use, but is backed with double-entry accounting principles to ensure
balanced books. This is the documentation module for GnuCash.
%prep
%setup -q
%patch0 -p0
%build
# Needed for the svn exported tarball.
./autogen.sh
%configure
make %{?_smp_mflags}
%install
%makeinstall
for xml in %{buildroot}%{_datadir}/gnome/help/*/*/*.xml; do
if echo $xml | grep -E 'share/gnome/help/([^/]*)/[^/]*/\1\.xml$' > /dev/null; then
meinproc --check --cache `echo $xml | sed 's/xml$/cache.bz2/'` $xml || :
fi
done
%find_lang gnucash
%fdupes %{buildroot}%{_datadir}
%clean
rm -rf %{buildroot}
%files -f gnucash.lang
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING-DOCS HACKING NEWS README
%{_datadir}/omf/gnucash-docs
%changelog