rhughes pushed to kubrick (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:47:55 UTC 2015
>From 84c4b7c693f95672dea1993c26e269e624a6c8b2 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:36:54 +0000
Subject: Add an AppData file for the software center
diff --git a/kubrick.spec b/kubrick.spec
index b16c24e..0837d61 100644
--- a/kubrick.spec
+++ b/kubrick.spec
@@ -2,7 +2,7 @@
Name: kubrick
Summary: Puzzle cube solving game
Version: 14.12.3
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+ and GFDL
URL: https://projects.kde.org/projects/kde/kdegames/%{name}
@@ -44,6 +44,41 @@ make %{?_smp_mflags} -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
+# 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 Edgar Muniz Berlinck <edgar.vv at gmail.com> -->
+<!--
+EmailAddress: wolfgang at rohdewald.de
+SentUpstream: 2014-09-24
+-->
+<component type="desktop">
+ <id>kubrick.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Rubik's Cube Puzzle Game</summary>
+ <description>
+ <p>
+ Puzzle Game based on Rubik's Cube for KDE.
+ </p>
+ </description>
+ <url type="homepage">https://projects.kde.org/projects/kde/kdegames/kubrick</url>
+ <screenshots>
+ <screenshot type="default">
+ <image>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/kubrick/a.png</image>
+ </screenshot>
+ <screenshot/>
+ <screenshot/>
+ </screenshots>
+</component>
+EOF
+
%find_lang %{name} --with-kde
@@ -66,12 +101,16 @@ gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
%files -f %{name}.lang
%doc COPYING*
%{_kde4_bindir}/%{name}
+%{_kde4_datadir}/appdata/%{name}.appdata.xml
%{_kde4_datadir}/applications/kde4/%{name}.desktop
%{_kde4_iconsdir}/hicolor/*/*/*
%{_kde4_appsdir}/%{name}/
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 14.12.3-2
+- Add an AppData file for the software center
+
* Sun Mar 01 2015 Rex Dieter <rdieter at fedoraproject.org> - 14.12.3-1
- 14.12.3
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/kubrick.git/commit/?h=master&id=84c4b7c693f95672dea1993c26e269e624a6c8b2
More information about the scm-commits
mailing list