From 853020f00a8b411868133e421efdea1774f585df Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 23:13:32 +0100 Subject: [PATCH] make dbus packagekit alternative lower than apper [release 3.18.0-2mamba;Sat Jan 16 2016] --- gnome-packagekit.spec | 87 ++++++++++++++++++++++++++----------------- 1 file changed, 52 insertions(+), 35 deletions(-) diff --git a/gnome-packagekit.spec b/gnome-packagekit.spec index a7e275d..bacd693 100644 --- a/gnome-packagekit.spec +++ b/gnome-packagekit.spec @@ -1,6 +1,6 @@ %define majver %(echo %version | cut -d. -f1-2) Name: gnome-packagekit -Version: 3.16.0 +Version: 3.18.0 Release: 2mamba Summary: A collection of graphical tools for PackageKit to be used in the GNOME desktop Group: Graphical Desktop/Applications/Utilities @@ -11,41 +11,48 @@ URL: http://www.packagekit.org Source: ftp://ftp.gnome.org/pub/gnome/sources/gnome-packagekit/%{majver}/gnome-packagekit-%{version}.tar.xz License: GPL ## AUTOBUILDREQ-BEGIN -BuildRequires: GConf-devel +BuildRequires: PackageKit-glib-devel BuildRequires: glibc-devel -BuildRequires: gnome-menus-devel -BuildRequires: libatk-devel -BuildRequires: libcairo-devel -BuildRequires: libcanberra-devel -BuildRequires: libdbus-devel -BuildRequires: libdbus-glib-devel -BuildRequires: libexpat-devel -BuildRequires: libfontconfig-devel -BuildRequires: libfreetype-devel -BuildRequires: libglib-devel -BuildRequires: libglitz-devel -BuildRequires: libgtk-devel -BuildRequires: libnotify-devel -BuildRequires: libpango-devel -BuildRequires: libpixman-devel -BuildRequires: libpng-devel -BuildRequires: libpthread-stubs-devel -BuildRequires: libpython-devel -BuildRequires: libselinux-devel -BuildRequires: libsqlite-devel -BuildRequires: libstdc++6-devel -BuildRequires: libunique-devel -BuildRequires: libusb0-devel BuildRequires: libX11-devel BuildRequires: libXau-devel -BuildRequires: libxcb-devel -BuildRequires: libxcb-util-devel BuildRequires: libXdmcp-devel -BuildRequires: libXrender-devel +BuildRequires: libatk-devel +BuildRequires: libbsd-devel +BuildRequires: libbzip2-devel +BuildRequires: libcairo-devel +BuildRequires: libcanberra-devel +BuildRequires: libcap-devel +BuildRequires: libdw-devel +BuildRequires: libexpat-devel +BuildRequires: libffi-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libgcrypt-devel +BuildRequires: libgdk-pixbuf-devel +BuildRequires: libglib-devel +BuildRequires: libgpg-error-devel +BuildRequires: libgraphite2-devel +BuildRequires: libgtk-devel +BuildRequires: libgudev-devel +BuildRequires: libharfbuzz-devel +BuildRequires: libltdl-devel +BuildRequires: liblzma-devel +BuildRequires: libnotify-devel +BuildRequires: libogg-devel +BuildRequires: libpango-devel +BuildRequires: libpcre-devel +BuildRequires: libpng-devel +BuildRequires: libpolkit-devel +BuildRequires: libselinux-devel +BuildRequires: libsepol-devel +BuildRequires: libsqlite-devel +BuildRequires: libsystemd-devel +BuildRequires: libtdb-devel +BuildRequires: libthai-devel +BuildRequires: libudev-devel +BuildRequires: libvorbis-devel +BuildRequires: libxcb-devel BuildRequires: libz-devel -BuildRequires: ORBit2-devel -BuildRequires: PackageKit-devel -BuildRequires: udev-devel ## AUTOBUILDREQ-END BuildRequires: PackageKit-glib-devel >= 0.9 Provides: packagekitgui @@ -76,14 +83,19 @@ gnome-packagekit is a collection of graphical tools for PackageKit to be used in %post if [ $1 -ge 1 ]; then -/usr/sbin/update-alternatives --install %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service org.freedesktop.PackageKit.service %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service.gnome-packagekit 60 +/usr/sbin/update-alternatives --install \ + %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service \ + org.freedesktop.PackageKit.service \ + %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service.gnome-packagekit 30 glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null fi exit 0 %preun if [ $1 -eq 0 ]; then -/usr/sbin/update-alternatives --remove org.freedesktop.PackageKit.service %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service.gnome-packagekit +/usr/sbin/update-alternatives --remove \ + org.freedesktop.PackageKit.service \ + %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service.gnome-packagekit glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null fi exit 0 @@ -91,8 +103,7 @@ exit 0 %posttrans # Fix an upgrade problem: alternatives removed from preun script if [ $1 -eq 1 ]; then - /usr/sbin/update-alternatives --install %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service org.freedesktop.PackageKit.service %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service.gnome-packagekit 60 - + /usr/sbin/update-alternatives --install %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service org.freedesktop.PackageKit.service %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service.gnome-packagekit 30 /usr/sbin/update-alternatives --auto org.freedesktop.PackageKit.service fi exit 0 @@ -143,6 +154,12 @@ exit 0 # ChangeLog NEWS README TODO %changelog +* Sat Jan 16 2016 Silvan Calarco 3.18.0-2mamba +- make dbus packagekit alternative lower than apper + +* Fri Oct 09 2015 Automatic Build System 3.18.0-1mamba +- automatic version update by autodist + * Fri Aug 14 2015 Silvan Calarco 3.16.0-2mamba - rebuilt with PackageKit 0.9.5