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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:25:03 UTC 2015


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


diff --git a/findthatword.spec b/findthatword.spec
index 0df0642..7dfab1a 100644
--- a/findthatword.spec
+++ b/findthatword.spec
@@ -2,7 +2,7 @@
 
 Name:		findthatword
 Version:	0.1
-Release:	10%{?dist}
+Release:	11%{?dist}
 Summary:	A word search maker
 
 Group:		Amusements/Games
@@ -59,6 +59,38 @@ install -p -m 644 src/ftw_small.svg \
 desktop-file-install \
   --dir $RPM_BUILD_ROOT%{_datadir}/applications %{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/%{name}.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Tim Waugh <twaugh at redhat.com -->
+<!--
+BugReportURL: https://sourceforge.net/p/findthatword/discussion/909489/thread/e4f98f33/
+SentUpstream: 2014-09-24
+-->
+<application>
+  <id type="desktop">findthatword.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Create word search puzzles</summary>
+  <description>
+    <p>
+      Find That Word is an easy way to create your own word search puzzles ready
+      to print or save as PDF.
+    </p>
+  </description>
+  <url type="homepage">http://findthatword.sourceforge.net/</url>
+  <screenshots>
+    <screenshot type="default">http://findthatword.sourceforge.net/uploads/Screenshot-FindThatWord-Ubuntu.png</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %post
 touch --no-create %{_datadir}/icons/hicolor || :
 if [ -x %{_bindir}/gtk-update-icon-cache ]; then
@@ -81,11 +113,15 @@ rm -rf $RPM_BUILD_ROOT
 %doc doc/
 %{_bindir}/*
 %{_datadir}/findthatword
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/findthatword.desktop
 %{_datadir}/icons/hicolor/scalable/apps/ftw_small.svg
 %{python_sitelib}/findthatword*
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.1-11
+- Add an AppData file for the software center
+
 * Tue Aug 05 2014 Jon Ciesla <limburgher at gmail.com> - 0.1-10
 - Patch for typo, BZ 1126915.
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/findthatword.git/commit/?h=master&id=810ea1a618a69586a50efee285fe304778f6b101


More information about the scm-commits mailing list