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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:53:27 UTC 2015


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


diff --git a/office-runner.spec b/office-runner.spec
index 9def0f8..71c2077 100644
--- a/office-runner.spec
+++ b/office-runner.spec
@@ -1,6 +1,6 @@
 Name:           office-runner
 Version:        1.0.2
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Office game for laptop owners
 
 License:        GPLv3
@@ -33,6 +33,38 @@ desktop-file-install \
 %{buildroot}/%{_datadir}/applications/office-runner.desktop
 %find_lang %{name}
 
+# 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 William Moreno Reyes <williamjmorenor at gmail.com> -->
+<!--
+EmailAddress: hadess at hadess.net
+SentUpstream: 2014-09-25
+-->
+<application>
+  <id type="desktop">office-runner.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Close your laptop lid and start running</summary>
+  <description>
+    <p>
+      Office runner let you close your laptop lid and go quickly to a meeting or
+      other place without having to wait until the computer turns off and then wake up.
+    </p>
+  </description>
+  <url type="homepage">http://www.hadess.net/2011/09/omg-i-haz-designed-bug-fix.html</url>
+  <screenshots>
+    <screenshot type="default">http://2.bp.blogspot.com/-aJ2QmlyCCQ8/TnNgJniDNaI/AAAAAAAAAa8/jUiYw74gbjk/s1600/office-runner.png</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %post
 /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 update-desktop-database &> /dev/null || :
@@ -51,10 +83,14 @@ update-desktop-database &> /dev/null || :
 %doc COPYING NEWS
 %{_bindir}/*
 %{_datadir}/%{name}/
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/office-runner.desktop
 %{_datadir}/icons/hicolor/*/apps/*
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.0.2-4
+- Add an AppData file for the software center
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.2-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/office-runner.git/commit/?h=master&id=9aed2f021690b8c700bbcf1b15ca8b2fb3dbb7f8


More information about the scm-commits mailing list