Works for Xen on ARM.
package compile with: --without qemu --nocheck
# Finally set the OS / architecture specific special cases
# Finally set the OS / architecture specific special cases
-# Xen is available only on x86_64
-%ifnarch %{ix86} x86_64 ia64
+# Xen is available only on x86_64 aarch64
+%ifnarch %{ix86} x86_64 ia64 aarch64
%define with_xen 0
%define with_libxl 0
%endif
%define with_xen 0
%define with_libxl 0
%endif
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
URL: http://libvirt.org/
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
URL: http://libvirt.org/
+ExclusiveArch: x86_64 aarch64
%if %(echo %{version} | grep -o \\. | wc -l) == 3
%define mainturl stable_updates/
%if %(echo %{version} | grep -o \\. | wc -l) == 3
%define mainturl stable_updates/
%else
%if %{with_xen}
# From Xen RPMs
%else
%if %{with_xen}
# From Xen RPMs
BuildRequires: /usr/sbin/qcow-create
BuildRequires: /usr/sbin/qcow-create
%endif
%endif
%if %{with_storage_lvm}
%endif
%endif
%if %{with_storage_lvm}
%defattr(-, root, root)
%config(noreplace) %{_sysconfdir}/libvirt/libxl.conf
%config(noreplace) %{_sysconfdir}/libvirt/libxl-lockd.conf
%defattr(-, root, root)
%config(noreplace) %{_sysconfdir}/libvirt/libxl.conf
%config(noreplace) %{_sysconfdir}/libvirt/libxl-lockd.conf
%config(noreplace) %{_sysconfdir}/libvirt/libxl-sanlock.conf
%config(noreplace) %{_sysconfdir}/libvirt/libxl-sanlock.conf
%{_datadir}/augeas/lenses/libvirtd_libxl.aug
%{_datadir}/augeas/lenses/tests/test_libvirtd_libxl.aug
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/libxl/
%{_datadir}/augeas/lenses/libvirtd_libxl.aug
%{_datadir}/augeas/lenses/tests/test_libvirtd_libxl.aug
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/libxl/