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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:40:47 UTC 2015


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


diff --git a/libgda.spec b/libgda.spec
index 1f9d438..40b7955 100644
--- a/libgda.spec
+++ b/libgda.spec
@@ -11,7 +11,7 @@
 Name:           libgda
 Epoch:          1
 Version:        5.2.2
-Release:        7%{?dist}
+Release:        8%{?dist}
 Summary:        Library for writing gnome database programs
 
 License:        LGPLv2+
@@ -256,6 +256,51 @@ make install DESTDIR=%{buildroot}
 find %{buildroot} -name '*.la' -exec rm -f {} ';'
 rm %{buildroot}/%{_sysconfdir}/%{name}-%{apiver}/sales_test.db
 
+# 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/gda-browser-5.0.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+BugReportURL: https://bugzilla.gnome.org/show_bug.cgi?id=730813
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">gda-browser-5.0.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>View the schema and data of databases</summary>
+  <description>
+    <p>
+      Database Browser provides quick access to the data and schema of a database,
+      and displays it in a intuitive graphical interface.
+      It provides three perspectives to interact with a database: the schema browser,
+      query execution, and data manager.
+      The schema browser allows the user to view the tables of a database, and
+      inspect the table's properties and relations.
+      The query exeution perspective allows the user to execute SQL queries on
+      the database.
+      The data manager perspective allows the user to view the data contained in
+      the database in a tabular form.
+    </p>
+  </description>
+  <url type="homepage">http://www.gnome-db.org/GdaBrowser</url>
+  <screenshots>
+    <screenshot type="default">http://www.gnome-db.org/GdaBrowser?action=AttachFile&amp;do=get&amp;target=GdaBrowser-tablerels.png</screenshot>
+    <screenshot>http://www.gnome-db.org/GdaBrowser?action=AttachFile&amp;do=get&amp;target=GdaBrowser-query1.png</screenshot>
+    <screenshot>http://www.gnome-db.org/GdaBrowser?action=AttachFile&amp;do=get&amp;target=dataman-persp.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
+
 %find_lang libgda-5.0
 %find_lang gda-browser --with-gnome
 
@@ -338,6 +383,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_bindir}/gda-*
 %{_datadir}/%{name}-%{apiver}/gda_trml2html
 %{_datadir}/%{name}-%{apiver}/gda_trml2pdf
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/gda-browser-%{apiver}.desktop
 %{_datadir}/applications/gda-control-center-%{apiver}.desktop
 %{_datadir}/pixmaps/gda-browser-5.0.png
@@ -397,6 +443,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %endif
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1:5.2.2-8
+- Add an AppData file for the software center
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:5.2.2-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/libgda.git/commit/?h=master&id=2995cdd53f00f024afffa6891eeb2bfc98cbe0c4


More information about the scm-commits mailing list