[subsurface] Manually install the AppData file
Richard Hughes
rhughes at fedoraproject.org
Fri Nov 7 08:45:36 UTC 2014
commit 1e9fa5cafd8da59b1cbbfc2cfc26c49866afdf85
Author: Richard Hughes <richard at hughsie.com>
Date: Fri Nov 7 08:45:24 2014 +0000
Manually install the AppData file
subsurface.spec | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/subsurface.spec b/subsurface.spec
index 76021a6..92d86f7 100644
--- a/subsurface.spec
+++ b/subsurface.spec
@@ -7,7 +7,7 @@
Name: subsurface
Version: 4.2
#Release: 1.{snapver}%{?dist}
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: A feature-full divelog in Qt
License: GPLv2
@@ -32,6 +32,7 @@ BuildRequires: libzip-devel
BuildRequires: desktop-file-utils
BuildRequires: asciidoc
BuildRequires: libgit2-devel
+BuildRequires: libappstream-glib
# Since we build against the static libdivecomputer
# I want to have a hard constraint on the version compiled against
@@ -64,6 +65,7 @@ desktop-file-install \
--dir=$RPM_BUILD_ROOT%{_datadir}/applications \
$RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
+DESTDIR=$RPM_BUILD_ROOT appstream-util install appdata/%{name}.appdata.xml
%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -82,12 +84,16 @@ fi
%doc README Documentation ReleaseNotes.txt
%{_bindir}/subsurface
%{_datadir}/applications/%{name}.desktop
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/icons/hicolor/scalable/apps/%{name}-icon.svg
%{_datadir}/%{name}/
%{_mandir}/man1/%{name}.1.*
%changelog
+* Fri Nov 07 2014 Richard Hughes <richard at hughsie.com> - 4.2-3
+- Manually install the AppData file
+
* Thu Aug 28 2014 Pierre-Yves Chibon <pingou at pingoured.fr> - 4.2-2
- Update the description
More information about the scm-commits
mailing list