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

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


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


diff --git a/libreatlas.spec b/libreatlas.spec
index 6f2b063..55443c7 100644
--- a/libreatlas.spec
+++ b/libreatlas.spec
@@ -1,6 +1,6 @@
 Name:           libreatlas
 Version:        1.0.0a
-Release:        10%{?dist}
+Release:        11%{?dist}
 Summary:        A digital atlas and geography education tool
 
 # Upstream emailed regarding explicitly stating license in headers
@@ -52,15 +52,53 @@ install -pm 0644 -D                                     \
  gnome_resource/LibreAtlas.png                          \
  $RPM_BUILD_ROOT%{_datadir}/pixmaps/LibreAtlas.png
 
+# 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/LibreAtlas.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+BugReportURL: https://groups.google.com/d/msg/spatialite-users/TgAkmyA-Qz0/9v8IFguKVLwJ
+SentUpstream: 2014-09-23
+-->
+<application>
+  <id type="desktop">LibreAtlas.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Digital Atlas</summary>
+  <description>
+    <p>
+      LibreAtlas is an open source geography application for viewing and browsing digital atlases.
+      LibreAtlas opens digital atlases in the libreatlas database format.
+      The upstream LibreAtlas homepage has a list of compatible atlases available for download.
+    </p>
+  </description>
+  <url type="homepage">https://www.gaia-gis.it/fossil/libreatlas/home</url>
+  <screenshots>
+    <screenshot type="default">http://www.gaia-gis.it/gaia-sins/LibreAtlas-sample.png</screenshot>
+  </screenshots>
+  <!-- FIXME: change this to an upstream email address for spec updates
+  <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+   -->
+</application>
+EOF
 
 %files
 %doc COPYING AUTHORS README
 %{_bindir}/LibreAtlas
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/LibreAtlas.desktop
 %{_datadir}/pixmaps/LibreAtlas.png
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.0.0a-11
+- Add an AppData file for the software center
+
 * Wed Mar 11 2015 Devrim Gündüz <devrim at gunduz.org> - 1.0.0a-10
 - Rebuild for Proj 4.9.1
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/libreatlas.git/commit/?h=master&id=2950c04f4e7aa6e7e7f8b9c3025857a6d36ed019


More information about the scm-commits mailing list