Add an AppData file for the software center
This commit is contained in:
parent
4878a641d7
commit
021e057c28
46
yelp.spec
46
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@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@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@redhat.com> - 1:3.16.0-2
|
||||
- Add an AppData file for the software center
|
||||
|
||||
* Mon Mar 23 2015 Kalev Lember <kalevlember@gmail.com> - 3.16.0-1
|
||||
- Update to 3.16.0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user