From 99e956d8b767034deb9806efd45f8f09625bd428 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mar 26 2015 16:43:36 +0000 Subject: Add an AppData file for the software center --- diff --git a/springlobby.spec b/springlobby.spec index 13ab567..33282e5 100644 --- a/springlobby.spec +++ b/springlobby.spec @@ -1,6 +1,6 @@ Name: springlobby Version: 0.169 -Release: 11%{?dist} +Release: 12%{?dist} Summary: A lobby client for the spring RTS game engine Group: Amusements/Games @@ -66,6 +66,40 @@ desktop-file-install \ --delete-original \ $RPM_BUILD_ROOT%{_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 < + + + + springlobby.desktop + CC0-1.0 + Find games using Spring-RTS engine + +

+ SpringLobby configures the Spring-RTS engine so that you can connect to + the server using the right maps and mods. + This helps you to discover the game you want. + It also allows you to communicate to other players before the game's start. +

+
+ http://springlobby.info + + http://springlobby.info/landing/screenshots/10_sp.png + +
+EOF + %find_lang %{name} %post @@ -85,10 +119,14 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_bindir}/* %{_libdir}/libCurlWrapper.so %{_libdir}/libFileSystem.so +%{_datadir}/appdata/*.appdata.xml %{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/scalable/apps/*.svg %changelog +* Thu Mar 26 2015 Richard Hughes - 0.169-12 +- Add an AppData file for the software center + * Mon Aug 18 2014 Fedora Release Engineering - 0.169-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild