rhughes pushed to giggle (master). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:41:04 UTC 2015


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


diff --git a/giggle.spec b/giggle.spec
index e486b01..4826871 100644
--- a/giggle.spec
+++ b/giggle.spec
@@ -1,6 +1,6 @@
 Name:          giggle
 Version:       0.7
-Release:       15%{?dist}
+Release:       16%{?dist}
 Summary:       A Gtk frontend to git
 
 Group:         Development/Tools
@@ -64,6 +64,39 @@ desktop-file-install \
   --dir=%{buildroot}%{_datadir}/applications               \
   %{buildroot}%{_datadir}/applications/giggle.desktop
 
+# 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 Richard Hughes <richard at hughsie.com> -->
+<!--
+UpstreamURL:  https://git.gnome.org/browse/giggle/tree/data/giggle.appdata.xml
+-->
+<application>
+  <id type="desktop">giggle.desktop</id>
+  <licence>CC0-1.0</licence>
+  <description>
+    <p>
+      Giggle is a graphical frontend for the git directory tracker.
+    </p>
+    <p>
+      It currently features a history viewer much like gitk and a commit GUI like git gui.
+    </p>
+  </description>
+  <screenshots>
+    <screenshot type="default" width="1034" height="742">https://wiki.gnome.org/Apps/giggle?action=AttachFile&amp;do=get&amp;target=giggle-history.png</screenshot>
+  </screenshots>
+  <url type="homepage">https://wiki.gnome.org/Apps/giggle</url>
+  <updatecontact>jjardon_at_gnome.org</updatecontact>
+</application>
+EOF
+
 %find_lang %{name}
 
 
@@ -99,6 +132,7 @@ fi
 %dir %{_datadir}/giggle/glade
 
 %{_datadir}/giggle/glade/main-window.ui
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/giggle.desktop
 
 %{_datadir}/icons/hicolor/16x16/apps/*.png
@@ -116,6 +150,9 @@ fi
 %{_libdir}/*.so
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.7-16
+- Add an AppData file for the software center
+
 * Tue Feb 17 2015 Milan Crha <mcrha at redhat.com> - 0.7-15
 - Rebuild for new gnome-evolution-data-server.
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/giggle.git/commit/?h=master&id=4aee1f794ff31ebf0ff082773aa8261135bd9a27


More information about the scm-commits mailing list