Fix build of x86_only RPMs

This commit is contained in:
Daniel P. Berrange 2012-03-28 19:47:19 +01:00
parent e907ae40c4
commit 2ee6c28339

View File

@ -165,12 +165,14 @@ BuildRequires: libfdt-devel
# For test suite
BuildRequires: check-devel
Requires: %{name}-user = %{epoch}:%{version}-%{release}
%if !%{with_x86only}
Requires: %{name}-system-x86 = %{epoch}:%{version}-%{release}
Requires: %{name}-system-arm = %{epoch}:%{version}-%{release}
Requires: %{name}-system-cris = %{epoch}:%{version}-%{release}
Requires: %{name}-system-sh4 = %{epoch}:%{version}-%{release}
Requires: %{name}-system-m68k = %{epoch}:%{version}-%{release}
Requires: %{name}-system-mips = %{epoch}:%{version}-%{release}
%endif
Requires: %{name}-img = %{epoch}:%{version}-%{release}
Obsoletes: %{name}-system-ppc
@ -719,7 +721,9 @@ fi
%files user
%defattr(-,root,root)
%if !%{with_x86only}
%{_exec_prefix}/lib/binfmt.d/qemu-*.conf
%endif
%{_bindir}/qemu-i386
%{_bindir}/qemu-x86_64
%if !%{with_x86only}