Add .gitignore file for git.
[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 -C po
47
48
49 %install
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 make -C po install PODIR=$RPM_BUILD_ROOT%{_datadir}/locale
58
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63
64 %files
65 %defattr(-,root,root,-)
66 %{_bindir}/*
67 %{_datadir}/locale/*
68
69
70 %changelog
71 * Fri Feb 22 2008 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-1
72 - Initial RPM release.