diff --git a/PackageKit-0.5.2-pkaction.patch b/PackageKit-0.5.2-pkaction.patch new file mode 100644 index 0000000..9a1faad --- /dev/null +++ b/PackageKit-0.5.2-pkaction.patch @@ -0,0 +1,26 @@ +From 8eaf47db02668c5bb243a1442438894790ad7033 Mon Sep 17 00:00:00 2001 +From: Christopher Aillon +Date: Sat, 29 Aug 2009 12:00:01 -0700 +Subject: [PATCH] Use correct configure test for newer polkit + +s/polkit-action/pkaction/ +--- + configure.ac | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 066b8a1..7b03a63 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -588,7 +588,7 @@ AC_ARG_WITH([security_framework], + [Default security framework to use polkit,dummy])) + # try and guess this if nothing is listed + if test x$with_security_framework = x; then +- if test -f /usr/bin/polkit-action ; then ++ if test -f /usr/bin/pkaction ; then + with_security_framework=polkit + else + AC_MSG_ERROR([--with-security-framework explicitly required when not using PolicyKit or RBAC]) +-- +1.6.4 + diff --git a/PackageKit.spec b/PackageKit.spec index 5b46cc2..2925fcb 100644 --- a/PackageKit.spec +++ b/PackageKit.spec @@ -10,7 +10,7 @@ Summary: Package management service Name: PackageKit Version: 0.5.2 -Release: 0.1.%{?alphatag}git%{?dist} +Release: 0.2.%{?alphatag}git%{?dist} #Release: 1%{?dist} License: GPLv2+ Group: System Environment/Libraries @@ -25,6 +25,10 @@ Patch0: PackageKit-0.3.8-Fedora-Vendor.conf.patch # Fedora specific: the yum backend doesn't do time estimation correctly Patch1: PackageKit-0.4.4-Fedora-turn-off-time.conf.patch +# http://bugs.freedesktop.org/show_bug.cgi?id=23592 +Patch2: PackageKit-0.5.2-pkaction.patch +BuildRequires: autoconf + Requires: dbus >= %{dbus_version} Requires: dbus-glib >= %{dbus_glib_version} Requires: PackageKit-glib = %{version}-%{release} @@ -240,6 +244,10 @@ user to restart the computer or remove and re-insert the device. %patch0 -p1 -b .fedora %patch1 -p1 -b .no-time +# http://bugs.freedesktop.org/show_bug.cgi?id=23592 +%patch2 -p1 -b .pkaction +autoreconf + %build %configure --disable-static --enable-yum --enable-smart --with-default-backend=yum --disable-local --disable-ruck @@ -436,6 +444,9 @@ update-mime-database %{_datadir}/mime &> /dev/null || : %{_includedir}/PackageKit/backend/*.h %changelog +* Sat Aug 29 2009 Christopher Aillon - 0.5.2-0.2.20090824git +- Fix build against polkit, rebuild against newer libnm_glib + * Mon Aug 24 2009 Richard Hughes - 0.5.2-0.1.20090824git - Update to a newer git snapshot from the 0.5.x series. - Enable GUdev functionality and create a device-rebind subpackage.