Small addition to the spec file, basically if on Fedora we should not activate RHEL-5 Xen specific support, but on RHEL and possibly CentOS the flag should be passed to %configure. The test is somehow reversed because it's hard to detect building on a RHEL platform from the spec file, and that should cope well with CentOS too. Now for other rpm based environment, I welcome improvements! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@xxxxxxxxxxxx | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/
Index: libvirt.spec.in =================================================================== RCS file: /data/cvs/libxen/libvirt.spec.in,v retrieving revision 1.106 diff -u -r1.106 libvirt.spec.in --- libvirt.spec.in 12 Dec 2008 07:36:20 -0000 1.106 +++ libvirt.spec.in 20 Jan 2009 09:59:15 -0000 @@ -32,6 +32,17 @@ %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 @@ %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 @@ %{?_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
-- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list