rpms/libvirt/devel libvirt.spec,1.62,1.63

Daniel Veillard (veillard) fedora-extras-commits at redhat.com
Fri Aug 24 15:10:43 UTC 2007


Author: veillard

Update of /cvs/pkgs/rpms/libvirt/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16690

Modified Files:
	libvirt.spec 
Log Message:
Compile on arches without Xen, Daniel



Index: libvirt.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libvirt/devel/libvirt.spec,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- libvirt.spec	21 Aug 2007 15:14:54 -0000	1.62
+++ libvirt.spec	24 Aug 2007 15:10:05 -0000	1.63
@@ -3,7 +3,7 @@
 Summary: Library providing a simple API virtualization
 Name: libvirt
 Version: 0.3.2
-Release: 1%{?dist}%{?extra_release}
+Release: 2%{?dist}%{?extra_release}
 License: LGPL
 Group: Development/Libraries
 Source: libvirt-%{version}.tar.gz
@@ -16,14 +16,16 @@
 Requires: dnsmasq
 Requires: bridge-utils
 Requires: iptables
+
+%ifarch i386 x86_64 ia64
 BuildRequires: xen-devel
+%endif
 BuildRequires: libxml2-devel
 BuildRequires: readline-devel
 BuildRequires: ncurses-devel
 BuildRequires: gettext
 BuildRequires: gnutls-devel
 Obsoletes: libvir
-ExclusiveArch: i386 x86_64 ia64
 
 %description
 Libvirt is a C toolkit to interract with the virtualization capabilities
@@ -34,7 +36,9 @@
 Group: Development/Libraries
 Requires: libvirt = %{version}
 Requires: pkgconfig
+%ifarch i386 x86_64 ia64
 Requires: xen-devel
+%endif
 Requires: gnutls-devel
 Obsoletes: libvir-devel
 
@@ -58,7 +62,13 @@
 %setup -q
 
 %build
+# Xen is availble only on i386 x86_64 ia64
+%ifarch i386 x86_64 ia64
 %configure --with-init-script=redhat --with-qemud-pid-file=%{_localstatedir}/run/libvirt_qemud.pid --with-remote-file=%{_localstatedir}/run/libvirtd.pid
+%else
+%configure --without-xen --with-init-script=redhat --with-qemud-pid-file=%{_localstatedir}/run/libvirt_qemud.pid --with-remote-file=%{_localstatedir}/run/libvirtd.pid
+%endif
+
 make
 
 %install
@@ -167,6 +177,9 @@
 %doc docs/examples/python
 
 %changelog
+* Fri Aug 24 2007 Daniel Veillard <veillard at redhat.com> - 0.3.2-2.fc8
+- also build on arches where Xen is not available
+
 * Tue Aug 21 2007 Daniel Veillard <veillard at redhat.com> - 0.3.2-1.fc8
 - Release of 0.3.2
 - API for domains migration




More information about the fedora-extras-commits mailing list