Update OCaml deps.
[virt-dmesg.git] / virt-dmesg.spec.in
1 %define debug_package %{nil}
2
3 Name:           virt-dmesg
4 Version:        @VERSION@
5 Release:        1%{?dist}
6 Summary:        Print kernel messages from a Linux virtual machine
7
8 Group:          Development/Libraries
9 License:        GPLv2+
10 URL:            http://people.redhat.com/~rjones/virt-dmesg/
11 Source0:        http://people.redhat.com/~rjones/virt-dmesg/files/%{name}-%{version}.tar.gz
12 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14 BuildRequires:  ocaml >= 3.10.2
15 BuildRequires:  ocaml-ocamldoc
16 BuildRequires:  ocaml-findlib-devel
17 BuildRequires:  ocaml-libvirt-devel
18 BuildRequires:  zlib-devel
19
20 # Non-OCaml BRs.
21 BuildRequires:  libvirt-devel
22
23 # Force libvirt that contains several fixes for virDomainMemoryPeek.
24 Requires: libvirt >= 0.9.1-3
25
26
27 %description
28 virt-dmesg prints the kernel messages from a running Linux virtual
29 machine.  It is like dmesg(1) except that it works on virtual machines
30 instead of the host.
31
32
33 %prep
34 %setup -q
35
36
37 %build
38 %configure
39 make all
40
41 strip src/virt-dmesg
42
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 make DESTDIR=$RPM_BUILD_ROOT install
48
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53
54 %files
55 %defattr(-,root,root,-)
56 %doc COPYING README
57 %{_bindir}/virt-dmesg
58 %{_bindir}/virt-uname
59 %{_mandir}/man1/virt-dmesg.1*
60 %{_mandir}/man1/virt-uname.1*
61
62
63 %changelog
64 * Wed May 25 2011 Richard W.M. Jones <rjones@redhat.com> - @VERSION@-1
65 - Initial RPM release.