SHA256
1
0
forked from pool/qemu

Accepting request 306252 from home:a_faerber:branches:Virtualization

Add ls based %check for qemu-linux-user

OBS-URL: https://build.opensuse.org/request/show/306252
OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=257
This commit is contained in:
Alexander Graf 2015-05-11 12:00:30 +00:00 committed by Git OBS Bridge
parent 5eadfc1f12
commit 0e57e328c1
3 changed files with 65 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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