dab5f585f294a2ec9f1272ff9342c78b2ae9a34b
[virt-p2v.git] / virt-p2v.spec.in
1 Name:           @PACKAGE_NAME@
2 Version:        @PACKAGE_VERSION@
3 # Please keep the release as '1' for compatibility
4 # with the Makefile.
5 Release:        1
6 Summary:        Virt-p2v
7
8 Group:          Development/Libraries
9 License:        GPLv2+
10 URL:            http://et.redhat.com/~rjones/virt-p2v
11 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
13 #ExclusiveArch:  noarch
14
15 Source0:        virt-p2v
16 Source1:        virt-p2v-update-wrapper
17 Source2:        iso-attach
18 Source3:        inittab
19
20 Requires:       ocaml >= 3.10.0
21 Requires:       ocaml-runtime
22 Requires:       ocaml-findlib
23 Requires:       ocaml-pcre
24 Requires:       ocaml-extlib
25 Requires:       ocaml-xml-light
26 Requires:       ocaml-libvirt >= 0.4.1.1
27 Requires:       ocaml-newt >= 0.9
28 Requires:       ocaml-fileutils
29 Requires:       ocaml-gettext >= 0.2.0-1rwmj20080321
30
31 # libvirt >= 0.4.0 fixes a problem with authentication over ssh.
32 Requires:       libvirt >= 0.4.0
33
34 # dhclient >= 4.0.0 fixes the cwd-holds-filesystem-open problem.
35 Requires:       dhclient >= 4.0.0
36
37
38 %description
39 P2V, V2V and V2P virtual machine migration.
40
41
42 %prep
43
44
45 %build
46
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 mkdir -p $RPM_BUILD_ROOT%{_bindir}
51 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
52 install -m 0755 %{SOURCE0} %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}
53 install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
54
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59
60 %files
61 %defattr(-,root,root,-)
62 %{_bindir}/*
63 %{_sysconfdir}/*
64
65
66 %changelog
67 * Fri Feb 22 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-1
68 - Initial RPM release.