From 021e057c2831d013e7a4d2d1176429787fa8531f Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 26 Mar 2015 16:47:26 +0000 Subject: [PATCH] Add an AppData file for the software center --- yelp.spec | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) 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 < + + + + yelp.desktop + CC0-1.0 + +

+ 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. +

+

+ 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. +

+
+ + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/yelp/a.png + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/yelp/b.png + + https://projects.gnome.org/yelp/ + gnome-doc-devel-list@gnome.org +
+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 - 1:3.16.0-2 +- Add an AppData file for the software center + * Mon Mar 23 2015 Kalev Lember - 3.16.0-1 - Update to 3.16.0