rhughes pushed to sudoku-savant (master). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 17:00:29 UTC 2015


>From fd1e234e523aedc7ae14a7c9c8d70ce434a165d9 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:43:56 +0000
Subject: Add an AppData file for the software center


diff --git a/sudoku-savant.spec b/sudoku-savant.spec
index 1c1d2bc..645e1dc 100644
--- a/sudoku-savant.spec
+++ b/sudoku-savant.spec
@@ -1,6 +1,6 @@
 Name:           sudoku-savant
 Version:        1.3
-Release:        13%{?dist}
+Release:        14%{?dist}
 Summary:        Solve and generate sudoku puzzles through logical means
 Summary(de):    Lösen und Erstellen von Sudoku-Puzzles mit logischen Mitteln
 
@@ -53,6 +53,37 @@ make install DESTDIR=%{buildroot}
 install -dm 755 %{buildroot}%{_datadir}/icons/hicolor
 tar xJ --directory=%{buildroot}%{_datadir}/icons/hicolor < %{name}-icons.txz
 
+# 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 William Moreno <williamjmorenor at gmail.com> -->
+<!--
+BugReportURL: https://sourceforge.net/p/sudoku-savant/bugs/3/
+SentUpstream: 2014-09-25
+-->
+<application>
+  <id type="desktop">sudoku-savant.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Complete a numeric puzzle with the numbers from one to nine</summary>
+  <description>
+    <p>
+      Sudoku Savnt a free version of the popular logic game Sudoku for the Linux desktop .
+      The game is to fill a nine by nine grid with the numbers from one to nine
+      filling the rows, columns and three by three squares without repeating a
+      value on them.
+    </p>
+  </description>
+  <url type="homepage">http://sourceforge.net/projects/sudoku-savant/</url>
+</application>
+EOF
+
 %find_lang %{name}
 
 desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
@@ -61,12 +92,16 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
 %files -f %{name}.lang
 %doc ABOUT-NLS AUTHORS ChangeLog COPYING README
 %{_bindir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/*
 %exclude %{_datadir}/pixmaps/%{name}.png
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1.3-14
+- Add an AppData file for the software center
+
 * Thu Oct 30 2014 Jaromir Capik <jcapik at redhat.com> - 1.3-13
 - Creating a set of icons for gnome software centre (#1157578)
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/sudoku-savant.git/commit/?h=master&id=fd1e234e523aedc7ae14a7c9c8d70ce434a165d9


More information about the scm-commits mailing list