summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-06-08 01:06:38 (GMT)
committerMatthias Clasen <mclasen@redhat.com>2012-06-08 01:06:38 (GMT)
commit0b378668288db34890b82c7be007fc76c7fcd956 (patch)
tree1546f2ccdd8bd1cbc4fb9363db41d3b1eb5719c2
parentf8b74a799a8d45f2331b400c9fe67f010ff2c8cc (diff)
downloadPackageKit-0b378668288db34890b82c7be007fc76c7fcd956.zip
PackageKit-0b378668288db34890b82c7be007fc76c7fcd956.tar.gz
PackageKit-0b378668288db34890b82c7be007fc76c7fcd956.tar.xz
Drop libpolkit-backend dep
That library is going away, and it is not needed here.
-rw-r--r--PackageKit.spec4
-rw-r--r--no-polkit-backend-required.patch11
2 files changed, 15 insertions, 0 deletions
diff --git a/PackageKit.spec b/PackageKit.spec
index 1953fbc..6e1c667 100644
--- a/PackageKit.spec
+++ b/PackageKit.spec
@@ -23,6 +23,9 @@ Patch3: 0001-Fix-importing-GPG-signatures.patch
# Upstreamable? allow use of xulrunner2 for browser-plugin support
Patch4: PackageKit-0.7.4-xulrunner2.patch
+# Avoid this unneeded dep
+Patch5: no-polkit-backend-required.patch
+
Requires: PackageKit-glib = %{version}-%{release}
Requires: PackageKit-backend
Requires: shared-mime-info
@@ -262,6 +265,7 @@ user to restart the computer or remove and re-insert the device.
%patch2 -p1 -b .yum-untrusted
%patch3 -p1 -b .fix-install-signature
%patch4 -p1 -b .xulrunner2
+%patch5 -p1 -b .polkit
NOCONFIGURE=1 ./autogen.sh
%build
diff --git a/no-polkit-backend-required.patch b/no-polkit-backend-required.patch
new file mode 100644
index 0000000..5cf73e7
--- /dev/null
+++ b/no-polkit-backend-required.patch
@@ -0,0 +1,11 @@
+diff -up PackageKit-0.7.4/configure.ac.polkit-backend PackageKit-0.7.4/configure.ac
+--- PackageKit-0.7.4/configure.ac.polkit-backend 2012-06-07 21:04:41.787300654 -0400
++++ PackageKit-0.7.4/configure.ac 2012-06-07 21:05:00.813300940 -0400
+@@ -542,7 +542,6 @@ AC_SUBST(security_framework, "$with_secu
+
+ if test x$with_security_framework = xpolkit; then
+ PKG_CHECK_MODULES(POLKIT, \
+- polkit-backend-1 \
+ polkit-gobject-1 >= $POLKIT_GOBJECT_REQUIRED)
+ AC_DEFINE(USE_SECURITY_POLKIT, 1, [if we should use PolicyKit])
+ elif test x$with_security_framework = xdummy; then