Add an AppData file for the software center

f39
Richard Hughes 10 years ago
parent d7dc432040
commit 90827836d4

@ -3,7 +3,7 @@
Name: goldendict Name: goldendict
Version: 1.5 Version: 1.5
Release: 0.6.RC2%{?dist} Release: 0.7.RC2%{?dist}
Summary: A feature-rich dictionary lookup program Summary: A feature-rich dictionary lookup program
Group: Applications/System Group: Applications/System
License: GPLv3+ License: GPLv3+
@ -53,11 +53,49 @@ make install INSTALL_ROOT=%{buildroot} INSTALL="install -p"
rm -rf %{buildroot}/%{_datadir}/app-install rm -rf %{buildroot}/%{_datadir}/app-install
desktop-file-install %{buildroot}%{_datadir}/applications/%{name}.desktop 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@redhat.com> -->
<!--
EmailAddress: ikm@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@upstream_project.org</updatecontact>
-->
</application>
EOF
%files %files
%doc LICENSE.txt %doc LICENSE.txt
%dir %{_datadir}/goldendict/ %dir %{_datadir}/goldendict/
%dir %{_datadir}/goldendict/locale/ %dir %{_datadir}/goldendict/locale/
%{_bindir}/goldendict %{_bindir}/goldendict
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/goldendict.desktop %{_datadir}/applications/goldendict.desktop
%{_datadir}/pixmaps/goldendict.png %{_datadir}/pixmaps/goldendict.png
%{_datadir}/goldendict/locale/*.qm %{_datadir}/goldendict/locale/*.qm
@ -67,6 +105,9 @@ desktop-file-install %{buildroot}%{_datadir}/applications/%{name}.desktop
%{_datadir}/goldendict/help/* %{_datadir}/goldendict/help/*
%changelog %changelog
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 1.5-0.7.RC2
- Add an AppData file for the software center
* Sun Dec 14 2014 Ville Skyttä <ville.skytta@iki.fi> - 1.5-0.6.RC1 * Sun Dec 14 2014 Ville Skyttä <ville.skytta@iki.fi> - 1.5-0.6.RC1
- Use system qtsingleapplication instead of bundled one - Use system qtsingleapplication instead of bundled one

Loading…
Cancel
Save