1 %define debug_package %{nil}
4 Version: @PACKAGE_VERSION@
5 # Please keep the release as '1' for compatibility with the Makefile.
9 Group: Development/Libraries
11 URL: http://et.redhat.com/~rjones/virt-p2v
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
16 Source0: %{name}-%{version}.tar.gz
18 Requires: ocaml >= 3.10.0
19 Requires: ocaml-runtime
20 Requires: ocaml-findlib
22 Requires: ocaml-extlib
23 Requires: ocaml-xml-light
24 Requires: ocaml-libvirt >= 0.4.1.1
25 Requires: ocaml-newt >= 0.9
26 Requires: ocaml-fileutils
27 Requires: ocaml-gettext >= 0.2.0-1rwmj20080321
29 # libvirt >= 0.4.0 fixes a problem with authentication over ssh.
30 Requires: libvirt >= 0.4.0
32 # dhclient >= 4.0.0 fixes the cwd-holds-filesystem-open problem.
33 Requires: dhclient >= 4.0.0
37 P2V, V2V and V2P virtual machine migration.
50 rm -rf $RPM_BUILD_ROOT
51 mkdir -p $RPM_BUILD_ROOT%{_bindir}
52 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
53 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/event.d
54 mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale
55 install -m 0755 virt-p2v virt-p2v-update-wrapper iso-attach \
56 $RPM_BUILD_ROOT%{_bindir}
57 install -m 0644 inittab $RPM_BUILD_ROOT%{_sysconfdir}
58 install -m 0644 tty1 $RPM_BUILD_ROOT%{_sysconfdir}/event.d
59 make -C po install PODIR=$RPM_BUILD_ROOT%{_datadir}/locale
63 rm -rf $RPM_BUILD_ROOT
67 %defattr(-,root,root,-)
69 %{_sysconfdir}/inittab
70 %{_sysconfdir}/event.d/tty1
75 * Fri Feb 22 2008 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-1
76 - Initial RPM release.