corsepiu pushed to springlobby (f22). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Wed Apr 8 12:23:08 UTC 2015
>From 99e956d8b767034deb9806efd45f8f09625bd428 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 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 <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Eduardo Mayorga <e at mayorgalinux.com> -->
+<!--
+BugReportURL: https://github.com/springlobby/springlobby/issues/241
+SentUpstream: 2014-09-25
+-->
+<application>
+ <id type="desktop">springlobby.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Find games using Spring-RTS engine</summary>
+ <description>
+ <p>
+ 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.
+ </p>
+ </description>
+ <url type="homepage">http://springlobby.info</url>
+ <screenshots>
+ <screenshot type="default">http://springlobby.info/landing/screenshots/10_sp.png</screenshot>
+ </screenshots>
+</application>
+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 <rhughes at redhat.com> - 0.169-12
+- Add an AppData file for the software center
+
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.169-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/springlobby.git/commit/?h=f22&id=99e956d8b767034deb9806efd45f8f09625bd428
More information about the scm-commits
mailing list