Initial release.
[virt-similarity.git] / virt-similarity.spec.in
1 %global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
2 %global debug_package %{nil}
3
4 Name:            @PACKAGE_NAME@
5 Version:         @PACKAGE_VERSION@
6 Release:         @RPM_RELEASE@%{?dist}
7 Summary:         Find clusters of similar/cloned virtual machines
8
9 License:         GPLv2+
10 URL:             http://people.redhat.com/~rjones/virt-similarity
11 Source0:         http://people.redhat.com/~rjones/virt-similarity/files/%{name}-%{version}.tar.gz
12
13 BuildRequires:   ocaml >= 3.12.0
14 BuildRequires:   ocaml-ocamldoc
15 BuildRequires:   ocaml-findlib-devel
16 BuildRequires:   ocaml-libguestfs-devel >= 1.14
17
18 # For building manual pages.
19 BuildRequires:   /usr/bin/perldoc
20
21
22 %description
23 Virt-similiarity is a tool for doing cluster analysis of groups of
24 virtual machines.  It can automatically detect machines which have
25 been cloned from each other.  It can produce a "cladogram" showing the
26 "family history" of each guest, or you can use it to create the most
27 efficient tree of backing files which will use the least disk space.
28
29
30 %prep
31 %setup -q
32
33
34 %build
35 %configure
36 make %{?_smp_mflags}
37
38
39 %check
40 make check
41
42
43 %install
44 make DESTDIR=$RPM_BUILD_ROOT install
45
46 # Strip binaries (why doesn't RPM do this?)
47 strip --strip-all $RPM_BUILD_ROOT%{_bindir}/virt-similarity
48
49
50 %files
51 %doc COPYING README
52 %{_bindir}/virt-similarity
53 %{_mandir}/man1/*.1*
54
55
56 %changelog
57 * Thu Jan 31 2013 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-@RPM_RELEASE@
58 - Initial release.