rhughes pushed to tuxtype2 (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 17:02:44 UTC 2015
>From 1f7fa82b5892c13ff9b7b05eac16ab8d5124d23a Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:45:21 +0000
Subject: Add an AppData file for the software center
diff --git a/tuxtype2.spec b/tuxtype2.spec
index 52f80a4..0f59d8b 100644
--- a/tuxtype2.spec
+++ b/tuxtype2.spec
@@ -1,6 +1,6 @@
Name: tuxtype2
Version: 1.8.1
-Release: 12%{?dist}
+Release: 13%{?dist}
Summary: Tux Typing, an educational typing tutor for children
Group: Amusements/Games
@@ -64,6 +64,41 @@ desktop-file-install --dir $RPM_BUILD_ROOT/%{_datadir}/applications/ \
--add-category X-Fedora \
%{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 Richard Hughes <richard at hughsie.com> -->
+<application>
+ <id type="desktop">tuxtype2.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <description>
+ <p>
+ TuxTyping is an educational typing tutor for kids starring Tux, the Linux
+ penguin.
+ </p>
+ <p>
+ This educational game comes with two different games for practicing your
+ typing, and having a great time doing it.
+ </p>
+ </description>
+ <url type="homepage">http://tux4kids.alioth.debian.org/tuxtype/index.php</url>
+ <screenshots>
+ <screenshot type="default">http://tux4kids.alioth.debian.org/tuxtype/screenshots/tux_eat_fish.jpg</screenshot>
+ <screenshot>http://tux4kids.alioth.debian.org/tuxtype/screenshots/tux_waiting.jpg</screenshot>
+ </screenshots>
+ <!-- FIXME: change this to an upstream email address for spec updates
+ <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+ -->
+</application>
+EOF
+
%find_lang tuxtype
@@ -71,6 +106,7 @@ desktop-file-install --dir $RPM_BUILD_ROOT/%{_datadir}/applications/ \
%doc AUTHORS COPYING ChangeLog README TODO doc/en/howtotheme.html doc/en/TuxType_port_Mac.txt
%attr(-,root,games) %{_bindir}/tuxtype
%{_datadir}/pixmaps/*
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*
%{_datadir}/tuxtype
%config(noreplace) %{_sysconfdir}/tuxtype
@@ -78,6 +114,9 @@ desktop-file-install --dir $RPM_BUILD_ROOT/%{_datadir}/applications/ \
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.8.1-13
+- Add an AppData file for the software center
+
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.8.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/tuxtype2.git/commit/?h=master&id=1f7fa82b5892c13ff9b7b05eac16ab8d5124d23a
More information about the scm-commits
mailing list