gnucash-docs maint: Update gnucash-docs.spec.in
Frank H.Ellenberger
fell at code.gnucash.org
Mon Jun 1 01:15:25 EDT 2020
Updated via https://github.com/Gnucash/gnucash-docs/commit/31c13e6c (commit)
from https://github.com/Gnucash/gnucash-docs/commit/9f234c32 (commit)
commit 31c13e6c5acbcbc7fea6e52f3d098ecfb810a396
Author: Frank H. Ellenberger <frank.h.ellenberger at gmail.com>
Date: Mon Jun 1 06:55:38 2020 +0200
Update gnucash-docs.spec.in
It was unmaintained since many years.
Merge the tested version from
https://build.opensuse.org/package/view_file/home:felle:branches:GNOME:Apps/gnucash-docs/gnucash-docs.spec
diff --git a/gnucash-docs.spec.in b/gnucash-docs.spec.in
index 9ef11b5..20affc6 100644
--- a/gnucash-docs.spec.in
+++ b/gnucash-docs.spec.in
@@ -1,17 +1,18 @@
%define version @VERSION@
-%define __libtoolize /bin/true
-Name: gnucash-docs
-Summary: This is the documentation module for GnuCash
-Version: %{version}
-Release: 1
-License: GNU Free Documentation License
-Group: Applications/Finance
-URL: http://www.gnucash.org
-Source: http://www.gnucash.org/pub/gnucash/sources/stable/gnucash-docs-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
-Requires: gnucash >= 1.8.0, scrollkeeper >= 0.3.4
-BuildPrereq: docbook-style-xsl
+Name: gnucash-docs
+Summary: This is the documentation module for GnuCash
+Version: %{version}
+Release: 0
+License: GNU Free Documentation License
+Group: Office/Finance
+URL: https://www.gnucash.org
+Source: https://sourceforge.net/projects/gnucash/files/gnucash%20(stable)/%{version}/gnucash-docs-%{version}.tar.gz
+BuildRequires: fdupes
+BuildRequires: sgml-skel
+BuildRequires: xsltproc
+BuildArch: noarch
+Recommends: %{_bindir}/gnome-help
%description
GnuCash is a personal finance manager. A check-book like
@@ -21,31 +22,28 @@ 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
%build
-%configure --localstatedir=/var/lib
-
-make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
+%configure
+make %{?_smp_mflags}
%install
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
-
-LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}:$RPM_BUILD_ROOT%{_libdir}/gnucash make DESTDIR=$RPM_BUILD_ROOT install
-
-%clean
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
-
-%post
-if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -o %{_datadir}/omf/gnucash-docs; fi
-
-%postun
-if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi
-
-%files
-%defattr(444,root,root,755)
-%{_datadir}/gnome/help/gnucash
-%{_datadir}/omf/gnucash-docs
-%doc AUTHORS COPYING-DOCS ChangeLog NEWS README HACKING
+%make_install
+%find_lang gnucash-guide %{?no_lang_C}
+%find_lang gnucash-help %{?no_lang_C}
+%fdupes %{buildroot}%{_datadir}
+
+%files -f gnucash-guide.lang -f gnucash-help.lang
+%license COPYING
+%doc AUTHORS COPYING-DOCS HACKING NEWS README
+# Own dirs so we do not have to depend on libgnome
+%dir %{_datadir}/gnome
+%dir %{_datadir}/gnome/help
+%dir %{_datadir}/gnome/help/gnucash-guide
+%doc %{_datadir}/gnome/help/gnucash-guide/C/
+%dir %{_datadir}/gnome/help/gnucash-help
+%doc %{_datadir}/gnome/help/gnucash-help/C/
+
+%changelog
Summary of changes:
gnucash-docs.spec.in | 66 +++++++++++++++++++++++++---------------------------
1 file changed, 32 insertions(+), 34 deletions(-)
More information about the gnucash-changes
mailing list