* libvirt.spec.in: try to autodetect when rhel5 option should be
passed to configure
Daniel
+Tue Jan 20 18:26:24 CET 2009 Daniel Veillard <veillard@redhat.com>
+
+ * libvirt.spec.in: try to autodetect when rhel5 option should be
+ passed to configure
+
Tue Jan 20 17:15:53 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
* src/xen_inotify.c, src/xen_unified.h, src/xs_internal.c:
%define with_xen_proxy 0
%endif
+#
+# If building on RHEL switch on the specific support
+# for the specific Xen version
+#
+%if 0%{?fedora}
+%define with_rhel5 0
+%else
+%define with_rhel5 1
+%endif
+
+
Summary: Library providing a simple API virtualization
Name: libvirt
Version: @VERSION@
%define _without_uml --without-uml
%endif
+%if %{with_rhel5}
+%define _with_rhel5_api --with-rhel5-api
+%endif
+
%configure %{?_without_xen} \
%{?_without_qemu} \
%{?_without_openvz} \
%{?_without_python} \
%{?_without_libvirtd} \
%{?_without_uml} \
+ %{?_with_rhel5_api} \
--with-init-script=redhat \
--with-qemud-pid-file=%{_localstatedir}/run/libvirt_qemud.pid \
--with-remote-file=%{_localstatedir}/run/libvirtd.pid