rhughes pushed to rocksndiamonds (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:57:53 UTC 2015
>From 537d1b6306aa585bb1f628ffbc19193cf79ddecd Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:42:32 +0000
Subject: Add an AppData file for the software center
diff --git a/rocksndiamonds.spec b/rocksndiamonds.spec
index 945307a..5a08ef5 100644
--- a/rocksndiamonds.spec
+++ b/rocksndiamonds.spec
@@ -1,6 +1,6 @@
Name: rocksndiamonds
Version: 3.3.0.1
-Release: 11%{?dist}
+Release: 12%{?dist}
License: GPL+
Group: Amusements/Games
Summary: Underground digging game
@@ -55,17 +55,55 @@ desktop-file-install \
--mode 0644 \
%{SOURCE1}
+# 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 Your Name <email at address.com> -->
+<!--
+BugReportURL: waiting for admin approval to post
+SentUpstream: 2014-09-25
+-->
+<application>
+ <id type="desktop">rocksndiamonds.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Gem collecting puzzle game</summary>
+ <description>
+ <p>
+ Rocks 'n' Diamonds is a action puzzle game where you have to navigate a maze
+ of dirt, rocks, enemies and quicksand, while collecting gems and making it
+ safely to the exit.
+ Be careful not to get crushed by falling rocks or killed by an enemy.
+ </p>
+ </description>
+ <url type="homepage">http://www.artsoft.org/rocksndiamonds/</url>
+ <screenshots>
+ <screenshot type="default">http://www.artsoft.org/rocksndiamonds/screenshots/emeraldmine.gif</screenshot>
+ </screenshots>
+</application>
+EOF
+
%files
%doc ChangeLog COPYING CREDITS INSTALL README
%doc docs/elements/
%{_bindir}/*
%{_datadir}/%{name}/
%{_datadir}/pixmaps/*
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*.desktop
%{_localstatedir}/games/%{name}/
%{_mandir}/man1/*
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 3.3.0.1-12
+- Add an AppData file for the software center
+
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.3.0.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/rocksndiamonds.git/commit/?h=master&id=537d1b6306aa585bb1f628ffbc19193cf79ddecd
More information about the scm-commits
mailing list