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

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


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


diff --git a/GLC_Player.spec b/GLC_Player.spec
index 60a4c33..29eaf4c 100644
--- a/GLC_Player.spec
+++ b/GLC_Player.spec
@@ -1,6 +1,6 @@
 Name:           GLC_Player
 Version:        2.3.0
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        GLC_Player is an Open Source software used to view 3d models (OBJ Format)
 
 Group:          Applications/Multimedia
@@ -49,6 +49,40 @@ desktop-file-install \
   --mode 644 \
   %{SOURCE1}	
 
+# 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/glc_player.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+EmailAddress: laumaya at users.sourceforge.net
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">glc_player.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>View 3D models</summary>
+  <description>
+  <p>
+    GLC Player is an application for viewing 3D models.
+    It supports a wide range of formats, including:  COLLADA, 3DXML, OBJ,
+    3DS, STL, OFF and COFF.
+    It can also be used to export still images of your models, and even
+    export a library of models to a gallery HTML page.
+  </p>
+  </description>
+  <url type="homepage">http://www.glc-player.net/</url>
+  <screenshots>
+    <screenshot type="default">http://www.glc-player.net/images/Lin_corsair_full.jpg</screenshot>
+  </screenshots>
+</application>
+EOF
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -59,10 +93,14 @@ rm -rf $RPM_BUILD_ROOT
 %doc
 %{_bindir}/glc_player
 %{_datadir}/pixmaps/glc_player.png
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*.desktop
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.3.0-9
+- Add an AppData file for the software center
+
 * Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.3.0-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/GLC_Player.git/commit/?h=master&id=5afe34e685a59f163e3dc5b757a6cd3d5034b7cf


More information about the scm-commits mailing list