Hello community,

here is the log from the commit of package rpm for openSUSE:Factory checked in 
at 2016-05-26 23:52:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rpm (Old)
 and      /work/SRC/openSUSE:Factory/.rpm.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rpm"

Changes:
--------
rpm-python.changes: same change
--- /work/SRC/openSUSE:Factory/rpm/rpm.changes  2016-05-05 12:09:17.000000000 
+0200
+++ /work/SRC/openSUSE:Factory/.rpm.new/rpm.changes     2016-05-26 
23:52:39.000000000 +0200
@@ -1,0 +2,8 @@
+Thu May 19 10:44:52 UTC 2016 - [email protected]
+
+- Add rpm-findlang-inject-metainfo.patch: allow packagers to inject
+  a metainfo.xml file for the -lang package, which can then serve
+  AppStream based Software Centers to show -lang packages as
+  extensions to applications (boo#980583).
+
+-------------------------------------------------------------------

New:
----
  rpm-findlang-inject-metainfo.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
rpm-python.spec: same change
++++++ rpm.spec ++++++
--- /var/tmp/diff_new_pack.gqQgY6/_old  2016-05-26 23:52:41.000000000 +0200
+++ /var/tmp/diff_new_pack.gqQgY6/_new  2016-05-26 23:52:41.000000000 +0200
@@ -135,6 +135,7 @@
 Patch97:        rpm-4.12.0.1-lua-5.3.patch
 Patch98:        normalize_blocksize.diff
 Patch99:        enable-postin-scripts-error.diff
+Patch100:       rpm-findlang-inject-metainfo.patch
 Patch6464:      auto-config-update-aarch64-ppc64le.diff
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 #
@@ -229,6 +230,7 @@
 %patch -P 70 -P 71       -P 73 -P 74 -P 75 -P 76 -P 77 -P 78 -P 79
 %patch                               -P 85
 %patch             -P 92 -P 93 -P 94 -P 95 -P 96 -P 97 -P 98 -P 99
+%patch -P 100
 
 %ifarch aarch64 ppc64le
 %patch6464

++++++ rpm-findlang-inject-metainfo.patch ++++++
Index: scripts/find-lang.sh
===================================================================
--- scripts/find-lang.sh.orig
+++ scripts/find-lang.sh
@@ -11,6 +11,8 @@
 #in tact and are included with any redistribution of this file or any
 #work based on this file.
 
+# 2016-05-19 Dominique Leuenberger <[email protected]>
+#   * Add support to create a metainfo.xml for -lang packages
 # 2004-06-20 Arkadiusz Miƛkiewicz <[email protected]>
 #   * merge PLD changes, kde, all-name (mkochano,pascalek@PLD)
 # 1999-10-19 Artur Frysiak <[email protected]>
@@ -37,6 +39,7 @@ Additional options:
   --with-man           find localized man pages
   --all-name           match all package/domain names
   --without-mo         do not find locale files
+  --metainfo            create a metainfo.xml file for AppStream
 EOF
 exit 1
 }
@@ -66,6 +69,7 @@ ALL_NAME=#
 NO_ALL_NAME=
 ONLY_C=#
 NO_C=#
+METAINFO=0
 
 while test $# -gt 0 ; do
     case "${1}" in
@@ -114,6 +118,11 @@ while test $# -gt 0 ; do
                NO_C=
                shift
                ;;
+       --metainfo )
+               METAINFO=1
+               METADESKID=${2}
+               shift 2
+               ;;
        * )
                MO_NAME=${1}
                shift
@@ -278,6 +287,24 @@ if ! grep -q / $MO_NAME_NEW; then
        exit 1
 fi
 
+if [ "${METAINFO}" -gt 0 ]; then
+    # create a metainfo.xml file for METADESKID
+    mkdir -p ${TOP_DIR}/usr/share/appdata
+    cat > ${TOP_DIR}/usr/share/appdata/${METADESKID}-lang.metainfo.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2016 openSUSE - file is auto-generated -->
+<component type="addon">
+  <id>${METADESKID}-lang</id>
+  <extends>${METADESKID}.desktop</extends>
+  <name>Translations</name>
+  <summary>Translate the user interface</summary>
+  <metadata_license>CC0-1.0</metadata_license>
+  <updatecontact>https://bugzilla.opensuse.org</updatecontact>
+</component>
+EOF
+  echo /usr/share/appdata/${METADESKID}-lang.metainfo.xml >> $MO_NAME_NEW
+fi
+
 sort -u $MO_NAME_NEW >> $MO_NAME
 rm -f $MO_NAME_NEW
 

Reply via email to