rhughes pushed to kajongg (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:46:25 UTC 2015
>From b729d0757a46df85a7408be74a87e0d615f5b8df Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:35:58 +0000
Subject: Add an AppData file for the software center
diff --git a/kajongg.spec b/kajongg.spec
index ca037e3..327074b 100644
--- a/kajongg.spec
+++ b/kajongg.spec
@@ -2,7 +2,7 @@
Name: kajongg
Summary: Classical Mah Jongg game for four players
Version: 14.12.3
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2 and GFDL
URL: https://projects.kde.org/projects/kde/kdegames/%{name}
@@ -52,6 +52,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"?>
+<!--
+BugReportURL: https://bugs.kde.org/show_bug.cgi?id=339366
+SentUpstream: 2014-09-24
+-->
+<component type="desktop">
+ <id>kajongg.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Mah Jongg Puzzle Game</summary>
+ <description>
+ <p>
+ Mah Jongg board game for KDE.
+ Can be played against up to four players (human or computer) or solo.
+ </p>
+ </description>
+ <url type="homepage">http://www.kde.org/applications/games/kajongg/</url>
+ <screenshots>
+ <screenshot type="default">
+ <image>http://www.kde.org/images/screenshots/kajongg.png</image>
+ </screenshot>
+ </screenshots>
+ <project_group>KDE</project_group>
+ <developer_name>KDE e.V.</developer_name>
+</component>
+EOF
+
%find_lang %{name} --with-kde
@@ -74,12 +109,16 @@ gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
%files -f %{name}.lang
%doc COPYING COPYING.DOC voices/female2/COPYRIGHT
%{_kde4_bindir}/%{name}*
+%{_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/kajongg.git/commit/?h=master&id=b729d0757a46df85a7408be74a87e0d615f5b8df
More information about the scm-commits
mailing list