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-ocaml-libvirt
10 Summary: MinGW Windows port of OCaml binding for libvirt
13 Group: Development/Libraries
15 URL: http://libvirt.org/ocaml/
16 Source0: http://libvirt.org/sources/ocaml/ocaml-libvirt-%{version}.tar.gz
18 Patch1000: mingw32-ocaml-libvirt-0.4.4.2-build.patch
20 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
23 BuildRequires: mingw32-filesystem >= 35
24 BuildRequires: mingw32-gcc
25 BuildRequires: mingw32-binutils
26 BuildRequires: mingw32-ocaml >= 3.11.0-0.15.beta1
27 BuildRequires: mingw32-ocaml-findlib
28 BuildRequires: mingw32-libvirt >= 0.2.1
31 BuildRequires: autoconf, automake, libtool
33 Requires: mingw32-libvirt
37 OCaml binding for libvirt.
41 %setup -q -n ocaml-libvirt-%{version}
49 # Avoid some tail-recursion problem in flexdll.
52 export OCAMLFIND_CONF=%{_sysconfdir}/%{_mingw32_target}-ocamlfind.conf
54 make OCAMLMKLIB=%{_mingw32_target}-ocamlmklib opt
58 rm -rf $RPM_BUILD_ROOT
60 export OCAMLFIND_CONF=/etc/i686-pc-mingw32-ocamlfind.conf
61 export DESTDIR=$RPM_BUILD_ROOT
62 export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/%{_mingw32_target}-ocaml
64 mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
68 ocamlfind install -ldconf ignore libvirt ../META *.a *.cmx *.cmxa *.cmi *.mli
76 rm -rf $RPM_BUILD_ROOT
81 %{_mingw32_bindir}/mlvirsh
82 %{_libdir}/%{_mingw32_target}-ocaml/libvirt/
86 * Sun Nov 23 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.4.2-3
87 - Rebuild against latest OCaml cross-compiler.
89 * Mon Nov 17 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.4.2-2
90 - Requires mingw32-libvirt package.
92 * Sun Nov 16 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.4.2-1
93 - Initial RPM release.