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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:48:35 UTC 2015


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


diff --git a/lincity-ng.spec b/lincity-ng.spec
index dda5737..1d90ae7 100644
--- a/lincity-ng.spec
+++ b/lincity-ng.spec
@@ -3,7 +3,7 @@
 
 Name:		lincity-ng
 Version:	2.9
-Release:	0.4.%{prever}%{?dist}
+Release:	0.5.%{prever}%{?dist}
 License:	GPLv2+
 Group:		Amusements/Games
 Summary:	City Simulation Game
@@ -55,16 +55,58 @@ desktop-file-install --delete-original		\
   --mode 0644					\
   $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.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 Edgar Muniz Berlinck <edgar.vv at gmail.com> -->
+<!--
+BugReportURL: https://code.google.com/p/lincity-ng/issues/detail?id=3&thanks=3&ts=1411587797
+SentUpstream: 2014-09-24
+-->
+<application>
+  <id type="desktop">lincity-ng.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>LinCity-NG</summary>
+  <description>
+    <p>
+      LinCity-NG is a game where you are the mayor of a small town and your goal
+      is to make it prosper gerenciand building improvements and the resources of
+      their city.
+    </p>
+    <p>
+      Good game for Sim City fans.
+    </p>
+  </description>
+  <url type="homepage">http://sourceforge.net/projects/lincity-ng.berlios/</url>
+  <screenshots>
+    <screenshot type="default">http://a.fsdn.com/con/app/proj/lincity-ng.berlios/screenshots/Lincity-ng-2.0.png</screenshot>
+    <screenshot>http://a.fsdn.com/con/app/proj/lincity-ng.berlios/screenshots/NewSolar.png</screenshot>
+    <screenshot>http://a.fsdn.com/con/app/proj/lincity-ng.berlios/screenshots/Height.png</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %files
 %doc %{_pkgdocdir}
 %{_bindir}/lincity-ng
 %{_datadir}/pixmaps/*
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*lincity-ng.desktop
 
 %files data
 %{_datadir}/lincity-ng/
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.9-0.5.beta
+- Add an AppData file for the software center
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.9-0.4.beta
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/lincity-ng.git/commit/?h=master&id=bebd5aac46237d5c14692b33402dc27ab1f728c4


More information about the scm-commits mailing list