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 < + + + + goldendict.desktop + CC0-1.0 + Look up definitions + +

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

+
+ http://goldendict.org/ + + http://goldendict.org/screenshots/sprechen-wiktionary.png + http://goldendict.org/screenshots/damselfly-heady.png + + +
+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 - 1.5-0.7.RC2 +- Add an AppData file for the software center + * Sun Dec 14 2014 Ville Skyttä - 1.5-0.6.RC1 - Use system qtsingleapplication instead of bundled one