From bb020a9f7506b9b403ca6b5e20acc931d3f5dbda Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Thu, 6 Dec 2007 15:35:54 +0000 Subject: [PATCH] Fix polkit macros for RHEL --- ChangeLog | 4 ++++ libvirt.spec.in | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f402c5308f..90f28d18c8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Dec 6 10:35:41 EST 2007 Daniel P. Berrange + + * libvirt.spec.in: Fix macros build on RHEL distros + Thu Dec 6 15:53:41 CET 2007 Daniel Veillard * docs/*: rebuilt the docs and XML files diff --git a/libvirt.spec.in b/libvirt.spec.in index 2a1f5687d6..87fd022aa3 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1,6 +1,6 @@ # -*- rpm-spec -*- -%if %{fedora} >= 8 +%if 0%{?fedora} >= 8 %define with_polkit 1 %define with_proxy no %else @@ -160,7 +160,9 @@ fi %{_datadir}/libvirt/networks/default.xml %dir %{_localstatedir}/run/libvirt/ %dir %{_localstatedir}/lib/libvirt/ +%if %{with_polkit} %{_datadir}/PolicyKit/policy/libvirtd.policy +%endif %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/ %if %{with_proxy} == "yes" %attr(4755, root, root) %{_libexecdir}/libvirt_proxy