2007-12-18 04:26:13 +01:00
#
2011-02-17 13:10:30 +01:00
# spec file for package PackageKit
2007-12-18 04:26:13 +01:00
#
2021-01-30 13:28:55 +01:00
# Copyright (c) 2021 SUSE LLC
2007-12-18 04:26:13 +01:00
#
2008-08-18 18:59:14 +02:00
# 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.
2019-11-18 11:48:19 +01:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2007-12-18 04:26:13 +01:00
#
2012-02-16 08:04:25 +01:00
2021-03-15 10:42:48 +01:00
%if 0%{?sle_version} && 0%{?sle_version} < 160000
2018-04-17 09:28:33 +02:00
%bcond_with offline_updates
2018-05-08 15:53:58 +02:00
%else
%bcond_without offline_updates
2018-04-17 09:28:33 +02:00
%endif
2020-03-06 14:37:28 +01:00
2020-09-11 10:20:50 +02:00
# Only make DNF backend available openSUSE Leap 15.1+
2020-04-27 19:36:30 +02:00
%if 0%{?sle_version} >= 150100 || 0%{?suse_version} >= 1550
2020-03-06 14:37:28 +01:00
%bcond_without dnf
2021-07-26 11:22:08 +02:00
%bcond_with cnf
2020-03-06 14:37:28 +01:00
%else
%bcond_with dnf
2021-01-27 16:12:26 +01:00
%bcond_with cnf
2020-03-06 14:37:28 +01:00
%endif
2007-12-18 04:26:13 +01:00
Name : PackageKit
2021-11-05 17:11:43 +01:00
Version : 1.2.4
2011-12-12 17:08:55 +01:00
Release : 0
2012-04-27 19:28:33 +02:00
Summary : Simple software installation management software
2018-03-01 12:12:26 +01:00
License : GPL-2.0-or-later
2012-04-27 19:28:33 +02:00
Group : System/Daemons
2020-03-12 21:35:53 +01:00
URL : https://www.freedesktop.org/software/PackageKit
2019-08-23 12:23:37 +02:00
Source0 : %{url} /releases/%{name} -%{version} .tar.xz
Source1 : %{url} /releases/%{name} -%{version} .tar.xz.asc
2012-04-27 19:28:33 +02:00
Source2 : baselibs.conf
2018-08-10 11:11:46 +02:00
Source3 : PackageKit.tmpfiles
2015-01-26 12:21:41 +01:00
Source99 : PackageKit.keyring
2019-08-23 12:23:37 +02:00
2019-01-25 16:20:21 +01:00
# PATCH-FEATURE-OPENSUSE PackageKit-systemd-timers.patch bsc#1115410 sckang@suse.com -- Migrate from cron to systemd timers
2020-03-06 14:37:28 +01:00
Patch1 : PackageKit-systemd-timers.patch
2019-03-22 17:52:00 +01:00
# PATCH-FIX-OPENSUSE PackageKit-remove-polkit-rules.patch bsc#1125434 sckang@suse.com -- Remove polkit rules file
2020-03-06 14:37:28 +01:00
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
2020-09-11 10:20:50 +02:00
Patch3 : PackageKit-dnf-Add-support-for-AppStream-repodata-basenames-use.patch
2021-11-05 17:11:43 +01:00
# PATCH-FIX-UPSTREAM 505.patch -- pk-offline: Add flags to D-Bus invoking methods
Patch4 : https://patch-diff.githubusercontent.com/raw/PackageKit/PackageKit/pull/505.patch
2020-12-29 12:50:30 +01:00
# 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
Patch5 : PackageKit-fix-crash-pre-dbus.patch
2021-08-23 10:35:37 +02:00
# PATCH-FIX-UPSTREAM PackageKit-zypp-fix-crash-with-empty-search-string.patch gh#hughsie/PackageKit/commit#21ccf49, bsc#1179287 sckang@suse.com -- zypp: Fix crash when search string is NULL
2021-11-11 14:22:15 +01:00
Patch6 : PackageKit-zypp-fix-crash-with-empty-search-string.patch
# PATCH-FIX-SLE PackageKit-zypp-c++17.patch gh#hughsie/PackageKit/commit/1a6bb6ae6, bsc#1192349 sckang@suse.com -- Fix build failure when building with libzypp > 17.28.5 and gcc < 11.
2021-11-11 14:23:16 +01:00
Patch1000 : PackageKit-zypp-c++17.patch
2019-08-23 12:23:37 +02:00
2009-02-16 01:27:05 +01:00
BuildRequires : fdupes
BuildRequires : gcc-c++
2010-03-31 02:08:42 +02:00
BuildRequires : gobject-introspection-devel
2014-09-10 17:29:03 +02:00
BuildRequires : gstreamer-devel
BuildRequires : gstreamer-plugins-base-devel
2009-02-16 01:27:05 +01:00
BuildRequires : gtk-doc
2011-04-21 11:37:42 +02:00
BuildRequires : gtk3-devel
2009-02-16 01:27:05 +01:00
BuildRequires : intltool
2009-06-12 18:42:12 +02:00
BuildRequires : libarchive-devel
2009-02-16 01:27:05 +01:00
BuildRequires : libcppunit-devel
2020-03-06 14:37:28 +01:00
%if %{with dnf}
BuildRequires : appstream-glib-devel
2020-09-11 10:20:50 +02:00
BuildRequires : libdnf-devel >= 0.43.1
2020-03-06 14:37:28 +01:00
%endif
2010-03-31 02:08:42 +02:00
BuildRequires : libgudev-1_0-devel
2011-12-23 10:57:35 +01:00
BuildRequires : libtool
2009-02-16 01:27:05 +01:00
BuildRequires : libzypp-devel
2020-09-11 10:20:50 +02:00
BuildRequires : meson >= 0.50
2012-01-18 09:09:10 +01:00
BuildRequires : mozilla-nspr-devel >= 4.8
2020-09-11 10:20:50 +02:00
BuildRequires : ninja
2017-06-29 14:57:19 +02:00
BuildRequires : pkgconfig
2011-12-23 10:57:35 +01:00
BuildRequires : polkit-devel >= 0.98
2011-10-04 09:04:42 +02:00
# We need the %%mime_database_* macros
BuildRequires : shared-mime-info
2009-02-16 01:27:05 +01:00
BuildRequires : sqlite-devel
2015-09-02 10:03:31 +02:00
BuildRequires : vala
2015-11-10 13:35:31 +01:00
BuildRequires : pkgconfig(bash-completion) >= 2.0
2015-09-02 10:03:31 +02:00
BuildRequires : pkgconfig(libsystemd)
2013-01-16 22:41:02 +01:00
BuildRequires : pkgconfig(systemd)
2012-02-16 08:04:25 +01:00
# We really want a working backend (likely zypp)
Requires : %{name} -backend
2015-11-10 13:35:31 +01:00
Requires : %{name} -branding = %{version}
2020-03-06 14:37:28 +01:00
Suggests : %{name} -backend-zypp
2012-04-27 19:28:33 +02:00
# doc package only contained the website, and got removed in 0.7.4
Obsoletes : %{name} -doc < 0.7.4
2011-12-23 10:57:35 +01:00
# gtk+ 2 module was removed in 0.7.0
Obsoletes : %{name} -gtk-module < 0.7.0
2010-08-10 00:02:29 +02:00
# ruck was removed in 0.6.4, make sure it gets removed
Obsoletes : ruck <= 0.6.3
2016-02-19 16:01:23 +01:00
# the browser-plugin was dropped with version 1.1.0
Obsoletes : %{name} -browser-plugin < 1.1.0
2019-03-18 19:05:28 +01:00
%{?systemd_ordering}
2007-12-18 04:26:13 +01:00
%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.
2012-02-16 08:04:25 +01:00
%package backend-zypp
2019-03-18 19:05:28 +01:00
Summary : Zypp backend for the PackageKit installation management software
2018-03-01 12:12:26 +01:00
License : GPL-2.0-or-later
2012-02-16 08:04:25 +01:00
Group : System/Daemons
Requires : %{name} = %{version}
Provides : %{name} -backend = %{version}
2020-03-06 14:37:28 +01:00
Conflicts : %{name} -backend
Supplements: (%{name} and libzypp)
2012-02-16 08:04:25 +01:00
%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.
2020-03-06 14:37:28 +01:00
%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
2021-03-15 10:42:48 +01:00
Supplements: (%{name} and dnf-data)
Recommends: rpm-repos-openSUSE
2021-01-27 16:12:26 +01:00
Suggests : PackageKit-command-not-found
2020-03-06 14:37:28 +01:00
# Stricter dependency to keep things sane
%requires_ge %(rpm -qf " $ ( r e a d l i n k - f %{_libdir} / l i b d n f . s o ) " )
%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
2021-01-27 16:12:26 +01:00
%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
2010-04-15 23:37:10 +02:00
%package gstreamer-plugin
2020-11-06 14:36:48 +01:00
Summary : Install GStreamer codecs using PackageKit
2018-03-01 12:12:26 +01:00
License : GPL-2.0-or-later
2011-12-23 10:57:35 +01:00
Group : Productivity/Multimedia/Other
2010-04-15 23:37:10 +02:00
Requires(post) : update-alternatives
2021-03-18 19:31:32 +01:00
Requires(postun) : update-alternatives
2010-04-15 23:37:10 +02:00
Recommends: %{name} = %{version}
2020-03-06 14:37:28 +01:00
Supplements: (%{name} and gstreamer-plugins-base)
2010-04-15 23:37:10 +02:00
%description gstreamer-plugin
2020-11-06 14:36:48 +01:00
The PackageKit GStreamer plugin allows any Gstreamer application to install
codecs from configured repositories using PackageKit.
2010-04-15 23:37:10 +02:00
2011-04-21 11:37:42 +02:00
%package gtk3-module
2020-11-06 14:36:48 +01:00
Summary : Install fonts automatically using PackageKit
2018-03-01 12:12:26 +01:00
License : GPL-2.0-or-later
2011-12-23 10:57:35 +01:00
Group : System/Libraries
2011-04-21 11:37:42 +02:00
Recommends: %{name} = %{version}
2020-03-06 14:37:28 +01:00
Supplements: (%{name} and gtk3)
2011-12-23 10:57:35 +01:00
%glib2_gsettings_schema_requires
2011-04-21 11:37:42 +02:00
%description gtk3-module
2020-11-06 14:36:48 +01:00
The PackageKit GTK3+ module allows any Pango application to install
fonts from configured repositories using PackageKit.
2011-04-21 11:37:42 +02:00
2007-12-18 04:26:13 +01:00
%package devel
2019-03-18 19:05:28 +01:00
Summary : Header files for development with PackageKit
2018-03-01 12:12:26 +01:00
License : GPL-2.0-or-later
2011-12-23 10:57:35 +01:00
Group : Development/Libraries/C and C++
2007-12-18 04:26:13 +01:00
Requires : %{name} = %{version}
2020-09-11 10:20:50 +02:00
Requires : libpackagekit-glib2-devel = %{version} -%{release}
2007-12-18 04:26:13 +01:00
%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.
2014-09-10 17:29:03 +02:00
%package -n libpackagekit-glib2-18
2019-03-18 19:05:28 +01:00
Summary : GLib integration of PackageKit
2018-03-01 12:12:26 +01:00
License : LGPL-2.1-or-later
2011-12-23 10:57:35 +01:00
Group : System/Libraries
2011-05-09 17:03:50 +02:00
Recommends: %{name}
2013-01-18 14:19:59 +01:00
Conflicts : %{name} < %{version}
2010-04-25 18:42:54 +02:00
Provides : libpackagekit-glib12 = %{version}
Obsoletes : libpackagekit-glib12 < %{version}
2008-11-03 14:16:09 +01:00
2014-09-10 17:29:03 +02:00
%description -n libpackagekit-glib2-18
2008-11-03 14:16:09 +01:00
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.
2011-12-23 10:57:35 +01:00
%package -n typelib-1_0-PackageKitGlib-1_0
2019-03-18 19:05:28 +01:00
Summary : Introspection bindings for PackageKit's GLib integration
2018-03-01 12:12:26 +01:00
License : LGPL-2.1-or-later
2011-12-23 10:57:35 +01:00
Group : System/Libraries
2008-11-03 14:16:09 +01:00
2011-12-23 10:57:35 +01:00
%description -n typelib-1_0-PackageKitGlib-1_0
2008-11-03 14:16:09 +01:00
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.
2011-12-23 10:57:35 +01:00
This package provides the GObject Introspection bindings for the
PackageKit client library.
2008-11-03 14:16:09 +01:00
2011-12-23 10:57:35 +01:00
%package -n libpackagekit-glib2-devel
2019-03-18 19:05:28 +01:00
Summary : GLib integration of PackageKit
2018-03-01 12:12:26 +01:00
License : LGPL-2.1-or-later
2011-12-23 10:57:35 +01:00
Group : Development/Libraries/GNOME
2014-09-10 17:29:03 +02:00
Requires : libpackagekit-glib2-18 = %{version}
2011-12-23 10:57:35 +01:00
Requires : typelib-1_0-PackageKitGlib-1_0 = %{version}
Provides : libpackagekit-glib12-devel = %{version}
Obsoletes : libpackagekit-glib12-devel < %{version}
2008-11-03 14:16:09 +01:00
2011-12-23 10:57:35 +01:00
%description -n libpackagekit-glib2-devel
2009-02-16 01:27:05 +01:00
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.
2010-03-31 02:08:42 +02:00
%package branding-upstream
2019-03-18 19:05:28 +01:00
Summary : Upstream configuration for the PackageKit installation management software
2018-03-01 12:12:26 +01:00
License : GPL-2.0-or-later
2011-12-23 10:57:35 +01:00
Group : System/Daemons
2011-07-06 18:44:29 +02:00
Requires : %{name} = %{version}
2020-03-06 14:37:28 +01:00
Supplements: (%{name} and branding-upstream)
2018-03-01 12:12:26 +01:00
Conflicts : %{name} -branding
2015-11-10 13:35:31 +01:00
Provides : %{name} -branding = %{version}
2011-05-09 17:03:50 +02:00
BuildArch : noarch
2010-03-31 02:08:42 +02:00
#BRAND: Provide configuration files -
#BRAND: /etc/PackageKit/*
%description branding-upstream
2011-07-06 18:44:29 +02:00
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.
2010-03-31 02:08:42 +02:00
2008-11-03 14:16:09 +01:00
%lang_package
2015-11-10 13:35:31 +01:00
2007-12-18 04:26:13 +01:00
%prep
2021-11-16 15:25:09 +01:00
%autosetup -p1
2020-03-06 14:37:28 +01:00
2007-12-18 04:26:13 +01:00
%build
2020-09-11 10:20:50 +02:00
%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
%meson_build
2007-12-18 04:26:13 +01:00
%install
2020-09-11 10:20:50 +02:00
%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
2019-01-25 16:20:21 +01:00
%endif
2016-07-14 00:47:51 +02:00
# Prepare for update-alternatives
mkdir -p %{buildroot} %{_sysconfdir} /alternatives
ln -s -f %{_sysconfdir} /alternatives/gst-install-plugins-helper %{buildroot} /%{_libexecdir} /gst-install-plugins-helper
2014-09-18 19:14:00 +02:00
# Add rcFOO symlinks
mkdir -p %{buildroot} %{_sbindir}
ln -sf %{_sbindir} /service %{buildroot} %{_sbindir} /rcpackagekit
2018-04-17 09:28:33 +02:00
%if %{with offline_updates}
2014-09-18 19:14:00 +02:00
ln -sf %{_sbindir} /service %{buildroot} %{_sbindir} /rcpackagekit-offline-update
%endif
2018-08-10 11:11:46 +02:00
# 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
2018-11-28 21:31:48 +01:00
install -d -m 0755 %{buildroot} %{_prefix} /lib/tmpfiles.d/
install -m 0644 %{SOURCE3} %{buildroot} %{_prefix} /lib/tmpfiles.d/%{name} .conf
2014-09-18 19:14:00 +02:00
2011-02-13 22:19:08 +01:00
%find_lang %{name} %{?no_lang_C}
2019-03-18 19:05:28 +01:00
%fdupes %{buildroot} /%{_prefix}
2007-12-18 04:26:13 +01:00
2015-11-10 13:35:31 +01:00
%pre
2013-12-01 18:39:29 +01:00
%service_add_pre packagekit.service
2019-03-18 19:05:28 +01:00
%service_add_pre packagekit-background.service packagekit-background.timer
2018-04-17 09:28:33 +02:00
%if %{with offline_updates}
2013-01-16 22:41:02 +01:00
%service_add_pre packagekit-offline-update.service
2013-02-20 00:14:20 +01:00
%endif
2013-01-16 22:41:02 +01:00
2010-04-15 23:37:10 +02:00
%post
2011-02-13 22:19:08 +01:00
%mime_database_post
2013-12-01 18:39:29 +01:00
%service_add_post packagekit.service
2019-03-18 19:05:28 +01:00
%service_add_post packagekit-background.service packagekit-background.timer
2018-04-17 09:28:33 +02:00
%if %{with offline_updates}
2013-01-16 22:41:02 +01:00
%service_add_post packagekit-offline-update.service
2013-02-19 15:38:12 +01:00
%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
2018-08-10 11:11:46 +02:00
%tmpfiles_create %_tmpfilesdir /%{name} .conf
2013-01-16 22:41:02 +01:00
2015-11-10 13:35:31 +01:00
%preun
2013-12-01 18:39:29 +01:00
%service_del_preun packagekit.service
2019-03-18 19:05:28 +01:00
%service_del_preun packagekit-background.service packagekit-background.timer
2018-04-17 09:28:33 +02:00
%if %{with offline_updates}
2013-01-16 22:41:02 +01:00
%service_del_preun packagekit-offline-update.service
2013-02-19 15:38:12 +01:00
%endif
2011-02-13 22:19:08 +01:00
%postun
%mime_database_postun
2014-08-07 09:22:03 +02:00
# Do not restart PackageKit on upgrade - it kills the transaction
2020-10-28 14:43:20 +01:00
%service_del_postun_without_restart packagekit.service
%service_del_postun_without_restart packagekit-background.service packagekit-background.timer
2018-04-17 09:28:33 +02:00
%if %{with offline_updates}
2020-10-28 14:43:20 +01:00
%service_del_postun_without_restart packagekit-offline-update.service
2013-02-19 15:38:12 +01:00
%endif
2010-04-15 23:37:10 +02:00
%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
2014-09-10 17:29:03 +02:00
%post -n libpackagekit-glib2-18 -p /sbin/ldconfig
%postun -n libpackagekit-glib2-18 -p /sbin/ldconfig
2011-05-09 17:03:50 +02:00
2008-11-03 14:16:09 +01:00
%files lang -f %{name}.lang
2010-03-31 02:08:42 +02:00
%files
2018-03-01 12:12:26 +01:00
%license COPYING
2019-03-22 17:52:00 +01:00
%doc AUTHORS HACKING NEWS README policy/org.freedesktop.packagekit.rules
2007-12-18 04:26:13 +01:00
%dir %{_sysconfdir} /PackageKit
%dir %{_datadir} /PackageKit
%dir %{_datadir} /PackageKit/helpers
2008-01-10 02:36:18 +01:00
%dir %{_libdir} /packagekit-backend
2018-08-10 11:11:46 +02:00
%dir %{_usr}/lib/tmpfiles.d
2013-05-09 12:35:19 +02:00
%{_datadir} /bash-completion/completions/pkcon
2007-12-18 04:26:13 +01:00
%{_sysconfdir} /dbus-1/system.d/org.freedesktop.PackageKit.conf
%{_bindir} /pkcon
%{_bindir} /pkmon
2012-02-16 08:04:25 +01:00
%{_libdir} /packagekit-backend/libpk_backend_dummy.so
2010-08-10 00:02:29 +02:00
%{_libexecdir} /packagekitd
2014-09-10 17:29:03 +02:00
%{_libexecdir} /packagekit-direct
2012-02-16 08:04:25 +01:00
%{_datadir} /dbus-1/interfaces/org.freedesktop.PackageKit.Transaction.xml
%{_datadir} /dbus-1/interfaces/org.freedesktop.PackageKit.xml
2008-09-24 17:19:16 +02:00
%{_datadir} /PackageKit/pk-upgrade-distro.sh
2019-01-25 16:20:21 +01:00
%{_datadir} /PackageKit/packagekit-background.sh
2018-08-10 11:11:46 +02:00
%verify (not md5 size mtime) %{_datadir} /PackageKit/transactions.db
2009-07-31 21:06:16 +02:00
%{_datadir} /polkit-1/actions/org.freedesktop.packagekit.policy
2007-12-18 04:26:13 +01:00
%{_datadir} /dbus-1/system-services/*
2013-12-01 18:39:29 +01:00
%{_unitdir} /packagekit.service
2019-01-25 16:20:21 +01:00
%{_unitdir} /packagekit-background.service
%{_unitdir} /packagekit-background.timer
2014-09-18 19:14:00 +02:00
%{_sbindir} /rcpackagekit
2018-03-01 12:12:26 +01:00
%{_mandir} /man?/*%{ext_man}
2018-10-17 12:21:08 +02:00
%{_tmpfilesdir} /PackageKit.conf
2018-04-17 09:28:33 +02:00
%if %{with offline_updates}
2013-02-19 15:38:12 +01:00
%{_libexecdir} /pk-offline-update
2013-01-16 22:41:02 +01:00
%{_unitdir} /packagekit-offline-update.service
2014-10-04 14:34:15 +02:00
%dir %{_unitdir} /system-update.target.wants
%{_unitdir} /system-update.target.wants/packagekit-offline-update.service
2014-09-18 19:14:00 +02:00
%{_sbindir} /rcpackagekit-offline-update
2013-02-19 15:38:12 +01:00
%endif
2018-10-17 12:21:08 +02:00
%ghost %dir %{_localstatedir} /lib/PackageKit
%ghost %dir %{_localstatedir} /cache/PackageKit
%ghost %{_localstatedir} /lib/PackageKit/transactions.db
2010-04-15 23:37:10 +02:00
2012-02-16 08:04:25 +01:00
%files backend-zypp
%{_libdir} /packagekit-backend/libpk_backend_zypp.so
2020-03-06 14:37:28 +01:00
%if %{with dnf}
%files backend-dnf
%{_libdir} /packagekit-backend/libpk_backend_dnf.so
%endif
2021-01-27 16:12:26 +01:00
%if %{with cnf}
%files command-not-found
%{_sysconfdir} /profile.d/PackageKit.sh
%{_libexecdir} /pk-command-not-found
%config (noreplace) %{_sysconfdir} /PackageKit/CommandNotFound.conf
%endif
2010-04-15 23:37:10 +02:00
%files gstreamer-plugin
2016-07-14 00:47:51 +02:00
%ghost %{_sysconfdir} /alternatives/gst-install-plugins-helper
%{_libexecdir} /gst-install-plugins-helper
2010-04-15 23:37:10 +02:00
%{_libexecdir} /pk-gstreamer-install
2011-04-21 11:37:42 +02:00
%files gtk3-module
2011-12-23 10:57:35 +01:00
%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
2011-04-21 11:37:42 +02:00
%{_libdir} /gtk-3.0/modules/*
2007-12-18 04:26:13 +01:00
%files devel
2011-12-23 10:57:35 +01:00
%doc %{_datadir} /gtk-doc/html/PackageKit
2020-09-11 10:20:50 +02:00
%dir %{_includedir} /PackageKit
2012-02-16 08:04:25 +01:00
# 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
2020-09-11 10:20:50 +02:00
%dir %{_datadir} /PackageKit/helpers/test_spawn
%{_datadir} /PackageKit/helpers/test_spawn/search-name.sh
2008-11-03 14:16:09 +01:00
2014-09-10 17:29:03 +02:00
%files -n libpackagekit-glib2-18
2018-03-01 12:12:26 +01:00
%license lib/packagekit-glib2/COPYING
2010-03-31 02:08:42 +02:00
%{_libdir} /libpackagekit-glib2.so.*
2011-12-23 10:57:35 +01:00
%files -n typelib-1_0-PackageKitGlib-1_0
2010-03-31 02:08:42 +02:00
%{_libdir} /girepository-1.0/PackageKitGlib-1.0.typelib
2008-11-03 14:16:09 +01:00
2010-03-31 02:08:42 +02:00
%files -n libpackagekit-glib2-devel
%{_libdir} /libpackagekit-glib2.so
%{_libdir} /pkgconfig/packagekit-glib2.pc
2008-11-03 14:16:09 +01:00
%dir %{_includedir} /PackageKit
2010-03-31 02:08:42 +02:00
%{_includedir} /PackageKit/packagekit-glib2/
2010-09-24 00:00:55 +02:00
%{_datadir} /gir-1.0/PackageKitGlib-1.0.gir
2020-09-11 10:20:50 +02:00
%dir %{_datadir} /vala/vapi
%{_datadir} /vala/vapi/packagekit-glib2.vapi
%{_datadir} /vala/vapi/packagekit-glib2.deps
2008-11-03 14:16:09 +01:00
2010-03-31 02:08:42 +02:00
%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
2007-12-18 04:26:13 +01:00
%changelog