rhughes pushed to gnome-system-log (master). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:42:46 UTC 2015


>From d7e4f341305c2d22f4b11290413f6778916bdada Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:33:23 +0000
Subject: Add an AppData file for the software center


diff --git a/gnome-system-log.spec b/gnome-system-log.spec
index 6d971e8..017c828 100644
--- a/gnome-system-log.spec
+++ b/gnome-system-log.spec
@@ -1,6 +1,6 @@
 Name:           gnome-system-log
 Version:        3.9.90
-Release:        3%{?dist}
+Release:        4%{?dist}
 Epoch:          1
 Summary:        A log file viewer for GNOME
 
@@ -44,6 +44,41 @@ chmod a+x $RPM_BUILD_ROOT%{_bindir}/gnome-system-log
 mkdir -p $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions
 cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions
 
+# Register as an application to be visible in the software center
+#
+# NOTE: It would be *awesome* if this file was maintained by the upstream
+# project, translated and installed into the right place during `make install`.
+#
+# See http://www.freedesktop.org/software/appstream/docs/ for more details.
+#
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+BugReportURL: https://bugzilla.gnome.org/show_bug.cgi?id=730871
+SentUpstream: 2014-09-18
+-->
+<application>
+  <id type="desktop">gnome-system-log.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>View system logs</summary>
+  <description>
+    <p>
+      System Logs is an application for viewing the system logs on your 
+      computer.
+      It provides a graphical viewer for the logs that one would
+      typically view in a terminal, such as the boot.log or the system
+      messages.
+    </p>
+  </description>
+  <url type="homepage">https://git.gnome.org/browse/gnome-system-log/</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnome-system-log/a.png</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %find_lang %{name} --with-gnome
 
 # https://bugzilla.redhat.com/show_bug.cgi?id=736523
@@ -79,6 +114,7 @@ done
 %{_bindir}/gnome-system-log
 %{_bindir}/logview
 %{_datadir}/GConf/gsettings/logview.convert
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/gnome-system-log.desktop
 %{_datadir}/glib-2.0/schemas/org.gnome.gnome-system-log.gschema.xml
 %{_datadir}/icons/hicolor/*/apps/logview.png
@@ -87,6 +123,9 @@ done
 %doc %{_mandir}/man1/gnome-system-log.1.gz
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1:3.9.90-4
+- Add an AppData file for the software center
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:3.9.90-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gnome-system-log.git/commit/?h=master&id=d7e4f341305c2d22f4b11290413f6778916bdada


More information about the scm-commits mailing list