1
0

- Update to version 46.4:

+ Correct broken formatting when using <code> in AppStream
    metadata
  + Updated translations.

OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-software?expand=0&rev=281
This commit is contained in:
Bjørn Lie 2024-08-12 12:32:58 +00:00 committed by Git OBS Bridge
commit 2765d49d3a
10 changed files with 4165 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

19
_service Normal file
View File

@ -0,0 +1,19 @@
<?xml version="1.0"?>
<services>
<service name="obs_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://gitlab.gnome.org/GNOME/gnome-software.git</param>
<param name="revision">46.4</param>
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
<param name="versionrewrite-pattern">(.*)\+0</param>
<param name="versionrewrite-replacement">\1</param>
<!-- <param name="changesgenerate">enable</param> -->
</service>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">zst</param>
</service>
<service name="set_version" mode="manual" />
</services>

View File

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

View File

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

View File

@ -0,0 +1,46 @@
Index: gnome-software-45.1/src/gs-updates-section.c
===================================================================
--- gnome-software-45.1.orig/src/gs-updates-section.c
+++ gnome-software-45.1/src/gs-updates-section.c
@@ -323,12 +323,18 @@ static void
_set_button_stack_visible_child (GsUpdatesSection *self,
const gchar *child_name)
{
- if (self->button_cancel != NULL)
+ if (self->button_cancel != NULL) {
gtk_widget_set_visible (self->button_cancel, g_strcmp0 (child_name, "cancel") == 0);
- if (self->button_download != NULL)
+ gtk_widget_set_sensitive (self->button_cancel, FALSE);
+ }
+ if (self->button_download != NULL) {
gtk_widget_set_visible (self->button_download, g_strcmp0 (child_name, "download") == 0);
- if (self->button_update != NULL)
+ gtk_widget_set_sensitive (self->button_download, FALSE);
+ }
+ if (self->button_update != NULL) {
gtk_widget_set_visible (self->button_update, g_strcmp0 (child_name, "update") == 0);
+ gtk_widget_set_sensitive (self->button_download, FALSE);
+ }
gtk_stack_set_visible_child_name (GTK_STACK (self->button_stack), child_name);
}
Index: gnome-software-45.1/src/gs-updates-section.ui
===================================================================
--- gnome-software-45.1.orig/src/gs-updates-section.ui
+++ gnome-software-45.1/src/gs-updates-section.ui
@@ -31,6 +31,7 @@
<object class="GsProgressButton" id="button_download">
<property name="use_underline">True</property>
<property name="label" translatable="yes">_Download</property>
+ <property name="tooltip-text" translatable="yes">Please use gpk-update-viewer to update the system</property>
<signal name="clicked" handler="_button_download_clicked_cb" swapped="yes"/>
<style>
<class name="suggested-action"/>
@@ -46,6 +47,7 @@
<property name="child">
<object class="GsProgressButton" id="button_update">
<property name="use-underline">True</property>
+ <property name="tooltip-text" translatable="yes">Please use gpk-update-viewer to update the system</property>
<signal name="clicked" handler="_button_update_all_clicked_cb" swapped="yes"/>
<style>
<class name="suggested-action"/>

View File

@ -0,0 +1,43 @@
Index: gnome-software-3.34.2/src/gs-application.c
===================================================================
--- gnome-software-3.34.2.orig/src/gs-application.c
+++ gnome-software-3.34.2/src/gs-application.c
@@ -511,20 +511,34 @@ set_mode_activated (GSimpleAction *actio
GsApplication *app = GS_APPLICATION (data);
const gchar *mode;
- gs_application_present_window (app, NULL);
-
- gs_shell_reset_state (app->shell);
-
mode = g_variant_get_string (parameter, NULL);
if (g_strcmp0 (mode, "updates") == 0) {
+ gboolean ret;
+ GError *error = NULL;
+
+ ret = g_spawn_command_line_async (BINDIR "/gpk-update-viewer",
+ &error);
+ if (!ret) {
+ g_warning ("Failure launching update viewer: %s",
+ error->message);
+ g_error_free (error);
+ }
gs_shell_set_mode (app->shell, GS_SHELL_MODE_UPDATES);
} else if (g_strcmp0 (mode, "installed") == 0) {
+ gs_application_present_window (app, NULL);
+ gs_shell_reset_state (app->shell);
gs_shell_set_mode (app->shell, GS_SHELL_MODE_INSTALLED);
} else if (g_strcmp0 (mode, "moderate") == 0) {
+ gs_application_present_window (app, NULL);
+ gs_shell_reset_state (app->shell);
gs_shell_set_mode (app->shell, GS_SHELL_MODE_MODERATE);
} else if (g_strcmp0 (mode, "overview") == 0) {
+ gs_application_present_window (app, NULL);
+ gs_shell_reset_state (app->shell);
gs_shell_set_mode (app->shell, GS_SHELL_MODE_OVERVIEW);
} else if (g_strcmp0 (mode, "updated") == 0) {
+ gs_application_present_window (app, NULL);
+ gs_shell_reset_state (app->shell);
gs_shell_set_mode (app->shell, GS_SHELL_MODE_UPDATES);
gs_shell_show_installed_updates (app->shell);
} else {

3821
gnome-software.changes Normal file

File diff suppressed because it is too large Load Diff

4
gnome-software.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: gnome-software
version: 46.4
mtime: 1722585340
commit: b68195fda2b4c28e64e87cc6ffbf66b117952d9c

202
gnome-software.spec Normal file
View File

@ -0,0 +1,202 @@
#
# spec file for package gnome-software
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define gs_plugin_api 20
%bcond_with profiling
Name: gnome-software
Version: 46.4
Release: 0
Summary: GNOME Software Store
License: GPL-2.0-or-later
Group: System/GUI/GNOME
URL: https://wiki.gnome.org/Apps/Software
Source0: %{name}-%{version}.tar.zst
%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
# PATCH-FIX-OPENSUSE gnome-software-disable-offline-update.patch bsc#944832 sckang@suse.com -- Disable offline update in SLE and openSUSE Leap
Patch1: gnome-software-disable-offline-update.patch
%endif
BuildRequires: gtk-doc
BuildRequires: meson >= 0.58.0
BuildRequires: pkgconfig
BuildRequires: suse-xsl-stylesheets
BuildRequires: pkgconfig(appstream) >= 0.14.0
BuildRequires: pkgconfig(flatpak) >= 0.6.12
BuildRequires: pkgconfig(fwupd) >= 1.0.3
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.32.0
BuildRequires: pkgconfig(gio-unix-2.0)
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(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-3.0)
BuildRequires: pkgconfig(malcontent-0) >= 0.5.0
BuildRequires: pkgconfig(ostree-1)
BuildRequires: pkgconfig(packagekit-glib2) >= 1.1.0
BuildRequires: pkgconfig(polkit-gobject-1)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(xmlb) >= 0.1.7
%if %{with profiling}
BuildRequires: pkgconfig(sysprof-capture-4)
%endif
# boo#1090042
Requires: fwupd
Requires: iso-codes
Recommends: %{name}-plugin-packagekit
Recommends: flatpak
# bsc#1178768
%if 0%{?sle_version}
Recommends: gnome-packagekit
%endif
%description
AppStore like management of Applications for your GNOME Desktop.
%package devel
Summary: Development files for the GNOME software store
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
%description devel
This subpackage contains the header files for developing
GNOME software store plugins.
%package plugin-packagekit
Summary: GNOME Software Store - PackageKit plugin
Group: System/GUI/GNOME
Requires: %{name} = %{version}
Requires: PackageKit
Requires: (libzypp-plugin-appdata if PackageKit-backend-zypp)
%description plugin-packagekit
This subpackage provides the packagekit plugin used by
the GNOME software store.
%lang_package
%prep
%autosetup -p1
%build
%meson \
-D tests=false \
-D malcontent=true \
-D soup2=false \
-D sysprof=%{?with_profiling:enabled}%{!?with_profiling:disabled} \
-D opensuse-distro-upgrade=true \
%{nil}
%meson_build
%install
%meson_install
%find_lang %{name}
# 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
%if !0%{?sle_version} || 0%{?sle_version} >= 160000
# 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
%endif
cat >> %{buildroot}%{_datadir}/glib-2.0/schemas/20_org.gnome.software-opensuse.gschema.override << FOE
[org.gnome.software]
official-repos = [ 'repo-oss', 'repo-update', 'repo-non-oss', 'download.opensuse.org-oss', 'download.opensuse.org-tumbleweed', 'download.opensuse.org-non-oss' ]
FOE
%files
%license COPYING
%doc NEWS README.md
%{_bindir}/%{name}
%{_datadir}/metainfo/org.gnome.Software.Plugin.Epiphany.metainfo.xml
%{_datadir}/metainfo/org.gnome.Software.Plugin.Flatpak.metainfo.xml
%{_datadir}/metainfo/org.gnome.Software.Plugin.Fwupd.metainfo.xml
%{_datadir}/metainfo/org.gnome.Software.metainfo.xml
%{_datadir}/applications/gnome-software-local-file-flatpak.desktop
%{_datadir}/applications/gnome-software-local-file-fwupd.desktop
%{_datadir}/applications/gnome-software-local-file-packagekit.desktop
%{_datadir}/applications/org.gnome.Software.desktop
%{_datadir}/bash-completion/completions/gnome-software
%{_datadir}/dbus-1/services/org.gnome.Software.service
%{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service
%{_datadir}/glib-2.0/schemas/org.gnome.software.gschema.xml
%{_datadir}/glib-2.0/schemas/20_org.gnome.software-opensuse.gschema.override
%dir %{_datadir}/gnome-shell
%dir %{_datadir}/gnome-shell/search-providers
%{_datadir}/gnome-shell/search-providers/org.gnome.Software-search-provider.ini
%{_datadir}/icons/hicolor/*/*/*.svg
%dir %{_libdir}/gnome-software
%{_libexecdir}/gnome-software-cmd
%{_libexecdir}/gnome-software-restarter
%{_mandir}/man1/%{name}.1%{?ext_man}
%if !0%{?sle_version} || 0%{?sle_version} >= 160000
%{_distconfdir}/xdg/autostart/org.gnome.Software.desktop
%else
%{_sysconfdir}/xdg/autostart/org.gnome.Software.desktop
%endif
%dir %{_libdir}/gnome-software/plugins-%{gs_plugin_api}/
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_dpkg.so
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_dummy.so
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_epiphany.so
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_fedora-langpacks.so
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_fedora-pkgdb-collections.so
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_flatpak.so
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_fwupd.so
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_generic-updates.so
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_hardcoded-blocklist.so
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_icons.so
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_malcontent.so
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_modalias.so
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_os-release.so
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_opensuse-distro-upgrade.so
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_provenance-license.so
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_provenance.so
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_repos.so
%{_libdir}/gnome-software/libgnomesoftware.so.%{gs_plugin_api}
%dir %{_datadir}/swcatalog/
%dir %{_datadir}/swcatalog/xml/
%{_datadir}/swcatalog/xml/gnome-pwa-list-foss.xml
%{_datadir}/swcatalog/xml/gnome-pwa-list-proprietary.xml
%{_datadir}/swcatalog/xml/org.gnome.Software.Curated.xml
%{_datadir}/swcatalog/xml/org.gnome.Software.Featured.xml
%files devel
%doc AUTHORS
%dir %{_includedir}/%{name}
%{_datadir}/gtk-doc/html/%{name}/
%dir %{_datadir}/doc/gnome-software
%{_includedir}/%{name}/*.h
%{_libdir}/pkgconfig/gnome-software.pc
%{_libdir}/gnome-software/libgnomesoftware.so
%files plugin-packagekit
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_packagekit.so
%{_libdir}/gnome-software/plugins-%{gs_plugin_api}/libgs_plugin_appstream.so
%files lang -f %{name}.lang
%changelog