From 31719f28d504a0e6d8e4393c875aa9c36832e8ea Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Dec 06 2018 08:33:44 +0000 Subject: Fix gnucash to show up in appstream metadata https://bugzilla.redhat.com/show_bug.cgi?id=1656631 --- diff --git a/0001-Fixes-to-the-appdata-file.patch b/0001-Fixes-to-the-appdata-file.patch new file mode 100644 index 0000000..5525880 --- /dev/null +++ b/0001-Fixes-to-the-appdata-file.patch @@ -0,0 +1,27 @@ +From ff5e7657d5cbd6916ff05e753215f21482492b51 Mon Sep 17 00:00:00 2001 +From: Kalev Lember +Date: Thu, 6 Dec 2018 09:16:41 +0100 +Subject: [PATCH] Fixes to the appdata file + +Rename the ID from org.gnucash.Gnucash to org.gnucash.GnuCash to match +flathub, and add a launchable ID to link it to the desktop file. +--- + gnucash/gnome/gnucash.appdata.xml.in | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/gnucash/gnome/gnucash.appdata.xml.in b/gnucash/gnome/gnucash.appdata.xml.in +index d8f066581..5318b7774 100644 +--- a/gnucash/gnome/gnucash.appdata.xml.in ++++ b/gnucash/gnome/gnucash.appdata.xml.in +@@ -1,6 +1,7 @@ + + +- org.gnucash.Gnucash ++ org.gnucash.GnuCash ++ gnucash.desktop + CC0-1.0 + GPL-2.0+ + GnuCash +-- +2.19.1 + diff --git a/gnucash.spec b/gnucash.spec index beffdeb..2f817f9 100644 --- a/gnucash.spec +++ b/gnucash.spec @@ -2,10 +2,13 @@ Name: gnucash Summary: Finance management application Version: 3.3 URL: http://gnucash.org/ -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: Applications/Productivity Source: http://downloads.sourceforge.net/sourceforge/gnucash/gnucash-%{version}.tar.bz2 +# Fix gnucash to show up in appstream metadata +# https://bugzilla.redhat.com/show_bug.cgi?id=1656631 +Patch0: 0001-Fixes-to-the-appdata-file.patch # https://bugzilla.redhat.com/show_bug.cgi?id=1563466 ExcludeArch: ppc64 s390x @@ -41,7 +44,7 @@ use, but is backed with double-entry accounting principles to ensure balanced books. %prep -%setup -q +%autosetup -p1 %build # thanks gcc8 @@ -89,6 +92,9 @@ find $RPM_BUILD_ROOT/%{_libdir} -name *.la -exec rm -f {} \; %config(noreplace) %{_sysconfdir}/gnucash/* %changelog +* Thu Dec 06 2018 Kalev Lember - 3.3-2 +- Fix gnucash to show up in appstream metadata (#1656631) + * Mon Oct 1 2018 Bill Nottingham - 3.3-1 - update to 3.3