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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 17:05:42 UTC 2015


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


diff --git a/yelp.spec b/yelp.spec
index 79f5d15..9a02c19 100644
--- a/yelp.spec
+++ b/yelp.spec
@@ -3,7 +3,7 @@
 Name:          yelp
 Epoch:         1
 Version:       3.16.0
-Release:       1%{?dist}
+Release:       2%{?dist}
 Summary:       Help browser for the GNOME desktop
 
 Group:         Applications/System
@@ -71,6 +71,46 @@ make %{?_smp_mflags} V=1
 %install
 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
 
+# 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> -->
+<!--
+BugReportURL: https://bugzilla.gnome.org/show_bug.cgi?id=722763
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">yelp.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <description>
+    <p>
+      Yelp is a viewer and framework for documentation on the Linux desktop.
+      It is used heavily by the GNOME desktop environment, and its tools serve as
+      the reference implementation for the Mallard help format.
+      Yelp supports DocBook, Mallard, HTML, man, and info documents.
+    </p>
+    <p>
+      Yelp development has led to the development of various tools, and the Mallard
+      and DocBook transformations live in standalone XSLT module.
+      All of these are under the umbrella name Yelp.
+    </p>
+  </description>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/yelp/a.png</screenshot>
+    <screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/yelp/b.png</screenshot>
+  </screenshots>
+  <url type="homepage">https://projects.gnome.org/yelp/</url>
+  <updatecontact>gnome-doc-devel-list at gnome.org</updatecontact>
+</application>
+EOF
+
 rm $RPM_BUILD_ROOT%{_libdir}/libyelp.la
 
 %find_lang %{name}
@@ -102,6 +142,7 @@ gtk-update-icon-cache %{_datadir}icons/hicolor &> /dev/null || :
 %doc AUTHORS MAINTAINERS NEWS README
 %license COPYING
 %{_bindir}/*
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/yelp.desktop
 %{_datadir}/yelp
 %{_datadir}/glib-2.0/schemas/org.gnome.yelp.gschema.xml
@@ -117,6 +158,9 @@ gtk-update-icon-cache %{_datadir}icons/hicolor &> /dev/null || :
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1:3.16.0-2
+- Add an AppData file for the software center
+
 * Mon Mar 23 2015 Kalev Lember <kalevlember at gmail.com> - 3.16.0-1
 - Update to 3.16.0
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/yelp.git/commit/?h=master&id=021e057c2831d013e7a4d2d1176429787fa8531f


More information about the scm-commits mailing list