rhughes pushed to celestia (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:20:01 UTC 2015
>From 0bdff0785d0d2b0b8b7352414f9e72037cc3c71d Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:06:48 +0000
Subject: Add an AppData file for the software center
diff --git a/celestia.spec b/celestia.spec
index aca5f3a..9cb8945 100644
--- a/celestia.spec
+++ b/celestia.spec
@@ -1,6 +1,6 @@
Name: celestia
Version: 1.6.1
-Release: 18%{?dist}
+Release: 19%{?dist}
Summary: OpenGL real-time visual space simulation
Group: Applications/Emulators
License: GPLv2+
@@ -115,6 +115,46 @@ desktop-file-install \
--add-category Education \
%{SOURCE3}
+# 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> -->
+<!--
+EmailAddress: claurel at gmail.com
+SentUpstream: 2013-09-30
+-->
+<application>
+ <id type="desktop">celestia.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <description>
+ <p>
+ Celestia provides photo-realistic, real-time, three-dimensional viewing of
+ the Solar System, the galaxy and the universe.
+ </p>
+ <p>
+ It is an easy to use, freely-distributed, multi-platform, open source,
+ software package which has become a valuable tool for astronomy education.
+ Used in homes, schools, museums and planetariums around the world, it also
+ is used as a visualization tool by space mission designers.
+ </p>
+ </description>
+ <url type="homepage">http://www.shatters.net/celestia/</url>
+ <screenshots>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/celestia/a.png</screenshot>
+ <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/celestia/b.png</screenshot>
+ <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/celestia/c.png</screenshot>
+ </screenshots>
+ <updatecontact>claurel at gmail.com</updatecontact>
+</application>
+EOF
+
%find_lang %{name} --all-name
%pre
@@ -143,12 +183,16 @@ fi
%doc devguide.txt
%{_bindir}/*
%{_sysconfdir}/gconf/schemas/*
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.6.1-19
+- Add an AppData file for the software center
+
* Sun Nov 16 2014 Matias Kreder <mkreder at gmail.com> - 1.6.1-18
- Repackaged source with .tar.xz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/celestia.git/commit/?h=master&id=0bdff0785d0d2b0b8b7352414f9e72037cc3c71d
More information about the scm-commits
mailing list