From: Richard W.M. Jones Date: Tue, 20 Aug 2013 17:37:24 +0000 (+0100) Subject: Add an RPM spec file. X-Git-Tag: v1.1.1~4 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;ds=sidebyside;h=e708f5e03cfaead43719782d475641f643bd7b6c;p=qemu-sanity-check.git Add an RPM spec file. This is a temporary measure until this package can be added to Fedora. --- diff --git a/.gitignore b/.gitignore index c07535f..774456b 100644 --- a/.gitignore +++ b/.gitignore @@ -24,5 +24,6 @@ Makefile.in /qemu-sanity-check /qemu-sanity-check.1 /qemu-sanity-check.pod +/qemu-sanity-check.spec /stamp-h1 /test-driver diff --git a/configure.ac b/configure.ac index 664f47b..c40e1b5 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,10 @@ AC_INIT([qemu-sanity-check],[1.1.1]) AM_INIT_AUTOMAKE([foreign]) +dnl Only used temporarily while the spec file is contained in the +dnl tarball. We will remove this later. +AC_SUBST([RPM_RELEASE],[1]) + dnl Check for basic C environment. AC_PROG_CC_STDC AC_PROG_INSTALL @@ -55,6 +59,7 @@ AM_CONDITIONAL([HAVE_POD2MAN], [test "x$POD2MAN" != "xno"]) dnl Produce output files. AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([qemu-sanity-check],[chmod 0555 qemu-sanity-check]) -AC_CONFIG_FILES([Makefile]) +AC_CONFIG_FILES([Makefile + qemu-sanity-check.spec]) AC_OUTPUT diff --git a/qemu-sanity-check.spec.in b/qemu-sanity-check.spec.in new file mode 100644 index 0000000..94dfa0c --- /dev/null +++ b/qemu-sanity-check.spec.in @@ -0,0 +1,60 @@ +%global debug_package %{nil} + +Name: @PACKAGE_NAME@ +Version: @PACKAGE_VERSION@ +Release: @RPM_RELEASE@%{?dist} +Summary: Simple qemu and Linux kernel sanity checker + +License: GPLv2+ +URL: http://people.redhat.com/~rjones/qemu-sanity-check +Source0: http://people.redhat.com/~rjones/qemu-sanity-check/files/%{name}-%{version}.tar.gz + +# For building manual pages. +BuildRequires: /usr/bin/perldoc + +# For building the initramfs. +BuildRequires: cpio +BuildRequires: glibc-static + +%ifarch %{ix86} x86-64 +Requires: qemu-system-x86 +%endif +%ifarch armv7hl +Requires: qemu-system-arm +%endif + +Requires: kernel + +%description +Qemu-sanity-check is a short shell script that test-boots a Linux +kernel under qemu, making sure it boots up to userspace. The idea is +to test the Linux kernel and/or qemu to make sure they are working. + + +%prep +%setup -q + + +%build +%configure +make %{?_smp_mflags} + + +%check +make check + + +%install +make DESTDIR=$RPM_BUILD_ROOT install + + +%files +%doc COPYING README +%{_bindir}/qemu-sanity-check +%{_libdir}/qemu-sanity-check +%{_mandir}/man1/qemu-sanity-check.1* + + +%changelog +* Tue Aug 20 2013 Richard W.M. Jones - @PACKAGE_VERSION@-@RPM_RELEASE@ +- Initial release.