1
0

Accepting request 963528 from GNOME:Next

- Update to version 42.0:
  + Various fixes related to changed threading model.
  + Added several appstream-related fixes.
  + Updated translations.
- Update to version 42.rc:
  + Cancel ongoing update downloads when system power is low
  + Numerous small user interface fixes and tweaks
  + Prioritize full matches in search results
  + Improvements in dark mode
  + Fix disabling flatpak remotes from the ‘Software Repositories’
    dialog
  + Threading and performance improvements which should reduce the
    number of user interface freezes
  + Update some icons
  + Check for updates when moving from a metered to a non-metered
    network connection
  + Updated translations.
- Update to version 42.beta:
  + Allow --verbose to be enabled at runtime
  + Condense the rows in the age rating context dialog
  + Update the UI for ratings and reviews of apps
  + Improve the appearance of the category page loading screen
  + Drop the first run dialog
  + Improvements to dark theming
  + Support viewing a specific metainfo file using --show-metainfo
  + Several more threading improvements
  + Icon updates
  + Drop the hardcoded-popular plugin in favour of an appstream
    file
  + The background image for upgrades is now looked for using
    several well-known (and distribution-specific) names in
    ${DATADIR}/gnome-software/backgrounds, and the previous
    Fedora-specific default background image is no longer
    distributed. Similarly, the upgrade-background-uri GSettings
    key has been removed. Distributions may need to update how they
    ship background images. See doc/vendor-customisation.md.
  + Updated translations.
- Move autostart .desktop to distconfdir.
- Update to version 42.alpha:
  + Various UI parts updated
  + Support more markup in the application description
  + Ask about package signature with PackageKit on signing issue
  + Show better System Update progress
- Drop gnome-software-flatpak-refresh-no-interaction.patch: Fixed
  upstream.
- Add pkgconfig(gtk4) and  pkgconfig(libadwaita-1) BuildRequires
  following upstream changes.
- Drop pkgconfig(gtk-3.0) BuildRequires following upstream changes.
- Add disabled pkgconfig(libsoup-3.0) BuildRequires: We can not yet
  enable this, as our flatpak is still built with libsoup-2.4.
  Following this, pass soup2=true to meson to force the use of old
  libsoup.
- Bump gs_plugin_api define to 17 following upstream changes.

OBS-URL: https://build.opensuse.org/request/show/963528
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-software?expand=0&rev=212
This commit is contained in:
Bjørn Lie 2022-03-21 10:15:56 +00:00 committed by Git OBS Bridge
parent 94ea12b80e
commit 7fd8ed6192
5 changed files with 88 additions and 59 deletions

View File

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

View File

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

View File

@ -1,44 +0,0 @@
From 65314257a6166fff7f8c80725a7aa3e52be29ad2 Mon Sep 17 00:00:00 2001
From: Jonathan Kang <jonathankang@gnome.org>
Date: Fri, 24 Dec 2021 15:13:49 +0800
Subject: [PATCH] flatpak: Set no-interaction correctly when refreshing
A GS_PLUGIN_FLAGS_INTERACTIVE flags will be set based on whether the
plugin action should be interactive or not. Set no-interaction value
of FlatpakInstallation according to that flag.
This fixes the issue where an polkit authentication dialog pops up
when GNOME Software is running in the background and trying to check
updates, if the polkit rules for
org.freedesktop.Flatpak.appstream-update requires authorisation.
https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1561
---
plugins/flatpak/gs-plugin-flatpak.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/plugins/flatpak/gs-plugin-flatpak.c b/plugins/flatpak/gs-plugin-flatpak.c
index 29ba2970..4784282c 100644
--- a/plugins/flatpak/gs-plugin-flatpak.c
+++ b/plugins/flatpak/gs-plugin-flatpak.c
@@ -269,7 +269,17 @@ gs_plugin_refresh (GsPlugin *plugin,
{
GsPluginData *priv = gs_plugin_get_data (plugin);
for (guint i = 0; i < priv->flatpaks->len; i++) {
+ FlatpakInstallation *installation;
GsFlatpak *flatpak = g_ptr_array_index (priv->flatpaks, i);
+ g_autoptr(FlatpakInstallation) installation_clone = NULL;
+
+ installation = gs_flatpak_get_installation (flatpak);
+ installation_clone = g_object_ref (installation);
+
+ /* Let flatpak know if it is a background operation */
+ flatpak_installation_set_no_interaction (installation_clone,
+ !gs_plugin_has_flags (plugin, GS_PLUGIN_FLAGS_INTERACTIVE));
+
if (!gs_flatpak_refresh (flatpak, cache_age, cancellable, error))
return FALSE;
}
--
2.33.1

View File

@ -1,3 +1,72 @@
-------------------------------------------------------------------
Fri Mar 18 09:57:41 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 42.0:
+ Various fixes related to changed threading model.
+ Added several appstream-related fixes.
+ Updated translations.
-------------------------------------------------------------------
Fri Mar 18 09:56:40 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 42.rc:
+ Cancel ongoing update downloads when system power is low
+ Numerous small user interface fixes and tweaks
+ Prioritize full matches in search results
+ Improvements in dark mode
+ Fix disabling flatpak remotes from the Software Repositories
dialog
+ Threading and performance improvements which should reduce the
number of user interface freezes
+ Update some icons
+ Check for updates when moving from a metered to a non-metered
network connection
+ Updated translations.
-------------------------------------------------------------------
Fri Mar 18 09:56:39 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 42.beta:
+ Allow --verbose to be enabled at runtime
+ Condense the rows in the age rating context dialog
+ Update the UI for ratings and reviews of apps
+ Improve the appearance of the category page loading screen
+ Drop the first run dialog
+ Improvements to dark theming
+ Support viewing a specific metainfo file using --show-metainfo
+ Several more threading improvements
+ Icon updates
+ Drop the hardcoded-popular plugin in favour of an appstream
file
+ The background image for upgrades is now looked for using
several well-known (and distribution-specific) names in
${DATADIR}/gnome-software/backgrounds, and the previous
Fedora-specific default background image is no longer
distributed. Similarly, the upgrade-background-uri GSettings
key has been removed. Distributions may need to update how they
ship background images. See doc/vendor-customisation.md.
+ Updated translations.
- Move autostart .desktop to distconfdir.
-------------------------------------------------------------------
Fri Mar 18 09:56:38 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 42.alpha:
+ Various UI parts updated
+ Support more markup in the application description
+ Ask about package signature with PackageKit on signing issue
+ Show better System Update progress
- Drop gnome-software-flatpak-refresh-no-interaction.patch: Fixed
upstream.
- Add pkgconfig(gtk4) and pkgconfig(libadwaita-1) BuildRequires
following upstream changes.
- Drop pkgconfig(gtk-3.0) BuildRequires following upstream changes.
- Add disabled pkgconfig(libsoup-3.0) BuildRequires: We can not yet
enable this, as our flatpak is still built with libsoup-2.4.
Following this, pass soup2=true to meson to force the use of old
libsoup.
- Bump gs_plugin_api define to 17 following upstream changes.
-------------------------------------------------------------------
Fri Mar 18 09:56:37 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -16,22 +16,20 @@
#
%define gs_plugin_api 16
%define gs_plugin_api 17
Name: gnome-software
Version: 41.5
Version: 42.0
Release: 0
Summary: GNOME Software Store
License: GPL-2.0-or-later
Group: System/GUI/GNOME
URL: https://wiki.gnome.org/Apps/Software
Source0: https://download.gnome.org/sources/gnome-software/41/%{name}-%{version}.tar.xz
Source0: https://download.gnome.org/sources/gnome-software/42/%{name}-%{version}.tar.xz
%if 0%{?sle_version}
# PATCH-FIX-OPENSUSE gnome-software-launch-gpk-update-viewer-for-updates.patch bsc#1077332 boo#1090042 sckang@suse.com -- Don't launch gnome-software when clicking the updates notification. Launch gpk-update-viewer instead.
Patch0: gnome-software-launch-gpk-update-viewer-for-updates.patch
%endif
# PATCH-FIX-UPSTREAM gnome-software-flatpak-refresh-no-interaction.patch bsc#1123722 glgo#GNOME/gnome-software!1145 sckang@suse.com -- flatpak: Set no-interaction correctly when refreshing
Patch1: gnome-software-flatpak-refresh-no-interaction.patch
BuildRequires: gtk-doc
BuildRequires: meson >= 0.47.0
@ -46,12 +44,14 @@ BuildRequires: pkgconfig(gmodule-2.0)
BuildRequires: pkgconfig(gsettings-desktop-schemas) >= 3.11.5
BuildRequires: pkgconfig(gsettings-desktop-schemas) >= 3.18.0
BuildRequires: pkgconfig(gspell-1)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.20.0
BuildRequires: pkgconfig(gtk4)
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(json-glib-1.0) >= 1.2.0
BuildRequires: pkgconfig(libadwaita-1)
BuildRequires: pkgconfig(libhandy-1) >= 1.2.0
BuildRequires: pkgconfig(libsecret-1)
BuildRequires: pkgconfig(libsoup-2.4) >= 2.52.0
#BuildRequires: pkgconfig(libsoup-3.0)
BuildRequires: pkgconfig(malcontent-0) >= 0.3.0
BuildRequires: pkgconfig(ostree-1)
BuildRequires: pkgconfig(packagekit-glib2) >= 1.1.0
@ -90,9 +90,10 @@ GNOME software store plugins.
%build
%meson \
-Dtests=false \
-Dvalgrind=false \
-Dmalcontent=true \
-D tests=false \
-D valgrind=false \
-D malcontent=true \
-D soup2=true \
%{nil}
%meson_build
@ -102,15 +103,18 @@ GNOME software store plugins.
# Remove any piece of doc that ends up in non-standard locations and use the doc macro instead
rm %{buildroot}%{_datadir}/doc/%{name}/README.md
# Move autostart file to /usr/etc
mkdir -p %{buildroot}%{_distconfdir}/xdg/autostart
mv %{buildroot}%{_sysconfdir}/xdg/autostart/org.gnome.Software.desktop %{buildroot}%{_distconfdir}/xdg/autostart/org.gnome.Software.desktop
%files
%license COPYING
%doc NEWS README.md
%{_bindir}/%{name}
%{_datadir}/%{name}/
%dir %{_datadir}/app-info
%dir %{_datadir}/app-info/xmls
%{_datadir}/app-info/xmls/org.gnome.Software.Featured.xml
%{_datadir}/app-info/xmls/org.gnome.Software.Popular.xml
%{_datadir}/metainfo/org.gnome.Software.appdata.xml
%{_datadir}/metainfo/org.gnome.Software.Plugin.Flatpak.metainfo.xml
%{_datadir}/metainfo/org.gnome.Software.Plugin.Fwupd.metainfo.xml
@ -127,11 +131,11 @@ rm %{buildroot}%{_datadir}/doc/%{name}/README.md
%dir %{_libdir}/gnome-software/plugins-%{gs_plugin_api}
%{_libdir}/gnome-software/libgnomesoftware.so.%{gs_plugin_api}
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/*.so
#{_libexecdir}/gnome-software-service
%{_libexecdir}/gnome-software-cmd
%{_libexecdir}/gnome-software-restarter
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_sysconfdir}/xdg/autostart/gnome-software-service.desktop
#%%{_sysconfdir}/xdg/autostart/org.gnome.Software.desktop
%{_distconfdir}/xdg/autostart/org.gnome.Software.desktop
%files devel
%doc AUTHORS