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
#
2019-01-25 16:20:21 +01:00
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
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-06 15:46:21 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
2007-12-18 04:26:13 +01:00
#
2012-02-16 08:04:25 +01:00
2018-03-01 12:12:26 +01:00
%define BUILD_CNF 0
2018-05-08 15:53:58 +02:00
%if 0%{?sle_version}
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
2010-04-15 23:37:10 +02:00
# $ pkcon search file /usr/bin/anjuta
2017-11-23 16:00:31 +01:00
#Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir}
2018-03-01 12:12:26 +01:00
%define _fillupdir %{_localstatedir}/adm/fillup-templates
2017-11-23 16:00:31 +01:00
%endif
2019-08-23 12:23:37 +02:00
2007-12-18 04:26:13 +01:00
Name : PackageKit
2018-11-28 21:31:48 +01:00
Version : 1.1.12
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
2018-04-26 13:52:13 +02: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
2018-12-26 09:26:40 +01:00
# PATCH-FIX-UPSTREAM PackageKit-return-on-transactions-going-backwards.patch gh#hughsie/PackageKit#301, bsc#1038425 sckang@suse.com -- transaction: Return directly when its state is going backwards
Patch1 : PackageKit-return-on-transactions-going-backwards.patch
2019-08-15 08:16:01 +02:00
# PATCH-FIX-UPSTREAM PackageKit-add-mutex-lock-to-protect-backend-priv-eulas.patch gh#hughsie/PackageKit#303, bsc#1038425 sckang@suse.com -- Remove pk_is_thread_default() check in pk_backend_is_eula_valid
Patch2 : PackageKit-add-mutex-lock-to-protect-backend-priv-eulas.patch
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
Patch3 : 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
2019-10-14 21:08:33 +02:00
Patch4 : PackageKit-remove-polkit-rules.patch
2019-06-19 18:13:33 +02:00
# PATCH-FIX-UPSTREAM PackageKit-zypp-fix-newest-filter.patch bsc#1137019 gh#hughsie/PackageKit#329 sckang@suse.com -- zypp: Emit installed package for newest filter
2019-10-14 21:08:33 +02:00
Patch5 : PackageKit-zypp-fix-newest-filter.patch
2019-08-19 09:48:38 +02:00
# PATCH-FIX-UPSTREAM PackageKit-zypp-fix-what-provides-newest-filter.patch bsc#984865, gh#hughsie/PackageKit#335 sckang@suse.com -- zypp: Add support for newest filter in what-provides
2019-10-14 21:08:33 +02:00
Patch6 : PackageKit-zypp-fix-what-provides-newest-filter.patch
2019-08-23 12:23:37 +02:00
# PATCH-FIX-UPSTREAM PackageKit-drop-gtk2.patch gh#/hughsie/PackageKit#333 - Port away from gtk2 dependency
2019-10-14 21:08:33 +02:00
Patch7 : PackageKit-drop-gtk2.patch
2019-10-09 12:00:01 +02:00
# PATCH-FIX-UPSTREAM PackageKit-zypp-get-updates-dup-or-up.patch gh#hughsie/PackageKit#343 sckang@suse.com -- zypp: Fix get-updates in Tumbleweed
2019-10-14 21:08:33 +02:00
Patch8 : PackageKit-zypp-get-updates-dup-or-up.patch
# PATCH-FIX-UPSTREAM PackageKit-zypp-dont-set-upgrade-mode-on-updating-specific-packages.patch gh#hughsie/PackageKit#345 sckang@suse.com -- zypp: Don't set upgrade mode in update-packages
Patch9 : PackageKit-zypp-dont-set-upgrade-mode-on-updating-specific-packages.patch
Patch10 : zypp-perform-actions-disallowed-by-update-in-upgrade-mode.patch
2019-08-23 12:23:37 +02:00
BuildRequires : autoconf-archive
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
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
2012-01-18 09:09:10 +01:00
BuildRequires : mozilla-nspr-devel >= 4.8
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
2018-03-22 10:38:18 +01:00
BuildRequires : translation-update-upstream
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}
Requires(post) : %fillup_prereq
2010-10-15 16:49:28 +02:00
Recommends: %{name} -lang
2019-01-25 16:20:21 +01:00
%if 0%{suse_version} < 1500
2015-11-10 13:35:31 +01:00
Suggests : cron
2019-01-25 16:20:21 +01:00
%endif
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}
%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.
2010-04-15 23:37:10 +02:00
%package gstreamer-plugin
2019-03-18 19:05:28 +01:00
Summary : GStreamer plugin 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 : Productivity/Multimedia/Other
2010-04-15 23:37:10 +02:00
Requires(post) : update-alternatives
Requires(postun) : update-alternatives
Recommends: %{name} = %{version}
2014-09-18 19:14:00 +02:00
Supplements: packageand(%{name} :gstreamer-plugins-base)
2010-04-15 23:37:10 +02:00
%description gstreamer-plugin
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-04-21 11:37:42 +02:00
%package gtk3-module
2019-03-18 19:05:28 +01:00
Summary : GTK3 backend 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/Libraries
2011-04-21 11:37:42 +02:00
Recommends: %{name} = %{version}
Supplements: packageand(%{name} :gtk3)
2011-12-23 10:57:35 +01:00
%glib2_gsettings_schema_requires
2011-04-21 11:37:42 +02:00
%description gtk3-module
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.
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}
2011-05-09 17:03:50 +02:00
Requires : libpackagekit-glib2-devel
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}
Supplements: packageand(%{name} :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
2019-08-23 12:23:37 +02:00
%autosetup -p1
2013-01-16 22:41:02 +01:00
translation-update-upstream
2007-12-18 04:26:13 +01:00
%build
2019-08-23 12:23:37 +02:00
NOCONFIGURE=1 ./autogen.sh
2016-09-20 20:29:11 +02:00
%if !0%{?is_opensuse}
export CFLAGS=" %{optflags} - D S L E "
%endif
2007-12-18 04:26:13 +01:00
%configure \
2009-05-20 21:55:04 +02:00
--disable-static \
2008-02-28 20:24:11 +01:00
--enable-zypp \
2013-01-16 22:41:02 +01:00
--enable-gstreamer-plugin \
2015-11-10 13:35:31 +01:00
%if ! %{BUILD_CNF}
2013-01-16 22:41:02 +01:00
--disable-command-not-found \
%else
--enable-command-not-found \
2013-02-19 15:38:12 +01:00
%endif
2019-08-23 12:23:37 +02:00
--enable-systemd \
2018-04-17 09:28:33 +02:00
%if %{with offline_updates}
2019-08-23 12:23:37 +02:00
--enable-offline-update \
2013-02-19 15:38:12 +01:00
%else
2019-08-23 12:23:37 +02:00
--disable-offline-update \
2019-01-25 16:20:21 +01:00
%endif
%if 0%{suse_version} >= 1500
2019-08-23 12:23:37 +02:00
--disable-cron \
2010-04-15 23:37:10 +02:00
%endif
2019-08-23 12:23:37 +02:00
%{nil}
%make_build
2007-12-18 04:26:13 +01:00
%install
2018-03-01 12:12:26 +01:00
%make_install
2013-01-16 23:04:29 +01:00
find %{buildroot} -type f -name " * . l a " -delete -print
2019-01-25 16:20:21 +01:00
%if 0%{suse_version} < 1500
2010-04-15 23:37:10 +02:00
# move the cron configuration to a sysconfig template
2017-11-23 16:00:31 +01:00
install -d %{buildroot} %{_fillupdir}
mv %{buildroot} %{_sysconfdir} /sysconfig/packagekit-background %{buildroot} %{_fillupdir} /sysconfig.packagekit-background
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-01-25 16:20:21 +01:00
%if 0%{suse_version} >= 1500
2019-03-18 19:05:28 +01:00
%service_add_pre packagekit-background.service packagekit-background.timer
2019-01-25 16:20:21 +01:00
%endif
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
2019-01-25 16:20:21 +01:00
%if 0%{suse_version} < 1500
2010-04-15 23:37:10 +02:00
%{fillup_only -n packagekit-background}
2019-01-25 16:20:21 +01:00
%endif
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-01-25 16:20:21 +01:00
%if 0%{suse_version} >= 1500
2019-03-18 19:05:28 +01:00
%service_add_post packagekit-background.service packagekit-background.timer
2019-01-25 16:20:21 +01:00
%endif
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-01-25 16:20:21 +01:00
%if 0%{suse_version} >= 1500
2019-03-18 19:05:28 +01:00
%service_del_preun packagekit-background.service packagekit-background.timer
2019-01-25 16:20:21 +01:00
%endif
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
2014-10-09 20:09:39 +02:00
export DISABLE_RESTART_ON_UPDATE=yes
2013-12-01 18:39:29 +01:00
%service_del_postun packagekit.service
2019-01-25 16:20:21 +01:00
%if 0%{suse_version} >= 1500
2019-03-18 19:05:28 +01:00
%service_del_postun packagekit-background.service packagekit-background.timer
2019-01-25 16:20:21 +01:00
%endif
2018-04-17 09:28:33 +02:00
%if %{with offline_updates}
2013-01-16 22:41:02 +01:00
%service_del_postun 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
2017-11-07 10:40:59 +01:00
%if 0%{?suse_version} < 1330
2011-12-23 10:57:35 +01:00
%post gtk3-module
%glib2_gsettings_schema_post
2008-11-03 14:16:09 +01:00
2011-12-23 10:57:35 +01:00
%postun gtk3-module
%glib2_gsettings_schema_postun
2017-11-07 10:40:59 +01:00
%endif
2011-12-23 10:57:35 +01:00
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
%dir %{_datadir} /PackageKit/helpers/test_spawn
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
2019-01-25 16:20:21 +01:00
%if 0%{suse_version} < 1500
2010-04-15 23:37:10 +02:00
%{_sysconfdir} /cron.daily/packagekit-background.cron
2019-01-25 16:20:21 +01:00
%endif
2007-12-18 04:26:13 +01:00
%{_sysconfdir} /dbus-1/system.d/org.freedesktop.PackageKit.conf
2015-11-10 13:35:31 +01:00
%if %{BUILD_CNF}
2009-02-16 01:27:05 +01:00
%{_sysconfdir} /profile.d/PackageKit.sh
2010-04-15 23:37:10 +02:00
%endif
2019-01-25 16:20:21 +01:00
%if 0%{suse_version} < 1500
2017-11-23 16:00:31 +01:00
%{_fillupdir} /sysconfig.packagekit-background
2019-01-25 16:20:21 +01:00
%endif
2007-12-18 04:26:13 +01:00
%{_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
2015-11-10 13:35:31 +01:00
%if %{BUILD_CNF}
2009-07-20 10:39:18 +02:00
%{_libexecdir} /pk-command-not-found
2010-04-15 23:37:10 +02:00
%endif
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
2007-12-18 04:26:13 +01:00
%{_datadir} /PackageKit/helpers/test_spawn/search-name.sh
2008-09-24 17:19:16 +02:00
%{_datadir} /PackageKit/pk-upgrade-distro.sh
2019-01-25 16:20:21 +01:00
%if 0%{suse_version} >= 1500
%{_datadir} /PackageKit/packagekit-background.sh
%endif
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
%if 0%{suse_version} >= 1500
%{_unitdir} /packagekit-background.service
%{_unitdir} /packagekit-background.timer
%endif
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
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
2018-04-26 13:52:13 +02:00
%dir %{_datadir} /vala/vapi
2015-09-02 10:03:31 +02:00
%{_datadir} /vala/vapi/packagekit-glib2.vapi
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
2008-11-03 14:16:09 +01:00
%dir %{_includedir} /PackageKit
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
2008-11-03 14:16:09 +01:00
2010-03-31 02:08:42 +02:00
%files branding-upstream
2015-11-10 13:35:31 +01:00
%if %{BUILD_CNF}
2010-03-31 02:08:42 +02:00
%config (noreplace) %{_sysconfdir} /PackageKit/CommandNotFound.conf
2010-04-15 23:37:10 +02:00
%endif
2010-03-31 02:08:42 +02:00
%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