gnome-software/gnome-software.spec

199 lines
8.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gnome-software
#
# Copyright (c) 2023 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/
#
Accepting request 1072609 from GNOME:Next - Update to version 44.0: + Fix missing separators in system updates dialog. + Updated translations. - Update to version 44.rc: + Fix a crash during install of a firmware update. + Fix notifications of a prepared update. + Fix cancellation of an update. + Update details page on app job start/end. + Fix a crash after cancelling of a single package update. + Updated translations. - Update to version 44.beta: + Add a preference for only showing freely-licensed apps + Improve design of Install/Uninstall buttons for app addons + Fix loading flatpak bundles if a runtime is missing + Improvements to the UI for ratings and reviews + Fix refreshing the details page after searching for an app + Improve choice of icons for apps where a themed icon is available + Improve performance of downloading remote icons significantly + Updated translations. - Changes from version 44.alpha: + Allow automatically removing unneeded runtimes + Show changelogs for rpm-ostree updates + Limit the maximum description length in context tiles + Support a less-prominent UI for regular updates for image-based OSs + Improvements to error notification display + Reduce reloading/refreshing of view when installing apps + Minor usability improvements to review lists and adding a review + Stop using libdnf in rpm-ostree backend + UI polish on app source chooser + Fix distro upgrades + Fix system-wide external AppStream support + UI polish on Incompatible Software dialog + Fix opening web apps + Fix notifying about available firmware updates + Improve scaling of Explore page on phones + Add a placeholder to search entry + Fix repo authentication dialog + Periodically refresh cached app icons + Improve labels and tooltips on Updates page + Annotate firmware updates with their release urgency + Adapt to GTK API deprecations + Use the OS logo for minor update rows for image-based OSs + Change ‘application’ to ‘app’ in translatable strings + Stop notifying about unprepared critical updates + Show the ‘Learn More’ link for larger updates of image-based OSs if provided + Add translations for more firmware device categories + Updated translations. - Bump gs_plugin_api define to 20 following upstream changes. OBS-URL: https://build.opensuse.org/request/show/1072609 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-software?expand=0&rev=248
2023-03-20 12:46:22 +00:00
%define gs_plugin_api 20
%bcond_with profiling
Name: gnome-software
Version: 45.2
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/45/%{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
# 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
# PATCH-FIX-UPSTREAM gnome-software-plugin-opensuse-distro-upgrade.patch glgo#GNOME/gnome-software!1557 sckang@suse.com -- plugins: add opensuse-distro-upgrade plugin
Patch2: gnome-software-plugin-opensuse-distro-upgrade.patch
# PATCH-FIX-UPSTREAM gnome-software-support-appstream-1_0.patch boo#1217047 -- Apply upstream changes to support appstream 1.0
Patch3: gnome-software-support-appstream-1_0.patch
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)
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
2022-03-21 10:15:56 +00:00
BuildRequires: pkgconfig(gtk4)
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(json-glib-1.0) >= 1.2.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
2022-03-21 10:15:56 +00:00
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.3.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 \
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
2022-03-21 10:15:56 +00:00
-D tests=false \
-D malcontent=true \
-D soup2=false \
-D sysprof=%{?with_profiling:enabled}%{!?with_profiling:disabled} \
%{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
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
2022-03-21 10:15:56 +00:00
# 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
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}/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}
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
2022-03-21 10:15:56 +00:00
%{_distconfdir}/xdg/autostart/org.gnome.Software.desktop
%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