rhughes pushed to plee-the-bear (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:56:01 UTC 2015
>From 9c61cca8b1d457d09aceae3a7248ebe4dfb4e38f Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:41:34 +0000
Subject: Add an AppData file for the software center
diff --git a/plee-the-bear.spec b/plee-the-bear.spec
index ffdd825..488f541 100644
--- a/plee-the-bear.spec
+++ b/plee-the-bear.spec
@@ -1,6 +1,6 @@
Name: plee-the-bear
Version: 0.6.0
-Release: 17%{?dist}
+Release: 18%{?dist}
Summary: 2D platform game
Group: Amusements/Games
# Code and artwork respectively
@@ -79,6 +79,37 @@ for i in %{buildroot}%{_libdir}/*.so %{buildroot}%{_bindir}/bf-* %{buildroot}%{_
chrpath --delete $i
done
+# 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 at redhat.com> -->
+<!--
+BugReportURL: https://github.com/j-jorge/plee-the-bear/issues/2
+SentUpstream: 2014-09-25
+-->
+<application>
+ <id type="desktop">plee-the-bear.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Rescue your kidnapped son in this side scrolling platform game</summary>
+ <description>
+ <p>
+ Plee the bear is a side scrolling platform game where you have to rescue your kidnapped son.
+ Progress through the levels and dodge all the obstacles to try to rescue your son.
+ </p>
+ </description>
+ <url type="homepage">http://plee-the-bear.sourceforge.net/</url>
+ <screenshots>
+ <screenshot type="default">http://www.stuff-o-matic.com/plee-the-bear/assets/screenshots/large/2.png</screenshot>
+ </screenshots>
+</application>
+EOF
%post
/sbin/ldconfig
@@ -101,6 +132,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_bindir}/*
%{_datadir}/plee-the-bear
%{_datadir}/bear-factory
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/pixmaps/*
@@ -108,6 +140,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.6.0-18
+- Add an AppData file for the software center
+
* Mon Jan 26 2015 Petr Machata <pmachata at redhat.com> - 0.6.0-17
- Rebuild for boost 1.57.0
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/plee-the-bear.git/commit/?h=master&id=9c61cca8b1d457d09aceae3a7248ebe4dfb4e38f
More information about the scm-commits
mailing list