Sisyphus repository
Last update: 21 october 2019 | SRPMs: 17508 | Visits: 15341003
en ru br
ALT Linux repos

Group :: Other
RPM: packagekit

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

Summary:   Package management service
Name:      packagekit
Version:   1.1.12
Release:   alt9
License:   GPLv2+ and LGPLv2+
Group:     Other


Source: %name-%version.tar
Patch1: %name-%version-alt.patch

BuildRequires(pre): rpm-build-python3
BuildRequires: gcc-c++
BuildRequires: gobject-introspection-devel
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: libsqlite3-devel
BuildRequires: libpolkit-devel
BuildRequires: libsystemd-devel
BuildRequires: autoconf-archive
BuildRequires: libapt-devel
BuildRequires: gstreamer1.0-devel
BuildRequires: gst-plugins1.0-devel
BuildRequires: appstream-devel

BuildRequires: vala-tools
BuildRequires: libgtk+2-devel
BuildRequires: libgtk+3-devel

BuildRequires: boost-devel

PackageKit is a D-Bus abstraction layer that allows the session user
to manage packages in a secure way using a cross-distro,
cross-architecture API.

%package -n lib%name-glib
Summary: GLib libraries for accessing PackageKit
Group: Other
Requires: %name = %EVR

%description -n lib%name-glib
GLib libraries for accessing PackageKit.
Group: Other

%package cron
Summary: Cron job and related utilities for PackageKit
Group: Other
Requires: %name = %EVR

%description cron
Crontab and utilities for running PackageKit as a cron job.

%package -n lib%name-glib-devel
Summary: GLib Libraries and headers for PackageKit
Group: Development/Other
Requires: lib%name-glib = %EVR

%description -n lib%name-glib-devel
GLib headers and libraries for PackageKit.

%package gstreamer-plugin
Summary: Install GStreamer codecs using PackageKit
Group: Other
Requires: lib%name-glib = %EVR

%description gstreamer-plugin
The PackageKit GStreamer plugin allows any Gstreamer application to install
codecs from configured repositories using PackageKit.

%package -n lib%name-gtk3-module
Summary: Install fonts automatically using PackageKit
Group: Other
Requires: lib%name-glib = %EVR

%description -n lib%name-gtk3-module
The PackageKit GTK3+ module allows any Pango application to install
fonts from configured repositories using PackageKit.

%package command-not-found
Summary: Ask the user to install command line programs automatically
Group: Other
Requires: lib%name-glib = %EVR

%description command-not-found
A simple helper that offers to install new packages on the command line
using PackageKit.

%package -n python3-module-%name
Summary: Python3 backend for PackageKit
Group: Development/Python3
BuildArch: noarch
Requires: %name = %EVR

%description -n python3-module-%name
Python3 backend for PackageKit.

%patch1 -p1

%add_optflags -std=c++14
%add_optflags -D_FILE_OFFSET_BITS=64
%define _configure_script ./
%configure \
--disable-static \
--localstatedir=%_var \
--disable-bash-completion \
--enable-aptcc \
--enable-python3 \
--disable-dummy \



find %buildroot -name '*.la' -delete

# Create directories for downloaded appstream data

mkdir -p %buildroot%_cachedir/app-info/{icons,xmls}
touch %buildroot%_cachedir/PackageKit/groups.sqlite

# create a link that GStreamer will recognise

pushd %buildroot%_libexecdir
ln -s pk-gstreamer-install gst-install-plugins-helper

# get rid of test backend

rm -f %buildroot%_libdir/packagekit-backend/libpk_backend_test_*.so
rm -rf %buildroot%_datadir/PackageKit/helpers/test_spawn

# Following scripts seems unused, and it needs to be patched for ALT should it be used

rm -f %buildroot%_datadir/PackageKit/

touch %buildroot%_localstatedir/PackageKit/upgrade_lock

%find_lang PackageKit

if sd_booted && "$SYSTEMCTL" --version >/dev/null 2>&1; then
"$SYSTEMCTL" daemon-reload
if [ "$RPM_INSTALL_ARG1" -eq 1 ]; then
"$SYSTEMCTL" -q preset %name
# only request stop of service, don't restart it
"$SYSTEMCTL" is-active --quiet %name && %_bindir/pkcon quit ||:

%preun_service %name ||:

%triggerin -- librpm7
# only on update of librpm7
if [ $2 -eq 2 ] ; then
# if librpm7 is updated, prohibit packagekit to start and ask it to quit
touch %_localstatedir/PackageKit/upgrade_lock
sd_booted && $SYSTEMCTL is-active --quiet %name && %_bindir/pkcon quit ||:

%triggerpostun -- librpm7
# after librpm7 is updated, allow packagekit to restart on request
# it may be a good idea to move this to librpm7 package's delayed actions
rm -f %_localstatedir/PackageKit/upgrade_lock ||:

%files -f PackageKit.lang
%dir %_datadir/PackageKit
%dir %_datadir/PackageKit/helpers
%dir %_sysconfdir/PackageKit
%dir %_localstatedir/PackageKit
%dir %_cachedir/app-info
%dir %_cachedir/app-info/icons
%dir %_cachedir/app-info/xmls
%dir %_cachedir/PackageKit
%ghost %verify(not md5 size mtime) %_cachedir/PackageKit/groups.sqlite
%dir %_libdir/packagekit-backend
%config(noreplace) %_sysconfdir/PackageKit/PackageKit.conf
%config(noreplace) %_sysconfdir/PackageKit/Vendor.conf
%config %_sysconfdir/dbus-1/system.d/*
%exclude %_libdir/libpackagekit*.so.*
%ghost %verify(not md5 size mtime) %_localstatedir/PackageKit/transactions.db
%ghost %_localstatedir/PackageKit/upgrade_lock
%config %_sysconfdir/apt/apt.conf.d/20packagekit

%files -n lib%name-glib

%files cron
%config %_sysconfdir/cron.daily/packagekit-background.cron
%config(noreplace) %_sysconfdir/sysconfig/packagekit-background

%files gstreamer-plugin

%files -n lib%name-gtk3-module

%files command-not-found
%config(noreplace) %_sysconfdir/PackageKit/CommandNotFound.conf

%files -n lib%name-glib-devel
%dir %_includedir/PackageKit
%dir %_includedir/PackageKit/packagekit-glib2

%files -n python3-module-%name


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin