1 %global debug_package %{nil}
4 Version: @PACKAGE_VERSION@
5 Release: @RPM_RELEASE@%{?dist}
6 Summary: Simple qemu and Linux kernel sanity checker
9 URL: http://people.redhat.com/~rjones/qemu-sanity-check
10 Source0: http://people.redhat.com/~rjones/qemu-sanity-check/files/%{name}-%{version}.tar.gz
12 # For building manual pages.
13 BuildRequires: /usr/bin/perldoc
15 # For building the initramfs.
17 BuildRequires: glibc-static
19 # BuildRequire these in order to let 'make check' run. These are
20 # not required unless you want to run the tests. Note don't run the
21 # tests on ARM since qemu isn't likely to work.
22 %ifarch %{ix86} x86_64
23 BuildRequires: qemu-system-x86
28 %ifarch %{ix86} x86_64
29 Requires: qemu-system-x86
32 Requires: qemu-system-arm
38 Qemu-sanity-check is a short shell script that test-boots a Linux
39 kernel under qemu, making sure it boots up to userspace. The idea is
40 to test the Linux kernel and/or qemu to make sure they are working.
48 # NB: canonical_arch is a variable in the final script, so it
49 # has to be escaped here.
50 %configure --with-qemu-list="qemu-system-\$canonical_arch"
55 %ifarch %{ix86} x86_64
64 make DESTDIR=$RPM_BUILD_ROOT install
69 %{_bindir}/qemu-sanity-check
70 %{_libdir}/qemu-sanity-check
71 %{_mandir}/man1/qemu-sanity-check.1*
75 * Tue Aug 20 2013 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-@RPM_RELEASE@