2008-05-20 08:35:08 +00:00
|
|
|
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
Name: virt-top
|
2009-10-05 15:26:50 +00:00
|
|
|
Version: 1.0.4
|
2009-10-05 15:36:15 +00:00
|
|
|
Release: 2%{?dist}
|
2008-05-20 08:35:08 +00:00
|
|
|
Summary: Utility like top(1) for displaying virtualization stats
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: GPLv2+
|
|
|
|
URL: http://et.redhat.com/~rjones/virt-top/
|
|
|
|
Source0: http://et.redhat.com/~rjones/virt-top/files/%{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2009-04-16 09:26:14 +00:00
|
|
|
ExcludeArch: sparc64 s390 s390x
|
2008-05-20 08:35:08 +00:00
|
|
|
|
2008-10-21 09:59:18 +00:00
|
|
|
Patch0: virt-top-1.0.3-bogus-zh_CN-plurals.patch
|
2009-10-05 15:26:50 +00:00
|
|
|
Patch1: virt-top-1.0.4-bogus-ja-plurals.patch
|
2008-10-21 09:59:18 +00:00
|
|
|
|
2008-10-21 09:29:56 +00:00
|
|
|
BuildRequires: ocaml >= 3.10.2
|
2008-05-20 08:35:08 +00:00
|
|
|
BuildRequires: ocaml-ocamldoc
|
|
|
|
BuildRequires: ocaml-findlib-devel
|
2009-10-05 15:26:50 +00:00
|
|
|
# Need the ncurses / ncursesw (--enable-widec) fix.
|
|
|
|
BuildRequires: ocaml-curses-devel >= 1.0.3-7
|
2008-05-20 08:35:08 +00:00
|
|
|
BuildRequires: ocaml-extlib-devel
|
|
|
|
BuildRequires: ocaml-xml-light-devel
|
|
|
|
BuildRequires: ocaml-csv-devel
|
|
|
|
BuildRequires: ocaml-calendar-devel
|
|
|
|
BuildRequires: ocaml-libvirt-devel
|
|
|
|
|
|
|
|
# Tortuous list of BRs for gettext.
|
|
|
|
BuildRequires: ocaml-gettext-devel >= 0.3.0
|
|
|
|
BuildRequires: ocaml-fileutils-devel
|
|
|
|
%ifnarch ppc64
|
|
|
|
BuildRequires: ocaml-camomile-data
|
|
|
|
%endif
|
2009-10-05 15:36:15 +00:00
|
|
|
# For msgfmt:
|
|
|
|
BuildRequires: gettext
|
2008-05-20 08:35:08 +00:00
|
|
|
|
|
|
|
# Non-OCaml BRs.
|
|
|
|
BuildRequires: libvirt-devel
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: gawk
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
virt-top is a 'top(1)'-like utility for showing stats of virtualized
|
|
|
|
domains. Many keys and command line options are the same as for
|
|
|
|
ordinary 'top'.
|
|
|
|
|
|
|
|
It uses libvirt so it is capable of showing stats across a variety of
|
|
|
|
different virtualization systems.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2008-10-21 09:59:18 +00:00
|
|
|
%patch0 -p1
|
2009-10-05 15:26:50 +00:00
|
|
|
%patch1 -p1
|
2008-05-20 08:35:08 +00:00
|
|
|
chmod -x COPYING
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
make all
|
|
|
|
%if %opt
|
|
|
|
make opt
|
|
|
|
strip virt-top/virt-top.opt
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# Build translations.
|
|
|
|
make -C po
|
|
|
|
|
|
|
|
# Force rebuild of man page.
|
|
|
|
rm virt-top/virt-top.1
|
|
|
|
make -C virt-top virt-top.1
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
|
|
|
# Install translations.
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale
|
|
|
|
make -C po install PODIR="$RPM_BUILD_ROOT%{_datadir}/locale"
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
# Install virt-top manpage by hand for now.
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
|
install -m 0644 virt-top/virt-top.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING README TODO.virt-top ChangeLog
|
|
|
|
%{_bindir}/virt-top
|
|
|
|
%{_mandir}/man1/virt-top.1*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2009-10-05 15:36:15 +00:00
|
|
|
* Mon Oct 5 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-2
|
2009-10-05 15:26:50 +00:00
|
|
|
- New upstream release 1.0.4.
|
|
|
|
- Includes new translations (RHBZ#493799).
|
|
|
|
- Overall hardware memory is now displayed in CSV file (RHBZ#521785).
|
|
|
|
- Several fixes to Japanese support (RHBZ#508197).
|
|
|
|
- Japanese PO file also has bogus plural forms.
|
2009-10-05 15:36:15 +00:00
|
|
|
- Additional BR on gettext (for msgfmt).
|
2009-10-05 15:26:50 +00:00
|
|
|
|
2009-07-27 06:55:36 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-04-16 09:26:14 +00:00
|
|
|
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
|
|
|
|
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
|
|
|
|
(added sparc64 per request from the sparc maintainer)
|
|
|
|
|
2009-02-26 00:35:02 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-05 14:47:05 +00:00
|
|
|
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-3
|
|
|
|
- Rebuild for OCaml 3.11.0+rc1.
|
|
|
|
|
2008-10-21 09:59:18 +00:00
|
|
|
* Tue Oct 21 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-2
|
|
|
|
- Fix incorrect sources file.
|
|
|
|
- Remove bogus Plural-Forms line from zh_CN PO file.
|
|
|
|
|
2008-10-21 09:29:56 +00:00
|
|
|
* Tue Oct 21 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-1
|
|
|
|
- New upstream version 1.0.3.
|
|
|
|
|
2008-05-20 08:35:08 +00:00
|
|
|
* Mon May 19 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-2
|
|
|
|
- Use RPM percent-configure.
|
|
|
|
- Add list of BRs for gettext.
|
|
|
|
- Use find_lang to find PO files.
|
|
|
|
- Comment out the OCaml dependency generator. Not a library so not
|
|
|
|
needed.
|
|
|
|
|
|
|
|
* Thu May 1 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-1
|
|
|
|
- New upstream release 1.0.1.
|
|
|
|
- Don't BR ocaml-gettext-devel, it's not used at the moment.
|
|
|
|
- Don't gzip the manpage, it happens automatically.
|
|
|
|
- Add BR libvirt-devel.
|
|
|
|
- Remove spurious executable bit on COPYING.
|
|
|
|
|
|
|
|
* Thu Apr 17 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-2
|
|
|
|
- New upstream release 1.0.0.
|
|
|
|
- Force rebuild of manpage.
|
|
|
|
|
|
|
|
* Tue Mar 19 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.1.1-1
|
|
|
|
- New upstream release 0.4.1.1.
|
|
|
|
- Move configure to build section.
|
|
|
|
- Pass RPM_OPT_FLAGS.
|
|
|
|
|
|
|
|
* Tue Mar 4 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.1.0-2
|
|
|
|
- Fix source URL.
|
|
|
|
- Install virt-df manpage.
|
|
|
|
|
|
|
|
* Tue Mar 4 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.1.0-1
|
|
|
|
- New upstream release 0.4.1.0.
|
|
|
|
- Upstream now requires ocaml-dbus >= 0.06, ocaml-lablgtk >= 2.10.0,
|
|
|
|
ocaml-dbus-devel.
|
|
|
|
- Enable virt-df.
|
|
|
|
|
|
|
|
* Sat Mar 1 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.0.3-3
|
|
|
|
- Rebuild for ppc64.
|
|
|
|
|
|
|
|
* Wed Feb 13 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.0.3-2
|
|
|
|
- Add BR gtk2-devel
|
|
|
|
|
|
|
|
* Tue Feb 12 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.0.3-1
|
|
|
|
- New upstream version 0.4.0.3.
|
|
|
|
- Rebuild for OCaml 3.10.1.
|
|
|
|
|
|
|
|
* Tue Nov 20 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.3.4-1
|
|
|
|
- New upstream release 0.3.3.4.
|
|
|
|
- Upstream website is now http://libvirt.org/ocaml/
|
|
|
|
|
|
|
|
* Fri Oct 19 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.3.0-2
|
|
|
|
- Mistake: BR is ocaml-calendar-devel.
|
|
|
|
|
|
|
|
* Fri Oct 19 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.3.0-1
|
|
|
|
- New upstream release 0.3.3.0.
|
|
|
|
- Added support for virt-df, but disabled it by default.
|
|
|
|
- +BR ocaml-calendar.
|
|
|
|
|
|
|
|
* Mon Sep 24 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.8-1
|
|
|
|
- New upstream release 0.3.2.8.
|
|
|
|
|
|
|
|
* Thu Sep 20 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.7-1
|
|
|
|
- New upstream release 0.3.2.7.
|
|
|
|
- Ship the upstream ChangeLog file.
|
|
|
|
|
|
|
|
* Thu Sep 6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.6-2
|
|
|
|
- Force dependency on ocaml >= 3.10.0-7 which has fixed requires/provides
|
|
|
|
scripts.
|
|
|
|
|
|
|
|
* Thu Sep 6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.6-1
|
|
|
|
- New upstream version 0.3.2.6.
|
|
|
|
|
|
|
|
* Wed Aug 29 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.5-1
|
|
|
|
- New upstream version 0.3.2.5.
|
|
|
|
- Keep TODO out of the main package, but add (renamed) TODO.libvirt and
|
|
|
|
TODO.virt-top to the devel and virt-top packages respectively.
|
|
|
|
- Add BR gawk.
|
|
|
|
|
|
|
|
* Thu Aug 23 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.4-1
|
|
|
|
- New upstream version 0.3.2.4.
|
|
|
|
|
|
|
|
* Thu Aug 23 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.3-2
|
|
|
|
- build_* macros so we can choose what subpackages to build.
|
|
|
|
|
|
|
|
* Thu Aug 23 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.3-1
|
|
|
|
- Upstream version 0.3.2.3.
|
|
|
|
- Add missing BR libvirt-devel.
|
|
|
|
|
|
|
|
* Wed Aug 22 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.2-1
|
|
|
|
- Upstream version 0.3.2.2.
|
|
|
|
|
|
|
|
* Wed Aug 22 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.1-2
|
|
|
|
- Fix unclosed if-statement in spec file.
|
|
|
|
|
|
|
|
* Wed Aug 22 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.1-1
|
|
|
|
- Upstream version 0.3.2.1.
|
|
|
|
- Put HTML documentation in -devel package.
|
|
|
|
|
|
|
|
* Mon Aug 6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.1.2-1
|
|
|
|
- Initial RPM release.
|