File: 03_fix_appdata.patch

package info (click to toggle)
repsnapper 2.5a5-3
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 5,452 kB
  • sloc: cpp: 61,683; ansic: 7,084; perl: 692; xml: 396; makefile: 348; sh: 231
file content (39 lines) | stat: -rw-r--r-- 1,629 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Description: Fix appdata XML format and installation path
 According to freedesktop.org latest document, the appdata should
 not use "application" root node anymore. It should use component
 instead. Also they suggested the installation path changes from
 /usr/share/appdata to /usr/share/metainfo.
Forwarded: https://github.com/timschmidt/repsnapper/pull/126
Author: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Last-Update: 2018-11-01
Index: repsnapper-2.5a5/repsnapper.appdata.xml.in
===================================================================
--- repsnapper-2.5a5.orig/repsnapper.appdata.xml.in
+++ repsnapper-2.5a5/repsnapper.appdata.xml.in
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Copyright 2013 Richard Hughes <richard@hughsie.com> -->
-<application>
+<component type="desktop-application">
   <id type="desktop">repsnapper.desktop</id>
   <licence>CC0</licence>
   <name>Repsnapper</name>
@@ -18,4 +18,4 @@
     <screenshot type="default">http://reprap.org/mediawiki/images/6/6b/Repsnapper.png</screenshot>
   </screenshots>
   <url type="homepage">https://github.com/timschmidt/repsnapper</url>
-</application>
+</component>
Index: repsnapper-2.5a5/Makefile.am
===================================================================
--- repsnapper-2.5a5.orig/Makefile.am
+++ repsnapper-2.5a5/Makefile.am
@@ -34,7 +34,7 @@ win32extras_DATA = $(WIN32_FILES)
 
 # AppData support
 @INTLTOOL_XML_RULE@
-appdatadir = $(datadir)/appdata
+appdatadir = $(datadir)/metainfo
 appdata_DATA = $(appdata_in_files:.xml.in=.xml)
 appdata_in_files = repsnapper.appdata.xml.in
 EXTRA_DIST += $(appdata_in_files)