diff --git a/qemu-linux-user.changes b/qemu-linux-user.changes index abab70c7..a9bb49f9 100644 --- a/qemu-linux-user.changes +++ b/qemu-linux-user.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun May 10 14:55:31 UTC 2015 - afaerber@suse.de + +- Add %check executing /usr/bin/ls via qemu-HOSTARCH + ------------------------------------------------------------------- Wed May 6 21:54:05 UTC 2015 - agraf@suse.com diff --git a/qemu-linux-user.spec b/qemu-linux-user.spec index e15d96a8..b839ceb7 100644 --- a/qemu-linux-user.spec +++ b/qemu-linux-user.spec @@ -176,6 +176,36 @@ sed -i "s/-lglib-2.0/-lglib-2.0 -lrt/" config-host.mak %endif make %{?_smp_mflags} V=1 +%ifarch %ix86 +%define qemu_arch i386 +%endif +%ifarch x86_64 +%define qemu_arch x86_64 +%endif +%ifarch %arm +%define qemu_arch arm +%endif +%ifarch aarch64 +%define qemu_arch aarch64 +%endif +%ifarch ppc +%define qemu_arch ppc +%endif +%ifarch ppc64 +%define qemu_arch ppc64 +%endif +%ifarch ppc64le +%define qemu_arch ppc64le +%endif +%ifarch s390x +%define qemu_arch s390x +%endif + +%if 0%{?suse_version} >= 1310 +%check +%{qemu_arch}-linux-user/qemu-%{qemu_arch} %_bindir/ls > /dev/null +%endif + %install make install DESTDIR=$RPM_BUILD_ROOT rm -fr $RPM_BUILD_ROOT/%_datadir/doc diff --git a/qemu-linux-user.spec.in b/qemu-linux-user.spec.in index 9cc79200..01098a0c 100644 --- a/qemu-linux-user.spec.in +++ b/qemu-linux-user.spec.in @@ -100,6 +100,36 @@ sed -i "s/-lglib-2.0/-lglib-2.0 -lrt/" config-host.mak %endif make %{?_smp_mflags} V=1 +%ifarch %ix86 +%define qemu_arch i386 +%endif +%ifarch x86_64 +%define qemu_arch x86_64 +%endif +%ifarch %arm +%define qemu_arch arm +%endif +%ifarch aarch64 +%define qemu_arch aarch64 +%endif +%ifarch ppc +%define qemu_arch ppc +%endif +%ifarch ppc64 +%define qemu_arch ppc64 +%endif +%ifarch ppc64le +%define qemu_arch ppc64le +%endif +%ifarch s390x +%define qemu_arch s390x +%endif + +%if 0%{?suse_version} >= 1310 +%check +%{qemu_arch}-linux-user/qemu-%{qemu_arch} %_bindir/ls > /dev/null +%endif + %install make install DESTDIR=$RPM_BUILD_ROOT rm -fr $RPM_BUILD_ROOT/%_datadir/doc