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}
10 Summary: MinGW Windows port of top(1) for virtualization stats
13 Group: Development/Libraries
15 URL: http://et.redhat.com/~rjones/virt-top/
16 Source0: http://et.redhat.com/~rjones/virt-top/files/virt-top-%{version}.tar.gz
18 # Patches from native Fedora package:
19 Patch0: virt-top-1.0.3-bogus-zh_CN-plurals.patch
22 Patch1000: virt-top-1.0.3-link-pdcurses.patch
24 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
27 BuildRequires: mingw32-filesystem >= 35
28 BuildRequires: mingw32-gcc
29 BuildRequires: mingw32-binutils
31 BuildRequires: mingw32-ocaml
32 BuildRequires: mingw32-flexdll >= 0.11-7
33 #BuildRequires: ocaml-ocamldoc
34 BuildRequires: mingw32-ocaml-findlib
35 BuildRequires: mingw32-ocaml-curses >= 1.0.3-4
36 BuildRequires: mingw32-ocaml-extlib
37 BuildRequires: mingw32-ocaml-xml-light
38 BuildRequires: mingw32-ocaml-csv
39 BuildRequires: mingw32-ocaml-calendar
40 BuildRequires: mingw32-ocaml-libvirt >= 0.4.4.2-2
42 # gettext support is disabled temporarily.
43 ## Tortuous list of BRs for gettext.
44 #BuildRequires: ocaml-gettext-devel >= 0.3.0
45 #BuildRequires: ocaml-fileutils-devel
47 #BuildRequires: ocaml-camomile-data
51 BuildRequires: libvirt-devel
55 BuildRequires: autoconf, automake, libtool
59 virt-top is a 'top(1)'-like utility for showing stats of virtualized
60 domains. Many keys and command line options are the same as for
63 It uses libvirt so it is capable of showing stats across a variety of
64 different virtualization systems.
68 %setup -q -n virt-top-%{version}
79 # Workaround for non-tail-recursion in flexdll.
82 export OCAMLFIND_CONF=%{_sysconfdir}/%{_mingw32_target}-ocamlfind.conf
83 export OCAMLC=%{_mingw32_target}-ocamlc
89 rm -rf $RPM_BUILD_ROOT
91 export OCAMLFIND_CONF=%{_sysconfdir}/%{_mingw32_target}-ocamlfind.conf
93 make DESTDIR=$RPM_BUILD_ROOT install
97 rm -rf $RPM_BUILD_ROOT
101 %defattr(-,root,root)
102 %{_mingw32_bindir}/virt-top
106 * Sat Jan 24 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-3
107 - PDcurses library was renamed to libpdcurses.dll
109 * Mon Nov 17 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-2
110 - Initial RPM release.