1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
7 Name: mingw32-virt-ctrl
10 Summary: MinGW Windows port of virt-ctrl
13 Group: Development/Libraries
15 URL: http://et.redhat.com/~rjones/virt-ctrl/
16 Source0: http://et.redhat.com/~rjones/virt-ctrl/files/virt-ctrl-%{version}.tar.gz
18 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
21 BuildRequires: mingw32-filesystem >= 35
22 BuildRequires: mingw32-gcc
23 BuildRequires: mingw32-binutils
25 BuildRequires: mingw32-ocaml >= 3.11.0
27 BuildRequires: mingw32-ocaml-lablgtk >= 2.10.1
28 BuildRequires: mingw32-gtk2
29 BuildRequires: gnome-icon-theme
30 BuildRequires: mingw32-ocaml-dbus >= 0.06
31 BuildRequires: mingw32-ocaml-libvirt
32 BuildRequires: mingw32-ocaml-xml-light
33 BuildRequires: mingw32-ocaml-extlib
35 # gettext support is disabled temporarily.
36 ## Tortuous list of BRs for gettext.
37 #BuildRequires: ocaml-gettext-devel >= 0.3.0
38 #BuildRequires: ocaml-fileutils-devel
40 #BuildRequires: ocaml-camomile-data
45 Virt-ctrl is a graphical management app for virtual machines, modelled
46 after Virtual Machine Manager, but much more lightweight.
50 %setup -q -n virt-ctrl-%{version}
54 # Workaround for non-tail-recursion in flexdll.
57 export OCAMLFIND_CONF=%{_sysconfdir}/%{_mingw32_target}-ocamlfind.conf
58 export OCAMLC=%{_mingw32_target}-ocamlc
64 rm -rf $RPM_BUILD_ROOT
66 export OCAMLFIND_CONF=%{_sysconfdir}/%{_mingw32_target}-ocamlfind.conf
68 make DESTDIR=$RPM_BUILD_ROOT install
72 rm -rf $RPM_BUILD_ROOT
77 %{_mingw32_bindir}/virt-ctrl
81 * Mon Nov 24 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-1
82 - Initial RPM release.