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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:51:13 UTC 2015


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


diff --git a/memaker.spec b/memaker.spec
index c9bb268..2e612be 100644
--- a/memaker.spec
+++ b/memaker.spec
@@ -5,7 +5,7 @@
 
 Name:           memaker
 Version:        20100110
-Release:        7%{?dist}
+Release:        8%{?dist}
 Summary:        An avatar creator
 
 Group:          Amusements/Graphics
@@ -76,6 +76,48 @@ for lib in $RPM_BUILD_ROOT%{python_sitelib}/MeMaker/view/*.py; do
  mv $lib.new $lib
 done
 
+# 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> -->
+<!--
+BugReportURL: https://bugs.launchpad.net/memaker/+bug/1243602
+SentUpstream: 2013-10-23
+-->
+<application>
+ <id type="desktop">memaker.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Memaker</name>
+ <summary>An avatar creator</summary>
+ <description>
+  <p>
+    MeMaker gives users a wide variety of images that, when placed
+    together, create an avatar. This avatar is intended to represent
+    the way that this person is in some way. The goal of the project
+    is to have enough images that anyone can create an image that
+    they feel would closely represent them without having to use a photo
+    in the image itself.
+  </p>
+  <p>
+    MeMaker is a nifty little tool that takes packages of theme avatar
+    features and easily places them together to make an avatar of your
+    liking. Features include Hair, Faces, Eyes, even Glasses and
+    Accessories like hats and earings.
+  </p>
+ </description>
+ <!-- No screenshots -->
+ <url type="homepage">https://launchpad.net/memaker</url>
+ <updatecontact>encompass at gmail.com</updatecontact>
+</application>
+EOF
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -100,10 +142,14 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{python_sitelib}/MeMaker/
 %{python_sitelib}/%{name}-?.?-py?.?.egg-info
 %{_datadir}/icons/hicolor/*/apps/%{name}.*
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop 
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 20100110-8
+- Add an AppData file for the software center
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20100110-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/memaker.git/commit/?h=master&id=43e9074ee026ce23f6822682349e24166218dcc6


More information about the scm-commits mailing list