[scilab] 29/29: Modernize the appstream and desktop files

Julien Puydt julien.puydt at laposte.net
Wed Nov 22 17:19:36 UTC 2017


This is an automated email from the git hooks/post-receive script.

jpuydt-guest pushed a commit to branch master
in repository scilab.

commit 1d3d7fbd9f70003a3f16d7b3e58614fce7178f1f
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Wed Nov 22 17:18:35 2017 +0100

    Modernize the appstream and desktop files
---
 debian/changelog                   |  1 +
 debian/patches/appstream.patch     | 47 +++++++++++++++++++++++++++++++++++
 debian/patches/desktop_files.patch | 51 ++++++++++++++++++++++++++++++++++++++
 debian/patches/series              |  2 ++
 4 files changed, 101 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index c94db27..a33e694 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -31,6 +31,7 @@ scilab (6.0.0-1) UNRELEASED; urgency=medium
     - Add new build-depends. 
     - Add patch to handle the lucene 4.10 api. 
   * Rework the manpages.
+  * Modernize the appstream and desktop files.
 
  -- Julien Puydt <julien.puydt at laposte.net>  Tue, 14 Nov 2017 16:46:25 +0100
 
diff --git a/debian/patches/appstream.patch b/debian/patches/appstream.patch
new file mode 100644
index 0000000..19be7ba
--- /dev/null
+++ b/debian/patches/appstream.patch
@@ -0,0 +1,47 @@
+Description: modernize the appdata description
+Author: Julien Puydt
+Forwarded: no
+
+--- a/desktop/scilab.appdata.xml
++++ b/desktop/scilab.appdata.xml
+@@ -1,7 +1,7 @@
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!-- Copyright 2013 Clement DAVID <clement.david at scilab-enterprises.com> -->
+-<application>
+-    <id type="desktop">scilab.desktop</id>
++<component type="desktop-application">
++    <id>org.scilab.www</id>
+     <name>Scilab</name>
+     <metadata_license>CC0-1.0</metadata_license>
+     <project_license>CECILL-2.1 or GPL-2.0+</project_license>
+@@ -23,12 +23,24 @@
+         </p>
+     </description>
+     <screenshots>
+-        <screenshot type="default" width="1200" height="675">http://cgit.scilab.org/cgit.cgi/scilab/plain/scilab/desktop/images/scilab-desktop.png</screenshot>
+-        <screenshot width="1200" height="675">http://cgit.scilab.org/cgit.cgi/scilab/plain/scilab/desktop/images/scilab-plot.png</screenshot>
+-        <screenshot width="1200" height="675">http://cgit.scilab.org/cgit.cgi/scilab/plain/scilab/desktop/images/scilab-xcos.png</screenshot>
+-        <screenshot width="1200" height="675">http://cgit.scilab.org/cgit.cgi/scilab/plain/scilab/desktop/images/scilab-scinotes.png</screenshot>
++      <screenshot type="default">
++	<caption>Scilab main window</caption>
++	<image width="1200" height="675">http://cgit.scilab.org/cgit.cgi/scilab/plain/scilab/desktop/images/scilab-desktop.png</image>
++      </screenshot>
++      <screenshot>
++	<caption>Scilab plot</caption>
++	<image width="1200" height="675">http://cgit.scilab.org/cgit.cgi/scilab/plain/scilab/desktop/images/scilab-plot.png</image>
++      </screenshot>
++      <screenshot>
++	<caption>Scilab Xcos</caption>
++	<image width="1200" height="675">http://cgit.scilab.org/cgit.cgi/scilab/plain/scilab/desktop/images/scilab-xcos.png</image>
++      </screenshot>
++      <screenshot>
++	<caption>Scilab text editor</caption>
++	<image width="1200" height="675">http://cgit.scilab.org/cgit.cgi/scilab/plain/scilab/desktop/images/scilab-scinotes.png</image>
++      </screenshot>
+     </screenshots>
+     <url type="homepage">http://www.scilab.org</url>
+-    <updatecontact>dev at lists.scilab.org</updatecontact>
+-</application>
++    <update_contact>dev at lists.scilab.org</update_contact>
++</component>
+ 
diff --git a/debian/patches/desktop_files.patch b/debian/patches/desktop_files.patch
new file mode 100644
index 0000000..8ff89a7
--- /dev/null
+++ b/debian/patches/desktop_files.patch
@@ -0,0 +1,51 @@
+Description: modernize the desktop files
+Author: Julien Puydt
+Forwarded: no
+
+--- a/desktop/scilab-cli.desktop
++++ b/desktop/scilab-cli.desktop
+@@ -15,3 +15,4 @@
+ Terminal=true
+ Type=Application
+ Categories=Science;Math;
++Keywords=Science;Math;Numerical;
+\ No newline at end of file
+--- a/desktop/scilab.desktop
++++ b/desktop/scilab.desktop
+@@ -3,7 +3,7 @@
+ Comment[fr]=Logiciel scientifique de calcul numérique
+ Comment[de]=eine Wissenschaftssoftware für numerische Berechnungen
+ Comment[ru]=Научная программа для численных расчётов
+-Exec=scilab -f
++Exec=scilab -f %f
+ GenericName=Scientific Software Package
+ GenericName[fr]=Logiciel de calcul numérique
+ GenericName[de]=Wissenschaftssoftware
+@@ -15,3 +15,4 @@
+ Terminal=false
+ Type=Application
+ Categories=Science;Math;
++Keywords=Science;Math;Numerical;Simulation
+--- a/desktop/scinotes.desktop
++++ b/desktop/scinotes.desktop
+@@ -14,3 +14,4 @@
+ Terminal=false
+ Type=Application
+ Categories=Science;Math;
++Keywords=Text;Editor;
+\ No newline at end of file
+--- a/desktop/xcos.desktop
++++ b/desktop/xcos.desktop
+@@ -13,3 +13,4 @@
+ Terminal=false
+ Type=Application
+ Categories=Science;Physics;
++Keywords=Science;Physics;Simulation
+\ No newline at end of file
+--- a/desktop/scilab-adv-cli.desktop
++++ b/desktop/scilab-adv-cli.desktop
+@@ -16,3 +16,4 @@
+ Terminal=true
+ Type=Application
+ Categories=Science;Math;
++Keywords=Science;Math;Numerical;
diff --git a/debian/patches/series b/debian/patches/series
index b2934ca..4d33a99 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,3 +11,5 @@ gcc-7.patch
 fix-ocaml-4.05.patch
 lucene_4.10.patch
 spelling.patch
+appstream.patch
+desktop_files.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/scilab.git



More information about the debian-science-commits mailing list