From d7e4f341305c2d22f4b11290413f6778916bdada Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mar 26 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 < + + + + gnome-system-log.desktop + CC0-1.0 + View system logs + +

+ 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. +

+
+ https://git.gnome.org/browse/gnome-system-log/ + + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnome-system-log/a.png + +
+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 - 1:3.9.90-4 +- Add an AppData file for the software center + * Sat Aug 16 2014 Fedora Release Engineering - 1:3.9.90-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild