]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Activate RHEL5 specific flags when needed
authorDaniel Veillard <veillard@redhat.com>
Tue, 20 Jan 2009 17:27:34 +0000 (17:27 +0000)
committerDaniel Veillard <veillard@redhat.com>
Tue, 20 Jan 2009 17:27:34 +0000 (17:27 +0000)
* libvirt.spec.in: try to autodetect when rhel5 option should be
  passed to configure
Daniel

ChangeLog
libvirt.spec.in

index f094333b14843fd6d1604965ad2272bed27cc695..2f69ca160e12f59d0aeef4d7595d831cbc4f8d4a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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:
index 4fb81dcb5673de073999e3e05c802a5ff69330cc..2306d478bd47751f29a049d140ef2187a19628d8 100644 (file)
 %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@
@@ -207,6 +218,10 @@ of recent versions of Linux (and other OSes).
 %define _without_uml --without-uml
 %endif
 
+%if %{with_rhel5}
+%define _with_rhel5_api --with-rhel5-api
+%endif
+
 %configure %{?_without_xen} \
            %{?_without_qemu} \
            %{?_without_openvz} \
@@ -217,6 +232,7 @@ of recent versions of Linux (and other OSes).
            %{?_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