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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:43:30 UTC 2015


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


diff --git a/goldendict.spec b/goldendict.spec
index 8743f13..aa2c332 100644
--- a/goldendict.spec
+++ b/goldendict.spec
@@ -3,7 +3,7 @@
 
 Name:		goldendict
 Version:	1.5
-Release:	0.6.RC2%{?dist}
+Release:	0.7.RC2%{?dist}
 Summary:	A feature-rich dictionary lookup program
 Group:		Applications/System
 License:	GPLv3+
@@ -53,11 +53,49 @@ make install INSTALL_ROOT=%{buildroot} INSTALL="install -p"
 rm -rf %{buildroot}/%{_datadir}/app-install
 desktop-file-install %{buildroot}%{_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 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+EmailAddress: ikm at goldendict.org
+SentUpstream: 2014-09-18
+-->
+<application>
+  <id type="desktop">goldendict.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Look up definitions</summary>
+  <description>
+    <p>
+      Goldendict is an application to look up the definitions of words. It has the ability to
+      query both dictionaries saved on your local machine, and to query online dictionaries and
+      encyclopedias such as Wikipedia, Wiktionary and Urban Dictionary.
+    </p>
+  </description>
+  <url type="homepage">http://goldendict.org/</url>
+  <screenshots>
+    <screenshot type="default">http://goldendict.org/screenshots/sprechen-wiktionary.png</screenshot>
+    <screenshot>http://goldendict.org/screenshots/damselfly-heady.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 LICENSE.txt
 %dir %{_datadir}/goldendict/
 %dir %{_datadir}/goldendict/locale/
 %{_bindir}/goldendict
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/goldendict.desktop
 %{_datadir}/pixmaps/goldendict.png
 %{_datadir}/goldendict/locale/*.qm
@@ -67,6 +105,9 @@ desktop-file-install %{buildroot}%{_datadir}/applications/%{name}.desktop
 %{_datadir}/goldendict/help/*
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.5-0.7.RC2
+- Add an AppData file for the software center
+
 * Sun Dec 14 2014 Ville Skyttä <ville.skytta at iki.fi> - 1.5-0.6.RC1
 - Use system qtsingleapplication instead of bundled one
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/goldendict.git/commit/?h=master&id=90827836d455fb61bbefce0577d507140a314eed


More information about the scm-commits mailing list