forked from pool/PackageKit
- Add PackageKit-zypp-dont-install-updateCandidateObj.patch:
zypp: Mark the correct packages to-be-installed (bsc#1227389, gh#PackageKit/PackageKit/commit/209aa6295). OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/PackageKit?expand=0&rev=457
This commit is contained in:
commit
e6fc2371b9
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
PackageKit-1.2.8.tar.xz
Normal file
3
PackageKit-1.2.8.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d834250a0f121483027db2cfd93e8b2cba8dc48ff854395bfd88aa9511898be4
|
||||
size 2790440
|
16
PackageKit-1.2.8.tar.xz.asc
Normal file
16
PackageKit-1.2.8.tar.xz.asc
Normal file
@ -0,0 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCAAdFiEE0zo/DKFrCsxRpgc4SUyKX79N7OsFAmVL8fAACgkQSUyKX79N
|
||||
7OuBgw/9HMzZHR28uRPBXsCFvuizNp/BNmJm0rsJp8bG7vUOydz1MlEjwf+GIxXy
|
||||
SqEbfbVqT6ENjyWC1w1pPGS10uHsmdQVuI5Zsu6NjD+UjEpQxK210BvgS+Yl+QNA
|
||||
E/oaE1gbNykHpKLmqR1X2NyTb2352x2BjPgFcy5rJAmJnss6vuFwWZu30EKOX4x0
|
||||
wClHmmdMw5jgbkj+HsA5USvtZyEwKNFfo5E9a0CmbksTeO5iPACh7ZZ+h+ZsfLfi
|
||||
K6+LtZ3GsDAyg2W+UdggUCVHALe4aHUCu7nor3om6D4tDQIn6FQqo5A5If6yF6l7
|
||||
NEbr2EZJ8aafIZ+knmtjjvByDmtXbq+IZpEVjReyAT8EVsVhZa7Wb3Xpulm8eSyr
|
||||
Qa4EKluSbTw+jOQtjMmYIjLNBQnPOGIF1LRS2OmrYpNUyFiINKDl2bTFvvGOVgQP
|
||||
wp9mGOiKwwLD2RitQZbC89RmFK/jPlVvOKNpR6vBS0taDWnd6hyC2SbCZzUa4S/8
|
||||
t1vG3kfmk1etCcVX+1BHSTk2HwthVeTrUsqBaN8Fa7Ti2IhZIIJCWslvd7yc57vQ
|
||||
njzaWgU9sA/XIoE2I2WMkmCpA94//b3X8o3MtwVHHJ5AwVEFg8qn32/2gxhhgcdQ
|
||||
XPhzuVtWJxUOGJZJoiZifaQ5KzWCa3SXeZ7Be8XzhzzuS230bis=
|
||||
=0749
|
||||
-----END PGP SIGNATURE-----
|
@ -0,0 +1,29 @@
|
||||
From 819847a0f585e9e950f63c65fa5dead5cdf0027c Mon Sep 17 00:00:00 2001
|
||||
From: Neal Gompa <ngompa13@gmail.com>
|
||||
Date: Sat, 31 Aug 2019 22:45:04 -0400
|
||||
Subject: [PATCH] dnf: Add support for AppStream repodata basenames used by
|
||||
Open Build Service
|
||||
|
||||
For no particularly clear reason, it appears that the Open Build Service
|
||||
appends AppStream repodata to repositories with the 'appdata' basename
|
||||
instead of the default 'appstream' basename.
|
||||
|
||||
Support downloading this variant as well, as it should (hopefully)
|
||||
be mutually exclusive.
|
||||
---
|
||||
backends/dnf/pk-backend-dnf.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
Index: PackageKit-1.2.8/backends/dnf/pk-backend-dnf-common.c
|
||||
===================================================================
|
||||
--- PackageKit-1.2.8.orig/backends/dnf/pk-backend-dnf-common.c
|
||||
+++ PackageKit-1.2.8/backends/dnf/pk-backend-dnf-common.c
|
||||
@@ -89,7 +89,7 @@ pk_backend_setup_dnf_context (DnfContext
|
||||
gboolean
|
||||
dnf_utils_refresh_repo_appstream (DnfRepo *repo, GError **error)
|
||||
{
|
||||
- const gchar *as_basenames[] = { "appstream", "appstream-icons", NULL };
|
||||
+ const gchar *as_basenames[] = { "appstream", "appstream-icons", "appdata", "appdata-icons", NULL };
|
||||
for (guint i = 0; as_basenames[i] != NULL; i++) {
|
||||
const gchar *tmp = dnf_repo_get_filename_md (repo, as_basenames[i]);
|
||||
if (tmp == NULL)
|
12
PackageKit-dynamic-export.patch
Normal file
12
PackageKit-dynamic-export.patch
Normal file
@ -0,0 +1,12 @@
|
||||
Index: PackageKit-1.2.8/src/meson.build
|
||||
===================================================================
|
||||
--- PackageKit-1.2.8.orig/src/meson.build
|
||||
+++ PackageKit-1.2.8/src/meson.build
|
||||
@@ -51,6 +51,7 @@ packagekit_direct_exec = executable(
|
||||
],
|
||||
install: true,
|
||||
install_dir: get_option('libexecdir'),
|
||||
+ export_dynamic: true,
|
||||
c_args: [
|
||||
'-DG_LOG_DOMAIN="PackageKit"',
|
||||
'-DLIBDIR="@0@"'.format(join_paths(get_option('prefix'), get_option('libdir'))),
|
12
PackageKit-find-python-3-6.patch
Normal file
12
PackageKit-find-python-3-6.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --unified --recursive --text --new-file --color PackageKit-1.2.8.old/backends/dnf/meson.build PackageKit-1.2.8.new/backends/dnf/meson.build
|
||||
--- PackageKit-1.2.8.old/backends/dnf/meson.build 2023-11-09 04:35:41.000000000 +0800
|
||||
+++ PackageKit-1.2.8.new/backends/dnf/meson.build 2024-01-02 16:12:35.600072285 +0800
|
||||
@@ -8,7 +8,7 @@
|
||||
endif
|
||||
|
||||
python = import('python')
|
||||
-python_exec = python.find_installation()
|
||||
+python_exec = python.find_installation('python3.6')
|
||||
python_package_dir = get_option('pythonpackagedir')
|
||||
if python_package_dir == ''
|
||||
python_package_dir = python_exec.get_install_dir()
|
27
PackageKit-fix-crash-pre-dbus.patch
Normal file
27
PackageKit-fix-crash-pre-dbus.patch
Normal file
@ -0,0 +1,27 @@
|
||||
From 30b22c0f06970c934b3e6f6ea0328c589548850c Mon Sep 17 00:00:00 2001
|
||||
From: Richard Hughes <richard@hughsie.com>
|
||||
Date: Thu, 29 Oct 2020 15:40:00 +0000
|
||||
Subject: [PATCH] Do not crash when calling pk_dbus_get_uid() before D-Bus is
|
||||
setup
|
||||
|
||||
Fixes https://github.com/hughsie/PackageKit/issues/436
|
||||
---
|
||||
src/pk-dbus.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/pk-dbus.c b/src/pk-dbus.c
|
||||
index ddd04d4e6..af275eb2a 100644
|
||||
--- a/src/pk-dbus.c
|
||||
+++ b/src/pk-dbus.c
|
||||
@@ -64,6 +64,10 @@ pk_dbus_get_uid (PkDbus *dbus, const gchar *sender)
|
||||
g_return_val_if_fail (PK_IS_DBUS (dbus), G_MAXUINT);
|
||||
g_return_val_if_fail (sender != NULL, G_MAXUINT);
|
||||
|
||||
+ /* no connection to DBus */
|
||||
+ if (dbus->priv->proxy_uid == NULL)
|
||||
+ return G_MAXUINT;
|
||||
+
|
||||
/* set in the test suite */
|
||||
if (g_strcmp0 (sender, ":org.freedesktop.PackageKit") == 0) {
|
||||
g_debug ("using self-check shortcut");
|
||||
|
17
PackageKit-fix-pkcon-permission.patch
Normal file
17
PackageKit-fix-pkcon-permission.patch
Normal file
@ -0,0 +1,17 @@
|
||||
From 47b7f97bc9ef22b9c1c6c0a738ff49c876d8122a Mon Sep 17 00:00:00 2001
|
||||
From: Matthias Klumpp <matthias@tenstral.net>
|
||||
Date: Thu, 17 Feb 2022 21:19:50 +0100
|
||||
Subject: [PATCH] trivial: Drop unnecessary x permission
|
||||
|
||||
Lintian complained about it.
|
||||
---
|
||||
contrib/pkcon | 0
|
||||
1 file changed, 0 insertions(+), 0 deletions(-)
|
||||
mode change 100755 => 100644 contrib/pkcon
|
||||
|
||||
diff --git a/contrib/pkcon b/contrib/pkcon
|
||||
old mode 100755
|
||||
new mode 100644
|
||||
--
|
||||
2.39.2
|
||||
|
35
PackageKit-mark-as-compulsory.patch
Normal file
35
PackageKit-mark-as-compulsory.patch
Normal file
@ -0,0 +1,35 @@
|
||||
From d8f84f7e0a017e0b4df1e08a2a6be832c9fb3611 Mon Sep 17 00:00:00 2001
|
||||
From: Matthias Klumpp <matthias@tenstral.net>
|
||||
Date: Tue, 21 May 2024 02:33:55 +0200
|
||||
Subject: [PATCH] metainfo: Mark PK as compulsory for most desktops
|
||||
|
||||
Ideally, AppStream needs a way to just mark a component as critical for
|
||||
the system to function and prevent its removal. But this is okay as a
|
||||
temporary fix.
|
||||
|
||||
Resolves: #759
|
||||
---
|
||||
data/org.freedesktop.packagekit.metainfo.xml | 10 ++++++++++
|
||||
1 file changed, 10 insertions(+)
|
||||
|
||||
diff --git a/data/org.freedesktop.packagekit.metainfo.xml b/data/org.freedesktop.packagekit.metainfo.xml
|
||||
index 13b7a316d..ce47582a8 100644
|
||||
--- a/data/org.freedesktop.packagekit.metainfo.xml
|
||||
+++ b/data/org.freedesktop.packagekit.metainfo.xml
|
||||
@@ -27,6 +27,16 @@
|
||||
<url type="homepage">https://www.freedesktop.org/software/PackageKit</url>
|
||||
|
||||
<launchable type="service">packagekit.service</launchable>
|
||||
+
|
||||
+ <compulsory_for_desktop>Cinnamon</compulsory_for_desktop>
|
||||
+ <compulsory_for_desktop>GNOME</compulsory_for_desktop>
|
||||
+ <compulsory_for_desktop>KDE</compulsory_for_desktop>
|
||||
+ <compulsory_for_desktop>LXQt</compulsory_for_desktop>
|
||||
+ <compulsory_for_desktop>MATE</compulsory_for_desktop>
|
||||
+ <compulsory_for_desktop>Pantheon</compulsory_for_desktop>
|
||||
+ <compulsory_for_desktop>Unity</compulsory_for_desktop>
|
||||
+ <compulsory_for_desktop>XFCE</compulsory_for_desktop>
|
||||
+
|
||||
<categories>
|
||||
<category>System</category>
|
||||
</categories>
|
9
PackageKit-remove-polkit-rules.patch
Normal file
9
PackageKit-remove-polkit-rules.patch
Normal file
@ -0,0 +1,9 @@
|
||||
diff -rup PackageKit-1.2.1/policy/meson.build PackageKit-1.2.1-rm-polkitrules/policy/meson.build
|
||||
--- PackageKit-1.2.1/policy/meson.build 2020-09-07 05:14:48.879003300 -0400
|
||||
+++ PackageKit-1.2.1-rm-polkitrules/policy/meson.build 2020-09-07 10:12:34.746741536 -0400
|
||||
@@ -1,5 +1,3 @@
|
||||
-install_data('org.freedesktop.packagekit.rules',
|
||||
- install_dir : join_paths(get_option('datadir'), 'polkit-1', 'rules.d'))
|
||||
i18n.merge_file(
|
||||
input: 'org.freedesktop.packagekit.policy.in',
|
||||
output: 'org.freedesktop.packagekit.policy',
|
166
PackageKit-systemd-timers.patch
Normal file
166
PackageKit-systemd-timers.patch
Normal file
@ -0,0 +1,166 @@
|
||||
diff -rupN PackageKit-1.2.1/data/meson.build PackageKit-1.2.1-systemd-timers/data/meson.build
|
||||
--- PackageKit-1.2.1/data/meson.build 2020-09-07 05:14:48.836002600 -0400
|
||||
+++ PackageKit-1.2.1-systemd-timers/data/meson.build 2020-09-07 10:26:55.514657134 -0400
|
||||
@@ -6,6 +6,7 @@ install_data(
|
||||
dbus_config_data = configuration_data()
|
||||
dbus_config_data.set('PACKAGEKIT_USER', get_option('packagekit_user'))
|
||||
dbus_config_data.set('libexecdir', join_paths(get_option('prefix'), get_option('libexecdir')))
|
||||
+dbus_config_data.set('datadir', join_paths(get_option('prefix'), get_option('datadir')))
|
||||
|
||||
dbus_sys_dir = get_option('dbus_sys')
|
||||
if dbus_sys_dir == ''
|
||||
@@ -43,6 +44,24 @@ if get_option('systemd')
|
||||
install_dir: systemd_system_unit_dir,
|
||||
)
|
||||
|
||||
+ configure_file(
|
||||
+ input: 'packagekit-background.service.in',
|
||||
+ output: 'packagekit-background.service',
|
||||
+ configuration: dbus_config_data,
|
||||
+ install: true,
|
||||
+ install_dir: systemd_system_unit_dir,
|
||||
+ )
|
||||
+
|
||||
+ install_data(
|
||||
+ 'packagekit-background.timer',
|
||||
+ install_dir: systemd_system_unit_dir,
|
||||
+ )
|
||||
+
|
||||
+ install_data(
|
||||
+ 'packagekit-background.sh',
|
||||
+ install_dir: join_paths(get_option('datadir'), 'PackageKit'),
|
||||
+ )
|
||||
+
|
||||
if get_option('offline_update')
|
||||
configure_file(
|
||||
input: 'packagekit-offline-update.service.in',
|
||||
diff -rupN PackageKit-1.2.1/data/packagekit-background.service.in PackageKit-1.2.1-systemd-timers/data/packagekit-background.service.in
|
||||
--- PackageKit-1.2.1/data/packagekit-background.service.in 1969-12-31 19:00:00.000000000 -0500
|
||||
+++ PackageKit-1.2.1-systemd-timers/data/packagekit-background.service.in 2020-09-07 10:27:07.897771008 -0400
|
||||
@@ -0,0 +1,5 @@
|
||||
+[Unit]
|
||||
+Description=Script to update the system with PackageKit
|
||||
+
|
||||
+[Service]
|
||||
+ExecStart=@datadir@/PackageKit/packagekit-background.sh
|
||||
diff -rupN PackageKit-1.2.1/data/packagekit-background.sh PackageKit-1.2.1-systemd-timers/data/packagekit-background.sh
|
||||
--- PackageKit-1.2.1/data/packagekit-background.sh 1969-12-31 19:00:00.000000000 -0500
|
||||
+++ PackageKit-1.2.1-systemd-timers/data/packagekit-background.sh 2020-09-07 10:17:37.609526652 -0400
|
||||
@@ -0,0 +1,102 @@
|
||||
+#!/bin/bash
|
||||
+# Copyright (C) 2008 Richard Hughes <richard@hughsie.com>
|
||||
+#
|
||||
+# Some material taken from yum-cron, Copyright 2007 Alec Habig <ahabig@umn.edu>
|
||||
+#
|
||||
+# Licensed under the GNU General Public License Version 2
|
||||
+# This program is free software; you can redistribute it and/or modify
|
||||
+# it under the terms of the GNU General Public License as published by
|
||||
+# the Free Software Foundation; either version 2 of the License, or
|
||||
+# (at your option) any later version.
|
||||
+
|
||||
+## Type: yesno
|
||||
+## Default: no
|
||||
+#
|
||||
+# Run the cron job.
|
||||
+#
|
||||
+ENABLED=no
|
||||
+
|
||||
+## Type: yesno
|
||||
+## Default: no
|
||||
+#
|
||||
+# Check if updates are available, instead of installing.
|
||||
+#
|
||||
+CHECK_ONLY=no
|
||||
+
|
||||
+## Type: yesno
|
||||
+## Default: no
|
||||
+#
|
||||
+# Trigger updates, so they will be installed on reboot.
|
||||
+#
|
||||
+UPDATE_OFFLINE=no
|
||||
+
|
||||
+## Type: string
|
||||
+## Default: ""
|
||||
+#
|
||||
+# If MAILTO is set, the mail command is used to deliver PackageKit output.
|
||||
+# By default MAILTO is unset, so crond mails the output by itself.
|
||||
+#
|
||||
+MAILTO=""
|
||||
+
|
||||
+## Type: string
|
||||
+## Default: ""
|
||||
+#
|
||||
+# You may set SYSTEM_NAME if you want your PackageKit emails tagged differently.
|
||||
+# Default is output of hostname command.
|
||||
+#
|
||||
+SYSTEM_NAME=""
|
||||
+
|
||||
+## Type: integer
|
||||
+## Default: 3600
|
||||
+#
|
||||
+# Update checks will sleep random time before contacting the servers to
|
||||
+# avoid hammering them with thousands of request at the same time - this
|
||||
+# is the maximum sleep time (in seconds) for the random wait period.
|
||||
+#
|
||||
+SLEEP_MAX=3600
|
||||
+
|
||||
+# are we disabled?
|
||||
+if [ "$ENABLED" = "no" ]; then
|
||||
+ exit 0
|
||||
+fi
|
||||
+
|
||||
+# set default for SYSTEM_NAME
|
||||
+[ -z "$SYSTEM_NAME" ] && SYSTEM_NAME=$(hostname)
|
||||
+
|
||||
+PKTMP=$(mktemp /var/run/packagekit-cron.XXXXXX)
|
||||
+PKCON_OPTIONS="--background --noninteractive --plain"
|
||||
+if [ "$UPDATE_OFFLINE" = "yes" ]; then
|
||||
+ ONLY_DOWNLOAD="--only-download"
|
||||
+else
|
||||
+ ONLY_DOWNLOAD=""
|
||||
+fi
|
||||
+
|
||||
+# wait a random amount of time to avoid hammering the servers
|
||||
+[ -z "$SLEEP_MAX" ] && SLEEP_MAX=$RANDOM
|
||||
+sleep $(( $RANDOM % $SLEEP_MAX + 1 ))
|
||||
+
|
||||
+# do action
|
||||
+if [ "$CHECK_ONLY" = "yes" ]; then
|
||||
+ pkcon $PKCON_OPTIONS get-updates &> $PKTMP
|
||||
+ PKCON_RETVAL=$?
|
||||
+else
|
||||
+ pkcon $PKCON_OPTIONS $ONLY_DOWNLOAD update &> $PKTMP
|
||||
+ PKCON_RETVAL=$?
|
||||
+ if [ $PKCON_RETVAL -eq 0 -a "$UPDATE_OFFLINE" = "yes" ]; then
|
||||
+ pkcon $PKCON_OPTIONS offline-trigger &> $PKTMP
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
+# this is when seomthing useful was done
|
||||
+if [ $PKCON_RETVAL -ne 5 ]; then
|
||||
+ # send email
|
||||
+ if [ -n "$MAILTO" ]; then
|
||||
+ mail -Ssendwait -s "System updates available: $SYSTEM_NAME" $MAILTO < $PKTMP
|
||||
+ else
|
||||
+ # default behavior is to use cron's internal mailing of output from cron-script
|
||||
+ cat $PKTMP
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
+rm -f $PKTMP
|
||||
+
|
||||
diff -rupN PackageKit-1.2.1/data/packagekit-background.timer PackageKit-1.2.1-systemd-timers/data/packagekit-background.timer
|
||||
--- PackageKit-1.2.1/data/packagekit-background.timer 1969-12-31 19:00:00.000000000 -0500
|
||||
+++ PackageKit-1.2.1-systemd-timers/data/packagekit-background.timer 2020-09-07 10:17:37.609526652 -0400
|
||||
@@ -0,0 +1,11 @@
|
||||
+[Unit]
|
||||
+Description=Systemd timer to update the system daily with PackageKit
|
||||
+
|
||||
+[Timer]
|
||||
+OnCalendar=daily
|
||||
+AccuracySec=12h
|
||||
+Persistent=true
|
||||
+Unit=packagekit-background.service
|
||||
+
|
||||
+[Install]
|
||||
+WantedBy=timers.target
|
30
PackageKit-zypp-disable-upgrade-system-in-sle.patch
Normal file
30
PackageKit-zypp-disable-upgrade-system-in-sle.patch
Normal file
@ -0,0 +1,30 @@
|
||||
From 01ae2ceee2688b308553b0ed0c5f9c1b6f27ad78 Mon Sep 17 00:00:00 2001
|
||||
From: Jonathan Kang <jonathankang@gnome.org>
|
||||
Date: Wed, 27 Jul 2022 17:15:31 +0800
|
||||
Subject: [PATCH] zypp: Disable upgrade-system support in SLE
|
||||
|
||||
---
|
||||
backends/zypp/pk-backend-zypp.cpp | 13 +++++++++++++
|
||||
1 file changed, 13 insertions(+)
|
||||
|
||||
Index: PackageKit-1.2.8/backends/zypp/pk-backend-zypp.cpp
|
||||
===================================================================
|
||||
--- PackageKit-1.2.8.orig/backends/zypp/pk-backend-zypp.cpp
|
||||
+++ PackageKit-1.2.8/backends/zypp/pk-backend-zypp.cpp
|
||||
@@ -3572,6 +3572,16 @@ pk_backend_upgrade_system_thread (PkBack
|
||||
return;
|
||||
}
|
||||
|
||||
+ release_name = pk_get_distro_name (&error);
|
||||
+ if (release_name == NULL)
|
||||
+ g_error ("Failed to parse os-release: %s", error->message);
|
||||
+ if (g_str_has_prefix (release_name, "SLE")) {
|
||||
+ pk_backend_job_error_code (job, PK_ERROR_ENUM_NOT_SUPPORTED,
|
||||
+ "upgrade-system is not supported in SLE.");
|
||||
+
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
ResPool pool = zypp_build_pool (zypp, TRUE);
|
||||
PkRestartEnum restart = PK_RESTART_ENUM_NONE;
|
||||
PoolStatusSaver saver;
|
33
PackageKit-zypp-dont-install-updateCandidateObj.patch
Normal file
33
PackageKit-zypp-dont-install-updateCandidateObj.patch
Normal file
@ -0,0 +1,33 @@
|
||||
From 209aa62950e503494716fd046f8f5cb546bf57d4 Mon Sep 17 00:00:00 2001
|
||||
From: Jonathan Kang <jonathankang@gnome.org>
|
||||
Date: Wed, 4 Sep 2024 15:16:25 +0800
|
||||
Subject: [PATCH] zypp: Mark the correct packages to-be-installed
|
||||
|
||||
The package list passed to backend_update_packages_thread() is already
|
||||
the packages that are about to be installed. It doesn't make sense to
|
||||
mark the update candidate of those packages to be installed.
|
||||
|
||||
https://bugzilla.suse.com/show_bug.cgi?id=1227389
|
||||
---
|
||||
backends/zypp/pk-backend-zypp.cpp | 5 -----
|
||||
1 file changed, 5 deletions(-)
|
||||
|
||||
diff --git a/backends/zypp/pk-backend-zypp.cpp b/backends/zypp/pk-backend-zypp.cpp
|
||||
index dd3f19ee0..2d4a51238 100644
|
||||
--- a/backends/zypp/pk-backend-zypp.cpp
|
||||
+++ b/backends/zypp/pk-backend-zypp.cpp
|
||||
@@ -3524,11 +3524,6 @@ backend_update_packages_thread (PkBackendJob *job, GVariant *params, gpointer us
|
||||
zypp_backend_finished_error (job, PK_ERROR_ENUM_DEP_RESOLUTION_FAILED, "Package %s is not installed", package_ids[i]);
|
||||
return;
|
||||
}
|
||||
- item = sel->updateCandidateObj();
|
||||
- if (!item) {
|
||||
- zypp_backend_finished_error(job, PK_ERROR_ENUM_DEP_RESOLUTION_FAILED, "There is no update candidate for %s", sel->installedObj().satSolvable().asString().c_str());
|
||||
- return;
|
||||
- }
|
||||
}
|
||||
|
||||
item.status ().setToBeInstalled (ResStatus::USER);
|
||||
--
|
||||
2.46.0
|
||||
|
4482
PackageKit.changes
Normal file
4482
PackageKit.changes
Normal file
File diff suppressed because it is too large
Load Diff
220
PackageKit.keyring
Normal file
220
PackageKit.keyring
Normal file
@ -0,0 +1,220 @@
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQINBE3evY0BEACp8clHRMZ5qQ2iQ7k+OQDt3u0Xwbz6PBR322GqjAnaKVlZ4Z4+
|
||||
Syod6MbUmCvg2p6Ugk2qTjGm7oUqxsibt+79SiL/OJcGevHH/5lW2tqAndKCNA6b
|
||||
tRdpxOb3fCAQLqTEXGPKipwM2eiIcORb4ac5tj33Q7Kur5lIXrmGxxzJijS09JM7
|
||||
ixIkbJmcf+AHCcT6X6fVwBDMi1BSzVruvPVuBLoI0xK9M5O/QLn6UTl3v8OynlkC
|
||||
U/QneLrgLL6sc/knMp/fDC5U0y/a5BMlW5NnlDb7fAeTCpWlfXrk4da+CPU27cCR
|
||||
iwna4VaoXE0ZvZZwF+QqjZ+1iezJcjT1CYN+s4HoOBiMpiwWYmFGIVUvF0mx58GL
|
||||
XhXo5nkIXyBwE6hMUi2m429F7f+6LNxlIuAdNxePFZXPdH1Y9qYMlzMEmQa3vHhH
|
||||
9syOl1Hf+rbn0U2t/BQp7BYOqHNC0wqA6w7lEQQ5phD7MO+WEUzAVAcRiSr/M0Gt
|
||||
BDbhQchKT45+8hUXFRhsCRh0AUvi6qpOTPy7poYNVIellMH4oOe4FHiInTXUl0so
|
||||
oEH3/4axd30/2TUHK6RBz9T+F+oBKd0HCvGdjc0Xqi2lZBy2uNQ/ArXpE189DBtx
|
||||
glubZkjok7ch0ZCxjK721O1mljYWXsFMQAu0JShVOvsTb1dviNpkCh5vSQARAQAB
|
||||
tCVNYXR0aGlhcyBLbHVtcHAgPG1hdHRoaWFzQG5saW51eC5vcmc+iQIfBDABAgAJ
|
||||
BQJOUXu6Ah0gAAoJEElMil+/Tezr+vcP/RvL2EK8t/1itvAz6inBkdh+iNX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WzZil8QsLTzYSO7fFRudAQkjd4EApEJHe0hCBqZgeiviLVuX5
|
||||
d/uyd5PyB+ra3GgHU5xtpGcTgVS2rOUzjoVcs8i/kpPmjREn6yp1pp89gPCi2RC0
|
||||
L3QE
|
||||
=7l2s
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
|
495
PackageKit.spec
Normal file
495
PackageKit.spec
Normal file
@ -0,0 +1,495 @@
|
||||
#
|
||||
# spec file for package PackageKit
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?sle_version} && 0%{?sle_version} < 160000
|
||||
%bcond_with offline_updates
|
||||
%else
|
||||
%bcond_without offline_updates
|
||||
%endif
|
||||
|
||||
# Only make DNF backend available openSUSE Leap 15.1+
|
||||
%if 0%{?sle_version} >= 150100 || 0%{?suse_version} >= 1550
|
||||
%bcond_without dnf
|
||||
%bcond_with cnf
|
||||
%else
|
||||
%bcond_with dnf
|
||||
%bcond_with cnf
|
||||
%endif
|
||||
|
||||
Name: PackageKit
|
||||
Version: 1.2.8
|
||||
Release: 0
|
||||
Summary: Simple software installation management software
|
||||
License: GPL-2.0-or-later
|
||||
Group: System/Daemons
|
||||
URL: https://www.freedesktop.org/software/PackageKit
|
||||
Source0: %{url}/releases/%{name}-%{version}.tar.xz
|
||||
Source1: %{url}/releases/%{name}-%{version}.tar.xz.asc
|
||||
Source3: PackageKit.tmpfiles
|
||||
Source99: PackageKit.keyring
|
||||
|
||||
# PATCH-FEATURE-OPENSUSE PackageKit-systemd-timers.patch bsc#1115410 sckang@suse.com -- Migrate from cron to systemd timers
|
||||
Patch1: PackageKit-systemd-timers.patch
|
||||
# PATCH-FIX-OPENSUSE PackageKit-remove-polkit-rules.patch bsc#1125434 sckang@suse.com -- Remove polkit rules file
|
||||
Patch2: PackageKit-remove-polkit-rules.patch
|
||||
# PATCH-FIX-OPENSUSE PackageKit-dnf-Add-support-for-AppStream-repodata-basenames-use.patch ngompa13@gmail.com -- Band-aid to deal with OBS producing differently named appstream repodata files
|
||||
Patch3: PackageKit-dnf-Add-support-for-AppStream-repodata-basenames-use.patch
|
||||
# PATCH-FIX-UPSTREAM PackageKit-fix-crash-pre-dbus.patch gh#hughsie/PackageKit!436 -- Do not crash when calling pk_dbus_get_uid() before D-Bus is setup
|
||||
Patch4: PackageKit-fix-crash-pre-dbus.patch
|
||||
# PATCH-FIX-UPSTREAM PackageKit-zypp-disable-upgrade-system-in-sle.patch gh#PackageKit/PackageKit/commit/0fcd820c2 sckang@suse.com -- zypp: Disable upgrade-system support in SLE
|
||||
Patch7: PackageKit-zypp-disable-upgrade-system-in-sle.patch
|
||||
# PATCH-FIX-UPSTREAM PackageKit-fix-pkcon-permission.patch gh#PackageKit/PackageKit/commit/47b7f97bc, bsc#1209138 sckang@suse.com -- trivial: Drop unnecessary x permission
|
||||
Patch15: PackageKit-fix-pkcon-permission.patch
|
||||
# PATCH-FIX-UPSTREAM PackageKit-dynamic-export.patch boo#1213309 dimstar@opensuse.org -- Fix loading modules when built with glib 2.70
|
||||
Patch16: PackageKit-dynamic-export.patch
|
||||
# PATCH-FIX-UPSTREAM PackageKit-mark-as-compulsory.patch bsc#1226269 alynx.zhou@suse.com -- Prevent PackageKit from user uninstallable
|
||||
Patch17: PackageKit-mark-as-compulsory.patch
|
||||
# PATCH-FIX-UPSTREAM PackageKit-zypp-dont-install-updateCandidateObj.patch bsc#1227389, gh#PackageKit/PackageKit/commit/209aa6295 sckang@suse.com -- zypp: Mark the correct packages to-be-installed
|
||||
Patch18: PackageKit-zypp-dont-install-updateCandidateObj.patch
|
||||
|
||||
# PATCH-FIX-SLE PackageKit-find-python-3-6.patch alynx.zhou@suse.com -- Build PackageKit with Python 3.6
|
||||
Patch1001: PackageKit-find-python-3-6.patch
|
||||
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gobject-introspection-devel
|
||||
BuildRequires: gstreamer-devel
|
||||
BuildRequires: gstreamer-plugins-base-devel
|
||||
BuildRequires: gtk-doc
|
||||
BuildRequires: gtk3-devel
|
||||
BuildRequires: intltool
|
||||
BuildRequires: libarchive-devel
|
||||
BuildRequires: libcppunit-devel
|
||||
%if %{with dnf}
|
||||
BuildRequires: appstream-glib-devel
|
||||
BuildRequires: libdnf-devel >= 0.43.1
|
||||
BuildRequires: pkgconfig(appstream)
|
||||
%endif
|
||||
BuildRequires: libgudev-1_0-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: meson >= 0.50
|
||||
BuildRequires: mozilla-nspr-devel >= 4.8
|
||||
BuildRequires: ninja
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: polkit-devel >= 0.98
|
||||
# We need the %%mime_database_* macros
|
||||
BuildRequires: shared-mime-info
|
||||
BuildRequires: sqlite-devel
|
||||
BuildRequires: vala
|
||||
BuildRequires: pkgconfig(bash-completion) >= 2.0
|
||||
BuildRequires: pkgconfig(libsystemd)
|
||||
BuildRequires: pkgconfig(systemd)
|
||||
# We really want a working backend (likely zypp)
|
||||
Requires: %{name}-backend
|
||||
Requires: %{name}-branding = %{version}
|
||||
Suggests: %{name}-backend-zypp
|
||||
# doc package only contained the website, and got removed in 0.7.4
|
||||
Obsoletes: %{name}-doc < 0.7.4
|
||||
# gtk+ 2 module was removed in 0.7.0
|
||||
Obsoletes: %{name}-gtk-module < 0.7.0
|
||||
# ruck was removed in 0.6.4, make sure it gets removed
|
||||
Obsoletes: ruck <= 0.6.3
|
||||
# the browser-plugin was dropped with version 1.1.0
|
||||
Obsoletes: %{name}-browser-plugin < 1.1.0
|
||||
%{?systemd_ordering}
|
||||
|
||||
%description
|
||||
PackageKit is a system designed to make installing and updating
|
||||
software on your computer easier. The primary design goal is to unify
|
||||
all the software graphical tools used in different distributions, and
|
||||
use some of the latest technology like PolicyKit to make the process
|
||||
suck less.
|
||||
|
||||
%package backend-zypp
|
||||
Summary: Zypp backend for the PackageKit installation management software
|
||||
License: GPL-2.0-or-later
|
||||
Group: System/Daemons
|
||||
BuildRequires: libzypp-devel >= 17.31.0
|
||||
Requires: %{name} = %{version}
|
||||
Requires: libzypp >= 17.31.0
|
||||
Provides: %{name}-backend = %{version}
|
||||
Conflicts: %{name}-backend
|
||||
Supplements: (%{name} and libzypp)
|
||||
|
||||
%description backend-zypp
|
||||
PackageKit is a system designed to make installing and updating
|
||||
software on your computer easier. The primary design goal is to unify
|
||||
all the software graphical tools used in different distributions, and
|
||||
use some of the latest technology like PolicyKit to make the process
|
||||
suck less.
|
||||
|
||||
%if %{with dnf}
|
||||
%package backend-dnf
|
||||
Summary: DNF backend for the PackageKit installation management software
|
||||
License: GPL-2.0-or-later
|
||||
Group: System/Daemons
|
||||
Requires: %{name} = %{version}
|
||||
Provides: %{name}-backend = %{version}
|
||||
Conflicts: %{name}-backend
|
||||
Supplements: (%{name} and dnf-data)
|
||||
Recommends: rpm-repos-openSUSE
|
||||
Suggests: PackageKit-command-not-found
|
||||
# Stricter dependency to keep things sane
|
||||
%requires_ge %(rpm -qf "$(readlink -f %{_libdir}/libdnf.so)")
|
||||
|
||||
%description backend-dnf
|
||||
PackageKit is a system designed to make installing and updating
|
||||
software on your computer easier. The primary design goal is to unify
|
||||
all the software graphical tools used in different distributions, and
|
||||
use some of the latest technology like PolicyKit to make the process
|
||||
suck less.
|
||||
%endif
|
||||
|
||||
%if %{with cnf}
|
||||
%package command-not-found
|
||||
Summary: Command Not Found using PackageKit
|
||||
License: GPL-2.0-or-later
|
||||
Group: System/Daemons
|
||||
Obsoletes: command-not-found
|
||||
Provides: command-not-found
|
||||
Conflicts: command-not-found
|
||||
# zypp backend lacks full functionality for this to make sense
|
||||
Conflicts: %{name}-backend-zypp
|
||||
|
||||
%description command-not-found
|
||||
The improved Command Not Found utility from the PackageKit utilities
|
||||
suit, making it easier to install the software you need when you
|
||||
need it.
|
||||
%endif
|
||||
|
||||
%package gstreamer-plugin
|
||||
Summary: Install GStreamer codecs using PackageKit
|
||||
License: GPL-2.0-or-later
|
||||
Group: Productivity/Multimedia/Other
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Recommends: %{name} = %{version}
|
||||
Supplements: (%{name} and gstreamer-plugins-base)
|
||||
|
||||
%description gstreamer-plugin
|
||||
The PackageKit GStreamer plugin allows any Gstreamer application to install
|
||||
codecs from configured repositories using PackageKit.
|
||||
|
||||
%package gtk3-module
|
||||
Summary: Install fonts automatically using PackageKit
|
||||
License: GPL-2.0-or-later
|
||||
Group: System/Libraries
|
||||
Recommends: %{name} = %{version}
|
||||
Supplements: (%{name} and gtk3)
|
||||
%glib2_gsettings_schema_requires
|
||||
|
||||
%description gtk3-module
|
||||
The PackageKit GTK3+ module allows any Pango application to install
|
||||
fonts from configured repositories using PackageKit.
|
||||
|
||||
%package devel
|
||||
Summary: Header files for development with PackageKit
|
||||
License: GPL-2.0-or-later
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name} = %{version}
|
||||
Requires: libpackagekit-glib2-devel = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains all necessary include files, libraries,
|
||||
configuration files and development tools (with manual pages) needed to
|
||||
compile and link applications using PackageKit.
|
||||
|
||||
%package -n libpackagekit-glib2-18
|
||||
Summary: GLib integration of PackageKit
|
||||
License: LGPL-2.1-or-later
|
||||
Group: System/Libraries
|
||||
Recommends: %{name}
|
||||
Conflicts: %{name} < %{version}
|
||||
Provides: libpackagekit-glib12 = %{version}
|
||||
Obsoletes: libpackagekit-glib12 < %{version}
|
||||
|
||||
%description -n libpackagekit-glib2-18
|
||||
PackageKit is a system designed to make installing and updating
|
||||
software on your computer easier. The primary design goal is to unify
|
||||
all the software graphical tools used in different distributions, and
|
||||
use some of the latest technology like PolicyKit to make the process
|
||||
suck less.
|
||||
|
||||
%package -n typelib-1_0-PackageKitGlib-1_0
|
||||
Summary: Introspection bindings for PackageKit's GLib integration
|
||||
License: LGPL-2.1-or-later
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n typelib-1_0-PackageKitGlib-1_0
|
||||
PackageKit is a system designed to make installing and updating
|
||||
software on your computer easier. The primary design goal is to unify
|
||||
all the software graphical tools used in different distributions, and
|
||||
use some of the latest technology like PolicyKit to make the process
|
||||
suck less.
|
||||
|
||||
This package provides the GObject Introspection bindings for the
|
||||
PackageKit client library.
|
||||
|
||||
%package -n libpackagekit-glib2-devel
|
||||
Summary: GLib integration of PackageKit
|
||||
License: LGPL-2.1-or-later
|
||||
Group: Development/Libraries/GNOME
|
||||
Requires: libpackagekit-glib2-18 = %{version}
|
||||
Requires: typelib-1_0-PackageKitGlib-1_0 = %{version}
|
||||
Provides: libpackagekit-glib12-devel = %{version}
|
||||
Obsoletes: libpackagekit-glib12-devel < %{version}
|
||||
|
||||
%description -n libpackagekit-glib2-devel
|
||||
PackageKit is a system designed to make installing and updating
|
||||
software on your computer easier. The primary design goal is to unify
|
||||
all the software graphical tools used in different distributions, and
|
||||
use some of the latest technology like PolicyKit to make the process
|
||||
suck less.
|
||||
|
||||
%package branding-upstream
|
||||
Summary: Upstream configuration for the PackageKit installation management software
|
||||
License: GPL-2.0-or-later
|
||||
Group: System/Daemons
|
||||
Requires: %{name} = %{version}
|
||||
Supplements: (%{name} and branding-upstream)
|
||||
Conflicts: %{name}-branding
|
||||
Provides: %{name}-branding = %{version}
|
||||
BuildArch: noarch
|
||||
#BRAND: Provide configuration files -
|
||||
#BRAND: /etc/PackageKit/*
|
||||
|
||||
%description branding-upstream
|
||||
PackageKit is a system designed to make installing and updating
|
||||
software on your computer easier. The primary design goal is to unify
|
||||
all the software graphical tools used in different distributions, and
|
||||
use some of the latest technology like PolicyKit to make the process
|
||||
suck less.
|
||||
|
||||
This package provides the upstream default configuration for PackageKit.
|
||||
|
||||
%lang_package
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch -P 1 -p1
|
||||
%patch -P 2 -p1
|
||||
%patch -P 3 -p1
|
||||
%patch -P 4 -p1
|
||||
%patch -P 7 -p1
|
||||
%patch -P 15 -p1
|
||||
%patch -P 16 -p1
|
||||
%patch -P 17 -p1
|
||||
%patch -P 18 -p1
|
||||
%if 0%{?sle_version} && 0%{?sle_version} < 160000
|
||||
%patch -P 1001 -p1
|
||||
%endif
|
||||
|
||||
%build
|
||||
%meson \
|
||||
-Dgtk_doc=true \
|
||||
-Dpython_backend=false \
|
||||
-Dpackaging_backend=%{?with_dnf:dnf,}zypp \
|
||||
%{?with_dnf:-Ddnf_vendor=opensuse} \
|
||||
%{!?with_cnf:-Dbash_command_not_found=false} \
|
||||
%{!?with_offline_updates:-Doffline_update=false} \
|
||||
-Dcron=false \
|
||||
-Dlocal_checkout=false \
|
||||
-Ddbus_sys=%{_datadir}/dbus-1/system.d
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
|
||||
%if %{with offline_updates}
|
||||
# enable packagekit-offline-updates.service here for now, till we
|
||||
# decide how to do it upstream after the meson conversion:
|
||||
# https://github.com/hughsie/PackageKit/issues/401
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1833176
|
||||
mkdir -p %{buildroot}%{_unitdir}/system-update.target.wants/
|
||||
ln -sf ../packagekit-offline-update.service %{buildroot}%{_unitdir}/system-update.target.wants/packagekit-offline-update.service
|
||||
%endif
|
||||
# Prepare for update-alternatives
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||
ln -s -f %{_sysconfdir}/alternatives/gst-install-plugins-helper %{buildroot}/%{_libexecdir}/gst-install-plugins-helper
|
||||
# Add rcFOO symlinks
|
||||
mkdir -p %{buildroot}%{_sbindir}
|
||||
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcpackagekit
|
||||
%if %{with offline_updates}
|
||||
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcpackagekit-offline-update
|
||||
%endif
|
||||
# install transactions.db to another directory so that we can use tmpfiles.d to create a link to it under /var/lib/PackageKit
|
||||
install -m 0644 %{buildroot}%{_localstatedir}/lib/PackageKit/transactions.db %{buildroot}%{_datadir}/PackageKit/transactions.db
|
||||
rm %{buildroot}%{_localstatedir}/lib/PackageKit/transactions.db
|
||||
# install PackageKit.conf in tempfiles.d
|
||||
install -d -m 0755 %{buildroot}%{_prefix}/lib/tmpfiles.d/
|
||||
install -m 0644 %{SOURCE3} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
|
||||
|
||||
%find_lang %{name} %{?no_lang_C}
|
||||
%fdupes %{buildroot}/%{_prefix}
|
||||
|
||||
%pre
|
||||
%service_add_pre packagekit.service
|
||||
%service_add_pre packagekit-background.service packagekit-background.timer
|
||||
%if %{with offline_updates}
|
||||
%service_add_pre packagekit-offline-update.service
|
||||
%endif
|
||||
|
||||
%post
|
||||
%mime_database_post
|
||||
%service_add_post packagekit.service
|
||||
%service_add_post packagekit-background.service packagekit-background.timer
|
||||
%if %{with offline_updates}
|
||||
%service_add_post packagekit-offline-update.service
|
||||
%else
|
||||
if [ -L system-update ]; then
|
||||
rm system-update
|
||||
fi
|
||||
if [ -f var/lib/PackageKit/prepared-update ]; then
|
||||
rm var/lib/PackageKit/prepared-update
|
||||
fi
|
||||
%endif
|
||||
%tmpfiles_create %_tmpfilesdir/%{name}.conf
|
||||
|
||||
%preun
|
||||
%service_del_preun packagekit.service
|
||||
%service_del_preun packagekit-background.service packagekit-background.timer
|
||||
%if %{with offline_updates}
|
||||
%service_del_preun packagekit-offline-update.service
|
||||
%endif
|
||||
|
||||
%postun
|
||||
%mime_database_postun
|
||||
# Do not restart PackageKit on upgrade - it kills the transaction
|
||||
%service_del_postun_without_restart packagekit.service
|
||||
%service_del_postun_without_restart packagekit-background.service packagekit-background.timer
|
||||
%if %{with offline_updates}
|
||||
%service_del_postun_without_restart packagekit-offline-update.service
|
||||
%endif
|
||||
|
||||
%post gstreamer-plugin
|
||||
update-alternatives --install %{_libexecdir}/gst-install-plugins-helper gst-install-plugins-helper %{_libexecdir}/pk-gstreamer-install 10
|
||||
|
||||
%postun gstreamer-plugin
|
||||
# Note: we don't use "$1 -eq 0", to avoid issues if the package gets renamed
|
||||
if [ ! -f %{_libexecdir}/pk-gstreamer-install ]; then
|
||||
update-alternatives --remove gst-install-plugins-helper %{_libexecdir}/pk-gstreamer-install
|
||||
fi
|
||||
|
||||
%post -n libpackagekit-glib2-18 -p /sbin/ldconfig
|
||||
%postun -n libpackagekit-glib2-18 -p /sbin/ldconfig
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc AUTHORS HACKING NEWS README policy/org.freedesktop.packagekit.rules
|
||||
%dir %{_sysconfdir}/PackageKit
|
||||
%dir %{_datadir}/PackageKit
|
||||
%dir %{_datadir}/PackageKit/helpers
|
||||
%dir %{_libdir}/packagekit-backend
|
||||
%dir %{_usr}/lib/tmpfiles.d
|
||||
%{_datadir}/bash-completion/completions/pkcon
|
||||
%{_datadir}/dbus-1/system.d/org.freedesktop.PackageKit.conf
|
||||
%{_bindir}/pkcon
|
||||
%{_bindir}/pkmon
|
||||
%{_libdir}/packagekit-backend/libpk_backend_dummy.so
|
||||
%{_libexecdir}/packagekitd
|
||||
%{_libexecdir}/packagekit-direct
|
||||
%{_datadir}/dbus-1/interfaces/org.freedesktop.PackageKit.Transaction.xml
|
||||
%{_datadir}/dbus-1/interfaces/org.freedesktop.PackageKit.xml
|
||||
%{_datadir}/PackageKit/pk-upgrade-distro.sh
|
||||
%{_datadir}/PackageKit/packagekit-background.sh
|
||||
%verify(not md5 size mtime) %{_datadir}/PackageKit/transactions.db
|
||||
%{_datadir}/polkit-1/actions/org.freedesktop.packagekit.policy
|
||||
%{_datadir}/dbus-1/system-services/*
|
||||
%{_datadir}/metainfo/org.freedesktop.packagekit.metainfo.xml
|
||||
%{_unitdir}/packagekit.service
|
||||
%{_unitdir}/packagekit-background.service
|
||||
%{_unitdir}/packagekit-background.timer
|
||||
%{_sbindir}/rcpackagekit
|
||||
%{_mandir}/man?/*%{ext_man}
|
||||
%{_tmpfilesdir}/PackageKit.conf
|
||||
%if %{with offline_updates}
|
||||
%{_libexecdir}/pk-offline-update
|
||||
%{_unitdir}/packagekit-offline-update.service
|
||||
%dir %{_unitdir}/system-update.target.wants
|
||||
%{_unitdir}/system-update.target.wants/packagekit-offline-update.service
|
||||
%{_sbindir}/rcpackagekit-offline-update
|
||||
%endif
|
||||
%ghost %dir %{_localstatedir}/lib/PackageKit
|
||||
%ghost %dir %{_localstatedir}/cache/PackageKit
|
||||
%ghost %{_localstatedir}/lib/PackageKit/transactions.db
|
||||
|
||||
%files backend-zypp
|
||||
%{_libdir}/packagekit-backend/libpk_backend_zypp.so
|
||||
|
||||
%if %{with dnf}
|
||||
%files backend-dnf
|
||||
%{_libdir}/packagekit-backend/libpk_backend_dnf.so
|
||||
%{_libexecdir}/packagekit-dnf-refresh-repo
|
||||
%{python3_sitelib}/dnf-plugins/
|
||||
%endif
|
||||
|
||||
%if %{with cnf}
|
||||
%files command-not-found
|
||||
%{_sysconfdir}/profile.d/PackageKit.sh
|
||||
%{_libexecdir}/pk-command-not-found
|
||||
%config(noreplace) %{_sysconfdir}/PackageKit/CommandNotFound.conf
|
||||
%endif
|
||||
|
||||
%files gstreamer-plugin
|
||||
%ghost %{_sysconfdir}/alternatives/gst-install-plugins-helper
|
||||
%{_libexecdir}/gst-install-plugins-helper
|
||||
%{_libexecdir}/pk-gstreamer-install
|
||||
|
||||
%files gtk3-module
|
||||
%dir %{_libdir}/gnome-settings-daemon-3.0
|
||||
%dir %{_libdir}/gnome-settings-daemon-3.0/gtk-modules
|
||||
%{_libdir}/gnome-settings-daemon-3.0/gtk-modules/pk-gtk-module.desktop
|
||||
%{_libdir}/gtk-3.0/modules/*
|
||||
|
||||
%files devel
|
||||
%doc %{_datadir}/gtk-doc/html/PackageKit
|
||||
%dir %{_includedir}/PackageKit
|
||||
# Test backends are not useful, except for developers
|
||||
%{_libdir}/packagekit-backend/libpk_backend_test_fail.so
|
||||
%{_libdir}/packagekit-backend/libpk_backend_test_nop.so
|
||||
%{_libdir}/packagekit-backend/libpk_backend_test_spawn.so
|
||||
%{_libdir}/packagekit-backend/libpk_backend_test_succeed.so
|
||||
%{_libdir}/packagekit-backend/libpk_backend_test_thread.so
|
||||
%dir %{_datadir}/PackageKit/helpers/test_spawn
|
||||
%{_datadir}/PackageKit/helpers/test_spawn/search-name.sh
|
||||
|
||||
%files -n libpackagekit-glib2-18
|
||||
%license lib/packagekit-glib2/COPYING
|
||||
%{_libdir}/libpackagekit-glib2.so.*
|
||||
|
||||
%files -n typelib-1_0-PackageKitGlib-1_0
|
||||
%{_libdir}/girepository-1.0/PackageKitGlib-1.0.typelib
|
||||
|
||||
%files -n libpackagekit-glib2-devel
|
||||
%{_libdir}/libpackagekit-glib2.so
|
||||
%{_libdir}/pkgconfig/packagekit-glib2.pc
|
||||
%dir %{_includedir}/PackageKit
|
||||
%{_includedir}/PackageKit/packagekit-glib2/
|
||||
%{_datadir}/gir-1.0/PackageKitGlib-1.0.gir
|
||||
%dir %{_datadir}/vala/vapi
|
||||
%{_datadir}/vala/vapi/packagekit-glib2.vapi
|
||||
%{_datadir}/vala/vapi/packagekit-glib2.deps
|
||||
|
||||
%files branding-upstream
|
||||
%config(noreplace) %{_sysconfdir}/PackageKit/PackageKit.conf
|
||||
# This file should not be touched by users/admins, so we can replace it
|
||||
%{_sysconfdir}/PackageKit/Vendor.conf
|
||||
|
||||
%changelog
|
3
PackageKit.tmpfiles
Normal file
3
PackageKit.tmpfiles
Normal file
@ -0,0 +1,3 @@
|
||||
d /var/cache/PackageKit 0755 root root -
|
||||
d /var/lib/PackageKit/ 0755 root root -
|
||||
L+ /var/lib/PackageKit/transactions.db - - - - ../../../usr/share/PackageKit/transactions.db
|
Loading…
Reference in New Issue
Block a user