Fix new path to RPM.
[virt-p2v.git] / virt-p2v.spec.in
1 %define debug_package %{nil}
2
3 Name:           @PACKAGE_NAME@
4 Version:        @PACKAGE_VERSION@
5 # Please keep the release as '1' for compatibility with the Makefile.
6 Release:        1
7 Summary:        Virt-p2v
8
9 Group:          Development/Libraries
10 License:        GPLv2+
11 URL:            http://et.redhat.com/~rjones/virt-p2v
12 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14 BuildArch:      noarch
15
16 Source0:        %{name}-%{version}.tar.gz
17
18 Requires:       ocaml >= 3.10.0
19 Requires:       ocaml-runtime
20 Requires:       ocaml-findlib
21 Requires:       ocaml-pcre
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
28
29 # libvirt >= 0.4.0 fixes a problem with authentication over ssh.
30 Requires:       libvirt >= 0.4.0
31
32 # dhclient >= 4.0.0 fixes the cwd-holds-filesystem-open problem.
33 Requires:       dhclient >= 4.0.0
34
35
36 %description
37 P2V, V2V and V2P virtual machine migration.
38
39
40 %prep
41 %setup -q
42
43
44 %build
45 %configure
46 make virt-p2v
47 make -C po
48
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 mkdir -p $RPM_BUILD_ROOT%{_bindir}
53 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
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 make -C po install PODIR=$RPM_BUILD_ROOT%{_datadir}/locale
59
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64
65 %files
66 %defattr(-,root,root,-)
67 %{_bindir}/*
68 %{_sysconfdir}/*
69 %{_datadir}/locale/*
70
71
72 %changelog
73 * Fri Feb 22 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-1
74 - Initial RPM release.