public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/PackageKit] f44: Update to 1.4.0
@ 2026-09-11 23:12 Neal Gompa
  0 siblings, 0 replies; only message in thread
From: Neal Gompa @ 2026-09-11 23:12 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/PackageKit
            Branch : f44
            Commit : 209fcc7cb3f85713f8634ec87736d2d0c71a428e
            Author : Neal Gompa <ngompa@fedoraproject.org>
            Date   : 2026-09-11T19:09:28-04:00
            Stats  : +219/-212 in 10 file(s)
            URL    : https://src.fedoraproject.org/rpms/PackageKit/c/209fcc7cb3f85713f8634ec87736d2d0c71a428e?branch=f44

            Log:
            Update to 1.4.0

- Add patch to use RepoConfigOverride API to support repo config in /usr

---
diff --git a/.gitignore b/.gitignore
index 510a4ec..4008bb3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -89,3 +89,4 @@ PackageKit-0.6.7.tar.bz2
 /PackageKit-1.3.3.tar.xz
 /PackageKit-1.3.4.tar.xz
 /PackageKit-1.3.6.tar.xz
+/PackageKit-1.4.0.tar.xz

diff --git a/1014.patch b/1014.patch
new file mode 100644
index 0000000..458457b
--- /dev/null
+++ b/1014.patch
@@ -0,0 +1,111 @@
+From 7b110240538ccc8db0abacc8e995f243be73fa51 Mon Sep 17 00:00:00 2001
+From: Neal Gompa <neal@gompa.dev>
+Date: Fri, 11 Sep 2026 18:42:01 -0400
+Subject: [PATCH] dnf5: Use RepoConfigOverride API for repo configuration
+
+This ensures PackageKit-driven repository configuration changes
+work properly in environments where the configuration data is
+installed into /usr (and thus expected to be read-only).
+
+With this change, we now need to verify the existence of the repository
+to prevent blindly setting configuration for repositories that do not exist.
+
+Also, we now require at least DNF 5.4.3.0 for the new API.
+---
+ backends/dnf5/dnf5-backend-thread.cpp | 52 +++++++++++++++++++--------
+ backends/dnf5/meson.build             |  2 +-
+ 2 files changed, 39 insertions(+), 15 deletions(-)
+
+diff --git a/backends/dnf5/dnf5-backend-thread.cpp b/backends/dnf5/dnf5-backend-thread.cpp
+index 1f09ed94d..17c3940b8 100644
+--- a/backends/dnf5/dnf5-backend-thread.cpp
++++ b/backends/dnf5/dnf5-backend-thread.cpp
+@@ -26,8 +26,9 @@
+ #include <libdnf5/advisory/advisory_query.hpp>
+ #include <libdnf5/rpm/reldep_list.hpp>
+ #include <libdnf5/base/transaction.hpp>
++#include <libdnf5/conf/option_bool.hpp>
+ #include <libdnf5/repo/package_downloader.hpp>
+-#include <libdnf5/conf/config_parser.hpp>
++#include <libdnf5/repo/repo_config_override.hpp>
+ #include <pk-common-private.h>
+ #include <pk-update-detail.h>
+ #include <rpm/rpmlib.h>
+@@ -770,11 +771,30 @@ dnf5_repo_thread(PkBackendJob *job, GVariant *params, gpointer user_data)
+ 				g_variant_get(params, "(&s&s&s)", &repo_id, &parameter, &value);
+ 			}
+ 
+-			libdnf5::repo::RepoQuery query(*priv->base);
+-			query.filter_id(repo_id);
+-			for (auto repo : query) {
+-				if (g_strcmp0(parameter, "enabled") == 0) {
+-					bool enable = (g_strcmp0(value, "1") == 0 || g_strcmp0(value, "true") == 0);
++			// Validate that the repository ID exists
++			{
++				libdnf5::repo::RepoQuery query(*priv->base);
++				query.filter_id(repo_id);
++				if (query.empty()) {
++					pk_backend_job_error_code(
++						job,
++						PK_ERROR_ENUM_REPO_NOT_FOUND,
++						"Repo %s not found",
++						repo_id);
++					pk_backend_job_finished(job);
++					return;
++				}
++			}
++
++			// For "enabled" changes, check if the repo is already in the desired state
++			if (g_strcmp0(parameter, "enabled") == 0) {
++				libdnf5::OptionBool opt(false);
++				opt.set(std::string(value));
++				bool enable = opt.get_value();
++
++				libdnf5::repo::RepoQuery query(*priv->base);
++				query.filter_id(repo_id);
++				for (auto repo : query) {
+ 					if (repo->is_enabled() == enable) {
+ 						pk_backend_job_error_code(
+ 							job,
+@@ -783,16 +803,20 @@ dnf5_repo_thread(PkBackendJob *job, GVariant *params, gpointer user_data)
+ 						pk_backend_job_finished(job);
+ 						return;
+ 					}
+-					if (enable)
+-						repo->enable();
+-					else
+-						repo->disable();
+-					libdnf5::ConfigParser parser;
+-					parser.read(repo->get_repo_file_path());
+-					parser.set_value(repo_id, "enabled", value);
+-					parser.write(repo->get_repo_file_path(), false);
+ 				}
+ 			}
++
++			// Use RepoConfigOverride to persistently save the override
++			std::map<std::string, std::map<std::string, std::string>> overrides;
++			if (g_strcmp0(parameter, "enabled") == 0) {
++				libdnf5::OptionBool opt(false);
++				opt.set(std::string(value));
++				overrides[repo_id][parameter] = opt.get_value() ? "1" : "0";
++			} else {
++				overrides[repo_id][parameter] = value;
++			}
++			libdnf5::repo::RepoConfigOverride config_override(*priv->base);
++			config_override.save(overrides);
+ 			dnf5_setup_base(priv);
+ 		} else if (role == PK_ROLE_ENUM_REPO_REMOVE) {
+ 			gchar *repo_id = NULL;
+diff --git a/backends/dnf5/meson.build b/backends/dnf5/meson.build
+index 989db64e4..bc8d9ec8b 100644
+--- a/backends/dnf5/meson.build
++++ b/backends/dnf5/meson.build
+@@ -1,7 +1,7 @@
+ 
+ add_languages('cpp', native: false)
+ 
+-dnf5_dep = dependency('libdnf5', version: '>=5.2.17.0')
++dnf5_dep = dependency('libdnf5', version: '>=5.4.3.0')
+ libdnf5_version = dnf5_dep.version().split('.')
+ 
+ pk_backend_modules += shared_module(

diff --git a/PackageKit-0.3.8-Fedora-Vendor.conf.patch b/PackageKit-0.3.8-Fedora-Vendor.conf.patch
deleted file mode 100644
index 2df3d6a..0000000
--- a/PackageKit-0.3.8-Fedora-Vendor.conf.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-diff -urNp PackageKit-0.8.14.old/etc/Vendor.conf PackageKit-0.8.14/etc/Vendor.conf
---- PackageKit-0.8.14.old/etc/Vendor.conf	2013-12-02 15:14:19.644838900 +0000
-+++ PackageKit-0.8.14/etc/Vendor.conf	2013-12-02 15:15:26.956925038 +0000
-@@ -12,7 +12,7 @@
- # If the value is set to 'none' then no link is shown.
- #
- # default=https://www.freedesktop.org/software/PackageKit/pk-package-not-found.html
--DefaultUrl=https://www.freedesktop.org/software/PackageKit/pk-package-not-found.html
-+DefaultUrl=https://fedoraproject.org/wiki/PackageKit_Items_Not_Found#Missing_Package
- 
- # The URL which is shown to the user when a codec could not be found.
- # It should explain why certain codecs cannot be used, and perhaps show
-@@ -21,7 +21,7 @@ DefaultUrl=http://www.packagekit.org/pk-
- # If the value is set to 'none' then the value of DefaultUrl is used.
- #
- # default=none
--CodecUrl=none
-+CodecUrl=https://fedoraproject.org/wiki/PackageKit_Items_Not_Found#Missing_Codec
- 
- # The URL which is shown to the user when hardware drivers could not be found.
- # It should explain why some hardware is not supported, and links to futher
-@@ -30,7 +30,7 @@ CodecUrl=none
- # If the value is set to 'none' then the value of DefaultUrl is used.
- #
- # default=none
--HardwareUrl=none
-+HardwareUrl=https://fedoraproject.org/wiki/PackageKit_Items_Not_Found#Missing_Driver
- 
- # The URL which is shown to the user when fonts could not be found.
- # Alternatives should probably be suggested where possible.
-@@ -38,7 +38,7 @@ HardwareUrl=none
- # If the value is set to 'none' then the value of DefaultUrl is used.
- #
- # default=none
--FontUrl=none
-+FontUrl=https://fedoraproject.org/wiki/PackageKit_Items_Not_Found#Missing_Font
- 
- # The URL which is shown to the user when programs handing a mime tpye could not
- # be found. It should probably explain how to use wine if the program is a
-@@ -47,4 +47,4 @@ FontUrl=none
- # If the value is set to 'none' then the value of DefaultUrl is used.
- #
- # default=none
--MimeUrl=none
-+MimeUrl=https://fedoraproject.org/wiki/PackageKit_Items_Not_Found#Missing_MIME_Support

diff --git a/PackageKit-0.3.8-RHEL-Vendor.conf.patch b/PackageKit-0.3.8-RHEL-Vendor.conf.patch
deleted file mode 100644
index 9a4737d..0000000
--- a/PackageKit-0.3.8-RHEL-Vendor.conf.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-diff -urNp PackageKit-0.8.14.old/etc/Vendor.conf PackageKit-0.8.14/etc/Vendor.conf
---- PackageKit-0.8.14.old/etc/Vendor.conf	2013-12-02 15:14:19.644838900 +0000
-+++ PackageKit-0.8.14/etc/Vendor.conf	2013-12-02 15:15:26.956925038 +0000
-@@ -12,7 +12,7 @@
- # If the value is set to 'none' then no link is shown.
- #
- # default=https://www.freedesktop.org/software/PackageKit/pk-package-not-found.html
--DefaultUrl=https://www.freedesktop.org/software/PackageKit/pk-package-not-found.html
-+DefaultUrl=https://access.redhat.com/site/solutions/537113#Missing_Package
- 
- # The URL which is shown to the user when a codec could not be found.
- # It should explain why certain codecs cannot be used, and perhaps show
-@@ -21,7 +21,7 @@ DefaultUrl=http://www.packagekit.org/pk-
- # If the value is set to 'none' then the value of DefaultUrl is used.
- #
- # default=none
--CodecUrl=none
-+CodecUrl=https://access.redhat.com/site/solutions/537113#Missing_Codec
- 
- # The URL which is shown to the user when hardware drivers could not be found.
- # It should explain why some hardware is not supported, and links to futher
-@@ -30,7 +30,7 @@ CodecUrl=none
- # If the value is set to 'none' then the value of DefaultUrl is used.
- #
- # default=none
--HardwareUrl=none
-+HardwareUrl=https://access.redhat.com/site/solutions/537113#Missing_Driver
- 
- # The URL which is shown to the user when fonts could not be found.
- # Alternatives should probably be suggested where possible.
-@@ -38,7 +38,7 @@ HardwareUrl=none
- # If the value is set to 'none' then the value of DefaultUrl is used.
- #
- # default=none
--FontUrl=none
-+FontUrl=https://access.redhat.com/site/solutions/537113#Missing_Font
- 
- # The URL which is shown to the user when programs handing a mime tpye could not
- # be found. It should probably explain how to use wine if the program is a
-@@ -47,4 +47,4 @@ FontUrl=none
- # If the value is set to 'none' then the value of DefaultUrl is used.
- #
- # default=none
--MimeUrl=none
-+MimeUrl=https://access.redhat.com/site/solutions/537113#Missing_MIME_Support

diff --git a/PackageKit-1.4.0-Fedora-Vendor.conf.patch b/PackageKit-1.4.0-Fedora-Vendor.conf.patch
new file mode 100644
index 0000000..0762528
--- /dev/null
+++ b/PackageKit-1.4.0-Fedora-Vendor.conf.patch
@@ -0,0 +1,45 @@
+diff '--color=auto' -rupN PackageKit-1.4.0-orig/data/config/Vendor.conf PackageKit-1.4.0/data/config/Vendor.conf
+--- PackageKit-1.4.0-orig/data/config/Vendor.conf	2026-09-09 16:42:50.000000000 -0400
++++ PackageKit-1.4.0/data/config/Vendor.conf	2026-09-09 21:13:57.914657549 -0400
+@@ -12,7 +12,7 @@
+ # If the value is set to 'none' then no link is shown.
+ #
+ # default=https://www.freedesktop.org/software/PackageKit/pk-package-not-found.html
+-DefaultUrl=https://www.freedesktop.org/software/PackageKit/pk-package-not-found.html
++DefaultUrl=https://fedoraproject.org/wiki/PackageKit_Items_Not_Found#Missing_Package
+ 
+ # The URL which is shown to the user when a codec could not be found.
+ # It should explain why certain codecs cannot be used, and perhaps show
+@@ -21,7 +21,7 @@ DefaultUrl=https://www.freedesktop.org/s
+ # If the value is set to 'none' then the value of DefaultUrl is used.
+ #
+ # default=none
+-CodecUrl=none
++CodecUrl=https://fedoraproject.org/wiki/PackageKit_Items_Not_Found#Missing_Codec
+ 
+ # The URL which is shown to the user when hardware drivers could not be found.
+ # It should explain why some hardware is not supported, and links to futher
+@@ -30,7 +30,7 @@ CodecUrl=none
+ # If the value is set to 'none' then the value of DefaultUrl is used.
+ #
+ # default=none
+-HardwareUrl=none
++HardwareUrl=https://fedoraproject.org/wiki/PackageKit_Items_Not_Found#Missing_Driver
+ 
+ # The URL which is shown to the user when fonts could not be found.
+ # Alternatives should probably be suggested where possible.
+@@ -38,7 +38,7 @@ HardwareUrl=none
+ # If the value is set to 'none' then the value of DefaultUrl is used.
+ #
+ # default=none
+-FontUrl=none
++FontUrl=https://fedoraproject.org/wiki/PackageKit_Items_Not_Found#Missing_Font
+ 
+ # The URL which is shown to the user when programs handing a mime tpye could not
+ # be found. It should probably explain how to use wine if the program is a
+@@ -47,4 +47,4 @@ FontUrl=none
+ # If the value is set to 'none' then the value of DefaultUrl is used.
+ #
+ # default=none
+-MimeUrl=none
++MimeUrl=https://fedoraproject.org/wiki/PackageKit_Items_Not_Found#Missing_MIME_Support

diff --git a/PackageKit-1.4.0-RHEL-Vendor.conf.patch b/PackageKit-1.4.0-RHEL-Vendor.conf.patch
new file mode 100644
index 0000000..12f417f
--- /dev/null
+++ b/PackageKit-1.4.0-RHEL-Vendor.conf.patch
@@ -0,0 +1,45 @@
+diff '--color=auto' -rupN PackageKit-1.4.0-orig/data/config/Vendor.conf PackageKit-1.4.0/data/config/Vendor.conf
+--- PackageKit-1.4.0-orig/data/config/Vendor.conf	2026-09-09 16:42:50.000000000 -0400
++++ PackageKit-1.4.0/data/config/Vendor.conf	2026-09-09 21:15:37.169096237 -0400
+@@ -12,7 +12,7 @@
+ # If the value is set to 'none' then no link is shown.
+ #
+ # default=https://www.freedesktop.org/software/PackageKit/pk-package-not-found.html
+-DefaultUrl=https://www.freedesktop.org/software/PackageKit/pk-package-not-found.html
++DefaultUrl=https://access.redhat.com/site/solutions/537113#Missing_Package
+ 
+ # The URL which is shown to the user when a codec could not be found.
+ # It should explain why certain codecs cannot be used, and perhaps show
+@@ -21,7 +21,7 @@ DefaultUrl=https://www.freedesktop.org/s
+ # If the value is set to 'none' then the value of DefaultUrl is used.
+ #
+ # default=none
+-CodecUrl=none
++CodecUrl=https://access.redhat.com/site/solutions/537113#Missing_Codec
+ 
+ # The URL which is shown to the user when hardware drivers could not be found.
+ # It should explain why some hardware is not supported, and links to futher
+@@ -30,7 +30,7 @@ CodecUrl=none
+ # If the value is set to 'none' then the value of DefaultUrl is used.
+ #
+ # default=none
+-HardwareUrl=none
++HardwareUrl=https://access.redhat.com/site/solutions/537113#Missing_Driver
+ 
+ # The URL which is shown to the user when fonts could not be found.
+ # Alternatives should probably be suggested where possible.
+@@ -38,7 +38,7 @@ HardwareUrl=none
+ # If the value is set to 'none' then the value of DefaultUrl is used.
+ #
+ # default=none
+-FontUrl=none
++FontUrl=https://access.redhat.com/site/solutions/537113#Missing_Font
+ 
+ # The URL which is shown to the user when programs handing a mime tpye could not
+ # be found. It should probably explain how to use wine if the program is a
+@@ -47,4 +47,4 @@ FontUrl=none
+ # If the value is set to 'none' then the value of DefaultUrl is used.
+ #
+ # default=none
+-MimeUrl=none
++MimeUrl=https://access.redhat.com/site/solutions/537113#Missing_MIME_Support

diff --git a/PackageKit-alias-dnf-to-dnf5.patch b/PackageKit-alias-dnf-to-dnf5.patch
deleted file mode 100644
index 41976b1..0000000
--- a/PackageKit-alias-dnf-to-dnf5.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff --git a/src/pk-backend.c b/src/pk-backend.c
-index a87fb1a83..6c8c42073 100644
---- a/src/pk-backend.c
-+++ b/src/pk-backend.c
-@@ -473,12 +473,13 @@ pk_backend_load (PkBackend *backend, GError **error)
- 	if (backend_name == NULL)
- 		return FALSE;
- 
--	/* the "hawkey" and "hif" backends are superseded by "dnf" */
-+	/* the "hawkey", "hif", and "dnf" backends are superseded by "dnf5" */
- 	if (g_strcmp0 (backend_name, "hawkey") == 0 ||
- 	    g_strcmp0 (backend_name, "yum") == 0 ||
--	    g_strcmp0 (backend_name, "hif") == 0) {
-+	    g_strcmp0 (backend_name, "hif") == 0 ||
-+	    g_strcmp0 (backend_name, "dnf") == 0) {
- 		g_free (backend_name);
--		backend_name = g_strdup ("dnf");
-+		backend_name = g_strdup ("dnf5");
- 	}
- 
- 	g_debug ("Trying to load : %s", backend_name);

diff --git a/PackageKit.spec b/PackageKit.spec
index 9d52ea7..7c8fa73 100644
--- a/PackageKit.spec
+++ b/PackageKit.spec
@@ -1,14 +1,9 @@
 %global glib2_version 2.80
-%global libdnf_version 0.43.1
-%global libdnf5_version 5.2.17.0
-
-# For https://fedoraproject.org/wiki/Changes/PackageKit-DNF5
-%bcond dnf5_default %[0%{?fedora} >= 44 || 0%{?rhel} >= 11]
-%bcond dnf4 %[(0%{?rhel} && 0%{?rhel} < 11) || (0%{?fedora} && 0%{?fedora} < 44)]
+%global libdnf5_version 5.4.3.0
 
 Summary:   Package management service
 Name:      PackageKit
-Version:   1.3.6
+Version:   1.4.0
 Release:   %autorelease
 License:   GPL-2.0-or-later AND LGPL-2.1-or-later AND FSFAP
 URL:       http://www.freedesktop.org/software/PackageKit/
@@ -17,9 +12,9 @@ Source0:   http://www.freedesktop.org/software/PackageKit/releases/%{name}-%{ver
 # Backports from upstream (1~500)
 
 # Patches proposed upstream (501~1000)
-## Alias "dnf" to "dnf5"
-## Pulled out from https://github.com/PackageKit/PackageKit/pull/938
-Patch0501:    PackageKit-alias-dnf-to-dnf5.patch
+## Use RepoConfigOverride API to support repo config in /usr
+## Reference: https://fedoraproject.org/wiki/Changes/RelocateRpmRepoConfigsToUsr
+Patch0501:    https://github.com/PackageKit/PackageKit/pull/1014.patch
 
 # Downstream only patches (1001+)
 ## https://pagure.io/fedora-workstation/issue/233
@@ -27,10 +22,10 @@ Patch0501:    PackageKit-alias-dnf-to-dnf5.patch
 Patch1001:    package-inst+rem-sysupgrade-password-prompt.patch
 
 ## Fedora patches (2001~3000)
-Patch2001:    PackageKit-0.3.8-Fedora-Vendor.conf.patch
+Patch2001:    PackageKit-1.4.0-Fedora-Vendor.conf.patch
 
 ## RHEL patches (3001~4000)
-Patch3001:    PackageKit-0.3.8-RHEL-Vendor.conf.patch
+Patch3001:    PackageKit-1.4.0-RHEL-Vendor.conf.patch
 
 BuildRequires: docbook-utils
 BuildRequires: docbook5-schemas
@@ -59,12 +54,6 @@ BuildRequires: pkgconfig(sqlite3)
 BuildRequires: systemd
 BuildRequires: python3-devel
 
-%if %{with dnf4}
-BuildRequires: pkgconfig(appstream)
-BuildRequires: pkgconfig(libdnf) >= %{libdnf_version}
-Requires: libdnf%{?_isa} >= %{libdnf_version}
-%endif
-
 # Validate metainfo
 BuildRequires: libappstream-glib
 
@@ -94,14 +83,11 @@ Obsoletes: PackageKit-backend-devel < 0.9.6
 # Udev no longer provides this functionality
 Obsoletes: PackageKit-device-rebind < 0.8.13-2
 
-%if ! %{with dnf4}
 # No longer needed since we don't support DNF4
 Obsoletes: dnf4-plugin-notify-PackageKit < %{version}-%{release}
 # No longer needed since we don't support DNF4+DNF5
 Obsoletes: libdnf5-plugin-notify-PackageKit < %{version}-%{release}
-%endif
 
-%if %{with dnf5_default}
 Requires: libdnf5%{?_isa} >= %{libdnf5_version}
 # Ensure AppStream repodata is processed
 Requires: libdnf5-plugin-appstream%{?_isa}
@@ -111,51 +97,12 @@ Provides: PackageKit-backend-dnf5 = %{version}-%{release}
 Provides: PackageKit-backend-dnf5%{?_isa} = %{version}-%{release}
 Provides: PackageKit-dnf5 = %{version}-%{release}
 Provides: PackageKit-dnf5%{?_isa} = %{version}-%{release}
-%endif
 
 %description
 PackageKit is a D-Bus abstraction layer that allows the session user
 to manage packages in a secure way using a cross-distro,
 cross-architecture API.
 
-%if ! %{with dnf5_default}
-%package backend-dnf5
-Summary: DNF5 backend for PackageKit
-%dnl Supplements: (libdnf5%{?_isa} and PackageKit%{?_isa})
-Provides: %{name}-dnf5 = %{version}-%{release}
-Provides: %{name}-dnf5%{?_isa} = %{version}-%{release}
-Requires: %{name}%{?_isa} = %{version}-%{release}
-Requires: libdnf5%{?_isa} >= %{libdnf5_version}
-# Ensure AppStream repodata is processed
-Requires: libdnf5-plugin-appstream%{?_isa}
-
-%description backend-dnf5
-PackageKit is a D-Bus abstraction layer that allows the session user
-to manage packages in a secure way using a cross-distro,
-cross-architecture API.
-
-This package provides the DNF5 backend for PackageKit.
-%endif
-
-%if %{with dnf4}
-%package -n dnf4-plugin-notify-PackageKit
-Summary: DNF4 plugin to notify PackageKit of DNF4 actions
-Supplements: (dnf4 and PackageKit)
-Conflicts: %{name} < 1.3.1-3
-BuildArch: noarch
-
-%description -n dnf4-plugin-notify-PackageKit
-DNF4 plugin to notify PackageKit of DNF4 actions.
-
-%package -n libdnf5-plugin-notify-PackageKit
-Summary: DNF5 plugin to notify PackageKit of DNF5 actions
-Supplements: (libdnf5%{?_isa} and PackageKit%{?_isa})
-Conflicts: %{name} < 1.3.1-2
-
-%description -n libdnf5-plugin-notify-PackageKit
-DNF5 plugin to notify PackageKit of DNF5 actions.
-%endif
-
 %package glib
 Summary: GLib libraries for accessing PackageKit
 Requires: dbus >= 1.1.1
@@ -236,19 +183,12 @@ using PackageKit.
 %autopatch -p1 -m 3001 -M 4000
 %endif
 
-# Revert dnf->dnf5 for <F43 and <EL11
-%if ! %{with dnf5_default}
-%patch -p1 -P 501 -R
-%endif
-
-
 %conf
 %meson \
         -Dgtk_doc=true \
         -Dpython_backend=false \
-        -Dpackaging_backend=%{?with_dnf4:dnf,}dnf5 \
-        -Dlegacy_tools=true \
-        -Dlocal_checkout=false
+        -Dpackaging_backend=dnf5 \
+        -Dlegacy_tools=true
 
 %build
 %meson_build
@@ -321,31 +261,9 @@ systemctl disable packagekit-offline-update.service > /dev/null 2>&1 || :
 %{_unitdir}/packagekit.service
 %{_unitdir}/system-update.target.wants/
 %{_libexecdir}/pk-*offline-update
-%if %{with dnf4}
-%{_libexecdir}/packagekit-dnf-refresh-repo
-%{_libdir}/packagekit-backend/libpk_backend_dnf.so
-%endif
-%if %{with dnf5_default}
 %{_libdir}/packagekit-backend/libpk_backend_dnf5.so
 %{_libdir}/rpm-plugins/notify_packagekit.so
 %{_rpmmacrodir}/macros.transaction_notify_packagekit
-%endif
-
-%if ! %{with dnf5_default}
-%files backend-dnf5
-%{_libdir}/packagekit-backend/libpk_backend_dnf5.so
-%{_libdir}/rpm-plugins/notify_packagekit.so
-%{_rpmmacrodir}/macros.transaction_notify_packagekit
-%endif
-
-%if %{with dnf4}
-%files -n dnf4-plugin-notify-PackageKit
-%pycached %{python3_sitelib}/dnf-plugins/notify_packagekit.py
-
-%files -n libdnf5-plugin-notify-PackageKit
-%{_libdir}/libdnf5/plugins/notify_packagekit.so
-%config(noreplace) %{_sysconfdir}/dnf/libdnf5-plugins/notify_packagekit.conf
-%endif
 
 %files glib
 %{_libdir}/*packagekit-glib2.so.*
@@ -375,9 +293,7 @@ systemctl disable packagekit-offline-update.service > /dev/null 2>&1 || :
 %files glib-devel
 %{_libdir}/libpackagekit-glib2.so
 %{_libdir}/pkgconfig/packagekit-glib2.pc
-%dir %{_includedir}/PackageKit
-%dir %{_includedir}/PackageKit/packagekit-glib2
-%{_includedir}/PackageKit/packagekit-glib*/*.h
+%{_includedir}/packagekit/
 %{_datadir}/gir-1.0/PackageKitGlib-1.0.gir
 %{_datadir}/gtk-doc/html/PackageKit
 %{_datadir}/vala/vapi/packagekit-glib2.vapi

diff --git a/package-inst+rem-sysupgrade-password-prompt.patch b/package-inst+rem-sysupgrade-password-prompt.patch
index 746475c..55545d8 100644
--- a/package-inst+rem-sysupgrade-password-prompt.patch
+++ b/package-inst+rem-sysupgrade-password-prompt.patch
@@ -1,4 +1,4 @@
-From 504da526da41d7f891a3a4a878c601d1bfb77b96 Mon Sep 17 00:00:00 2001
+From 5de0c4832a37acfd59ba5f954d3e1661fc42f51a Mon Sep 17 00:00:00 2001
 From: Neal Gompa <ngompa@fedoraproject.org>
 Date: Fri, 30 Jan 2026 07:17:03 +0100
 Subject: [PATCH] Allow admins to do system software management without
@@ -25,13 +25,13 @@ updates.
 
 https://pagure.io/fedora-workstation/issue/233
 ---
- policy/org.freedesktop.packagekit.rules | 3 +++
+ data/policy/org.freedesktop.packagekit.rules | 3 +++
  1 file changed, 3 insertions(+)
 
-diff --git a/policy/org.freedesktop.packagekit.rules b/policy/org.freedesktop.packagekit.rules
+diff --git a/data/policy/org.freedesktop.packagekit.rules b/data/policy/org.freedesktop.packagekit.rules
 index fd8374fb4..246dc16de 100644
---- a/policy/org.freedesktop.packagekit.rules
-+++ b/policy/org.freedesktop.packagekit.rules
+--- a/data/policy/org.freedesktop.packagekit.rules
++++ b/data/policy/org.freedesktop.packagekit.rules
 @@ -3,6 +3,9 @@
  
  polkit.addRule(function(action, subject) {
@@ -43,5 +43,5 @@ index fd8374fb4..246dc16de 100644
           action.id == "org.freedesktop.packagekit.trigger-offline-upgrade") &&
           subject.active == true && subject.local == true &&
 -- 
-2.51.1
+2.55.0
 

diff --git a/sources b/sources
index f71f4c9..46cd844 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (PackageKit-1.3.6.tar.xz) = 5c4a9f9647be13348e7abfd758a3e8e26b75d33e563fea2cc85817c4d70a7afe36fd725825a23ed188cce2594c8da454504df25d777a28e170e5969bfe2cc4b2
+SHA512 (PackageKit-1.4.0.tar.xz) = 8ce37bf1f350f1f74085960e7a7f9fa8e8d7dc6e928f14d42c6b71e349da92867e89b2da78db56241a99e230b175acd0a12f0e4892031ba4f635f70e301a49aa

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-11 23:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 23:12 [rpms/PackageKit] f44: Update to 1.4.0 Neal Gompa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox