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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:43:05 UTC 2015


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


diff --git a/gobby.spec b/gobby.spec
index 084d139..6810e1a 100644
--- a/gobby.spec
+++ b/gobby.spec
@@ -1,6 +1,6 @@
 Name:           gobby
 Version:        0.4.13
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Free collaborative editor
 
 Group:          Applications/Internet
@@ -48,6 +48,48 @@ desktop-file-install \
         --delete-original                                       \
         $RPM_BUILD_ROOT%{_datadir}/applications/gobby.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> -->
+<!--
+EmailAddress: armin at 0x539.de
+SentUpstream: 2014-09-23
+-->
+<component type="desktop">
+  <id>gobby.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <description>
+    <p>
+      Gobby is a free collaborative editor supporting multiple documents in one session and a multi-user chat.
+      It runs on Microsoft Windows, Mac OS X, Linux and other Unix-like platforms.
+    </p>
+    <p>
+      It uses GTK+ 2.6 as its windowing toolkit and thus integrates nicely into the GNOME desktop environment.
+    </p>
+    <p>
+      This is the stable 0.4 version of gobby.
+    </p>
+  </description>
+  <url type="homepage">http://gobby.0x539.de/</url>
+  <screenshots>
+    <screenshot type="default">
+      <image>http://gobby.0x539.de/screenshots/gobby-0.4.8-linux_kde4.png</image>
+    </screenshot>
+    <screenshot>
+      <image>http://gobby.0x539.de/screenshots/gobby-0.4.5-linux.png</image>
+    </screenshot>
+  </screenshots>
+  <updatecontact>obby-users(@)list.0x539.de</updatecontact>
+</component>
+EOF
 %find_lang %{name}
 
 
@@ -84,6 +126,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc README NEWS AUTHORS COPYING ChangeLog
 %{_bindir}/gobby
 %{_datadir}/gobby
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*gobby.desktop
 %{_datadir}/icons/hicolor/48x48/apps/gobby.png
 %{_datadir}/icons/hicolor/scalable/apps/gobby.svg
@@ -95,6 +138,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.4.13-6
+- Add an AppData file for the software center
+
 * Mon Mar 02 2015 Kevin Fenzi <kevin at scrye.com> 0.4.13-5
 - Rebuild for new gcc 5
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gobby.git/commit/?h=master&id=f520c9bae55dd766b067507c2e2472e9b1035f01


More information about the scm-commits mailing list