From a96d30609800506ff477c42d1b7d515b083bfb2c Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mar 26 2015 16:36:29 +0000 Subject: Add an AppData file for the software center --- diff --git a/kgoldrunner.spec b/kgoldrunner.spec index 720378a..4d10fac 100644 --- a/kgoldrunner.spec +++ b/kgoldrunner.spec @@ -2,7 +2,7 @@ Name: kgoldrunner Summary: A game of action and puzzle solving Version: 14.12.3 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ and GFDL URL: https://projects.kde.org/projects/kde/kdegames/%{name} @@ -40,6 +40,43 @@ make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} +# 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/KGoldrunner.appdata.xml < + + + + KGoldrunner.desktop + CC0-1.0 + 2D action puzzle platform game + +

+ KGoldrunner is a two-dimensional side view action puzzle game where you play + as a golden runner that collects diamonds. + The player leads the runner (either with the keyboard or the mouse) + through a series of levels with ladders, obstacles and other puzzles to + collect all the diamonds and escape the maze. +

+
+ https://projects.kde.org/projects/kde/kdegames/kgoldrunner + + + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/KGoldrunner/a.png + + +
+EOF + %find_lang %{name} --with-kde @@ -63,6 +100,7 @@ gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || : %doc COPYING* %doc README %{_kde4_bindir}/%{name}* +%{_kde4_datadir}/appdata/*.appdata.xml %{_kde4_datadir}/applications/kde4/*.desktop %{_kde4_configdir}/%{name}.knsrc %{_kde4_iconsdir}/hicolor/*/*/* @@ -70,6 +108,9 @@ gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || : %changelog +* Thu Mar 26 2015 Richard Hughes - 14.12.3-2 +- Add an AppData file for the software center + * Sun Mar 01 2015 Rex Dieter - 14.12.3-1 - 14.12.3