rhughes pushed to chocolate-doom (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:20:47 UTC 2015
>From 4641a618702c03e6b1d5dd24e780105595d008f7 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:07:00 +0000
Subject: Add an AppData file for the software center
diff --git a/chocolate-doom.spec b/chocolate-doom.spec
index 513e9ff..b64da2e 100644
--- a/chocolate-doom.spec
+++ b/chocolate-doom.spec
@@ -1,6 +1,6 @@
Name: chocolate-doom
Version: 1.6.0
-Release: 9%{?dist}
+Release: 10%{?dist}
Group: Amusements/Games
Summary: Historically compatible Doom engine
License: GPLv2+
@@ -34,6 +34,41 @@ make install DESTDIR=%{buildroot} \
mkdir -p %{buildroot}/%{_bindir}
mv %{buildroot}/%{_prefix}/games/* %{buildroot}/%{_bindir}/
+# 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 Ravi Srinivasan <ravishankar.srinivasan at gmail.com> -->
+<!--
+BugReportURL: https://github.com/chocolate-doom/chocolate-doom/issues/406
+SentUpstream: 2014-09-24
+-->
+<application>
+ <id type="desktop">chocolate-doom.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>A clone of the popular DOS game DOOM</summary>
+ <description>
+ <p>
+ Chocolate Doom is an original source port of the popular DOOM game for the PC.
+ </p>
+ <p>
+ It accurately reproduces the playing experience of the original DOOM game
+ and is compatible with the numerous mods and levels designed for the original.
+ </p>
+ </description>
+ <url type="homepage">http://chocolate-doom.org/</url>
+ <screenshots>
+ <screenshot type="default">http://www.chocolate-doom.org/wiki/images/a/a7/Chocolate-doom.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
desktop-file-validate %{buildroot}/%{_datadir}/applications/chocolate-doom.desktop
desktop-file-validate %{buildroot}/%{_datadir}/applications/chocolate-setup.desktop
@@ -42,6 +77,7 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/chocolate-setup.desk
%{_bindir}/chocolate-doom
%{_bindir}/chocolate-server
%{_bindir}/chocolate-setup
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/chocolate-doom.desktop
%{_datadir}/applications/chocolate-setup.desktop
%exclude %{_datadir}/applications/screensavers/chocolate-doom-screensaver.desktop
@@ -54,6 +90,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/chocolate-setup.desk
%{_mandir}/man6/chocolate-setup.6.gz
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.6.0-10
+- Add an AppData file for the software center
+
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.6.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/chocolate-doom.git/commit/?h=master&id=4641a618702c03e6b1d5dd24e780105595d008f7
More information about the scm-commits
mailing list