Accepting request 758160 from home:dimstar:branches:GNOME:Factory

- Update to version 0.7.16:
  * Allow parsing desktop files using as_app_parse_data()
  * Update list of allowed metadata licences
  * Log expected and actual screenshot dimensions when failing
  * docs: remove SQLite dependency
  * Offset future checks by UTC+14
  * Do not preserve restrictive permissions when installing AppStream files
  * Support loading YAML from as_store_from_bytes
  * Do not allow forward or backwards slashes in <id> values
  * Do not require <translation> for validation unless strict
  * Do not require <update_contact> for validation unless strict
  * add UPL short name to SPDX conversion
  * Update the SPDX license list to v3.5
  * as-compose: Remove relative path from icon names
  * Allow non-desktop components to be extended
  * Only require <release> for validate, but not validate-relax
  * Allow building on Windows
  * Modernize the validation requirements
- Drop as-glib-fix-broken-appstream-files-permission.patch: fixed
  upstream.

OBS-URL: https://build.opensuse.org/request/show/758160
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/appstream-glib?expand=0&rev=138
This commit is contained in:
Bjørn Lie 2019-12-19 19:34:10 +00:00 committed by Git OBS Bridge
parent 45d2d6a1b8
commit 6c2aa43f9f
8 changed files with 34 additions and 54 deletions

View File

@ -6,7 +6,7 @@
<param name="versionrewrite-pattern">appstream_glib_(\d+)_(\d+)_(\d+)</param> <param name="versionrewrite-pattern">appstream_glib_(\d+)_(\d+)_(\d+)</param>
<param name="versionrewrite-replacement">\1.\2.\3</param> <param name="versionrewrite-replacement">\1.\2.\3</param>
<param name="changesgenerate">enable</param> <param name="changesgenerate">enable</param>
<param name="revision">refs/tags/appstream_glib_0_7_15</param> <param name="revision">refs/tags/appstream_glib_0_7_16</param>
</service> </service>
<service name="tar" mode="buildtime"/> <service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime"> <service name="recompress" mode="buildtime">

View File

@ -1,4 +1,4 @@
<servicedata> <servicedata>
<service name="tar_scm"> <service name="tar_scm">
<param name="url">https://github.com/hughsie/appstream-glib.git</param> <param name="url">https://github.com/hughsie/appstream-glib.git</param>
<param name="changesrevision">0ab28ff96b74eb72ffe3c3a53026aee82cf31782</param></service></servicedata> <param name="changesrevision">230e2da082d9754858330c3e262a9d44f816def1</param></service></servicedata>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7093e4298a412d4671411474b23c96517f9eef3f95300d40a89baf3ceb228945
size 4295692

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:daf92fc5d013098cd0e797aae8000552d4fbdf18e6c941b26e50bded2b43f09a
size 4317196

View File

@ -1,3 +1,27 @@
-------------------------------------------------------------------
Thu Dec 19 12:07:58 UTC 2019 - dimstar@opensuse.org
- Update to version 0.7.16:
* Allow parsing desktop files using as_app_parse_data()
* Update list of allowed metadata licences
* Log expected and actual screenshot dimensions when failing
* docs: remove SQLite dependency
* Offset future checks by UTC+14
* Do not preserve restrictive permissions when installing AppStream files
* Support loading YAML from as_store_from_bytes
* Do not allow forward or backwards slashes in <id> values
* Do not require <translation> for validation unless strict
* Do not require <update_contact> for validation unless strict
* add UPL short name to SPDX conversion
* Update the SPDX license list to v3.5
* as-compose: Remove relative path from icon names
* Allow non-desktop components to be extended
* Only require <release> for validate, but not validate-relax
* Allow building on Windows
* Modernize the validation requirements
- Drop as-glib-fix-broken-appstream-files-permission.patch: fixed
upstream.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 15 11:38:39 UTC 2019 - bjorn.lie@gmail.com Thu Aug 15 11:38:39 UTC 2019 - bjorn.lie@gmail.com

View File

@ -1,5 +1,5 @@
name: appstream-glib name: appstream-glib
version: 0.7.15 version: 0.7.16
mtime: 1551350914 mtime: 1569866536
commit: 0ab28ff96b74eb72ffe3c3a53026aee82cf31782 commit: 230e2da082d9754858330c3e262a9d44f816def1

View File

@ -1,7 +1,7 @@
# #
# spec file for package appstream-glib # spec file for package appstream-glib
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LLC
# Copyright (c) 2014 Dominique Leuenberger, Amsterdam, The Netherlands # Copyright (c) 2014 Dominique Leuenberger, Amsterdam, The Netherlands
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@ -18,7 +18,7 @@
Name: appstream-glib Name: appstream-glib
Version: 0.7.15 Version: 0.7.16
Release: 0 Release: 0
Summary: AppStream Abstraction Library Summary: AppStream Abstraction Library
License: LGPL-2.1-or-later AND GPL-2.0-or-later License: LGPL-2.1-or-later AND GPL-2.0-or-later
@ -26,8 +26,6 @@ Group: System/Libraries
URL: http://people.freedesktop.org/~hughsient/appstream-glib/ URL: http://people.freedesktop.org/~hughsient/appstream-glib/
Source0: %{name}-%{version}.tar.xz Source0: %{name}-%{version}.tar.xz
Source1: openSUSE-appstream-process Source1: openSUSE-appstream-process
#PATCH-FIX-UPSTREAM as-glib-fix-broken-appstream-files-permission.patch gh#hughsie/appstream-glib#312 sckang@suse.com -- Do not preserve restrictive permissions when installing AppStream files.
Patch0: as-glib-fix-broken-appstream-files-permission.patch
BuildRequires: docbook-xsl-stylesheets BuildRequires: docbook-xsl-stylesheets
BuildRequires: gcab >= 0.6 BuildRequires: gcab >= 0.6
BuildRequires: gobject-introspection-devel BuildRequires: gobject-introspection-devel

View File

@ -1,42 +0,0 @@
From cce510312389efbe3819de0fa53f9004e6e04399 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard@hughsie.com>
Date: Mon, 5 Aug 2019 09:39:29 +0100
Subject: [PATCH] Do not preserve restrictive permissions when installing
AppStream files
Fixes https://github.com/hughsie/appstream-glib/issues/312
---
libappstream-glib/as-store.c | 2 +-
libappstream-glib/as-utils.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/libappstream-glib/as-store.c b/libappstream-glib/as-store.c
index e435340..3e6502a 100644
--- a/libappstream-glib/as-store.c
+++ b/libappstream-glib/as-store.c
@@ -2561,7 +2561,7 @@ as_store_to_file (AsStore *store,
if (!g_file_replace_contents (file, xml->str, xml->len,
NULL,
FALSE,
- G_FILE_CREATE_NONE,
+ G_FILE_CREATE_REPLACE_DESTINATION,
NULL,
cancellable,
&error_local)) {
diff --git a/libappstream-glib/as-utils.c b/libappstream-glib/as-utils.c
index 366bff9..10da362 100644
--- a/libappstream-glib/as-utils.c
+++ b/libappstream-glib/as-utils.c
@@ -1182,8 +1182,7 @@ as_utils_install_xml (const gchar *filename,
/* actually copy file */
file_dest = g_file_new_for_path (path_dest);
if (!g_file_copy (file_src, file_dest,
- G_FILE_COPY_OVERWRITE |
- G_FILE_COPY_TARGET_DEFAULT_PERMS,
+ G_FILE_COPY_OVERWRITE,
NULL, NULL, NULL, error))
return FALSE;
--
2.21.0