Correct default path to initrd after installation.
[qemu-sanity-check.git] / qemu-sanity-check.spec.in
1 %global debug_package %{nil}
2
3 Name:            @PACKAGE_NAME@
4 Version:         @PACKAGE_VERSION@
5 Release:         @RPM_RELEASE@%{?dist}
6 Summary:         Simple qemu and Linux kernel sanity checker
7
8 License:         GPLv2+
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
11
12 # For building manual pages.
13 BuildRequires:   /usr/bin/perldoc
14
15 # For building the initramfs.
16 BuildRequires:   cpio
17 BuildRequires:   glibc-static
18
19 %ifarch %{ix86} x86-64
20 Requires:        qemu-system-x86
21 %endif
22 %ifarch armv7hl
23 Requires:        qemu-system-arm
24 %endif
25
26 Requires:        kernel
27
28 %description
29 Qemu-sanity-check is a short shell script that test-boots a Linux
30 kernel under qemu, making sure it boots up to userspace.  The idea is
31 to test the Linux kernel and/or qemu to make sure they are working.
32
33
34 %prep
35 %setup -q
36
37
38 %build
39 %configure
40 make %{?_smp_mflags}
41
42
43 %check
44 make check
45
46
47 %install
48 make DESTDIR=$RPM_BUILD_ROOT install
49
50
51 %files
52 %doc COPYING README
53 %{_bindir}/qemu-sanity-check
54 %{_libdir}/qemu-sanity-check
55 %{_mandir}/man1/qemu-sanity-check.1*
56
57
58 %changelog
59 * Tue Aug 20 2013 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-@RPM_RELEASE@
60 - Initial release.