622103d
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
622103d
%global debug_package %{nil}
fbe37c2
fbe37c2
Name:           virt-top
622103d
Version:        1.0.8
1c3106a
Release:        5%{?dist}
fbe37c2
Summary:        Utility like top(1) for displaying virtualization stats
fbe37c2
fbe37c2
License:        GPLv2+
321c856
URL:            http://people.redhat.com/~rjones/virt-top/
321c856
Source0:        http://people.redhat.com/~rjones/virt-top/files/%{name}-%{version}.tar.gz
1c3106a
1c3106a
# Update configure for aarch64 (bz #926701)
1c3106a
Patch1: virt-top-aarch64.patch
afef977
ExcludeArch:    sparc64 s390 s390x
fbe37c2
1452f9c
BuildRequires:  ocaml >= 3.10.2
fbe37c2
BuildRequires:  ocaml-ocamldoc
fbe37c2
BuildRequires:  ocaml-findlib-devel
443e4b4
# Need the ncurses / ncursesw (--enable-widec) fix.
443e4b4
BuildRequires:  ocaml-curses-devel >= 1.0.3-7
fbe37c2
BuildRequires:  ocaml-extlib-devel
fbe37c2
BuildRequires:  ocaml-xml-light-devel
fbe37c2
BuildRequires:  ocaml-csv-devel
fbe37c2
BuildRequires:  ocaml-calendar-devel
c05f685
# Need support for virDomainGetCPUStats (fixed in 0.6.1.2).
622103d
BuildRequires:  ocaml-libvirt-devel >= 0.6.1.2-5
fbe37c2
fbe37c2
# Tortuous list of BRs for gettext.
069702b
BuildRequires:  ocaml-gettext-devel >= 0.3.3
fbe37c2
BuildRequires:  ocaml-fileutils-devel
26bb539
# For msgfmt:
26bb539
BuildRequires:  gettext
fbe37c2
fbe37c2
# Non-OCaml BRs.
fbe37c2
BuildRequires:  libvirt-devel
fbe37c2
BuildRequires:  perl
f63f378
BuildRequires:  perl(Pod::Perldoc)
fbe37c2
BuildRequires:  gawk
fbe37c2
fbe37c2
fbe37c2
%description
fbe37c2
virt-top is a 'top(1)'-like utility for showing stats of virtualized
fbe37c2
domains.  Many keys and command line options are the same as for
fbe37c2
ordinary 'top'.
fbe37c2
fbe37c2
It uses libvirt so it is capable of showing stats across a variety of
fbe37c2
different virtualization systems.
fbe37c2
fbe37c2
fbe37c2
%prep
fbe37c2
%setup -q
1c3106a
1c3106a
# Update configure for aarch64 (bz #926701)
1c3106a
%patch1 -p1
fbe37c2
chmod -x COPYING
fbe37c2
fbe37c2
fbe37c2
%build
fbe37c2
%configure
fbe37c2
make all
fbe37c2
%if %opt
fbe37c2
make opt
fbe37c2
strip virt-top/virt-top.opt
fbe37c2
%endif
fbe37c2
fbe37c2
# Build translations.
fbe37c2
make -C po
fbe37c2
fbe37c2
# Force rebuild of man page.
f63f378
rm -f virt-top/virt-top.1
fbe37c2
make -C virt-top virt-top.1
fbe37c2
fbe37c2
fbe37c2
%install
fbe37c2
make DESTDIR=$RPM_BUILD_ROOT install
fbe37c2
fbe37c2
# Install translations.
fbe37c2
mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale
fbe37c2
make -C po install PODIR="$RPM_BUILD_ROOT%{_datadir}/locale"
fbe37c2
%find_lang %{name}
fbe37c2
fbe37c2
# Install virt-top manpage by hand for now.
fbe37c2
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
fbe37c2
install -m 0644 virt-top/virt-top.1 $RPM_BUILD_ROOT%{_mandir}/man1
fbe37c2
fbe37c2
fbe37c2
%files -f %{name}.lang
321c856
%doc COPYING README TODO ChangeLog
fbe37c2
%{_bindir}/virt-top
fbe37c2
%{_mandir}/man1/virt-top.1*
fbe37c2
fbe37c2
fbe37c2
%changelog
1c3106a
* Fri Jun 28 2013 Cole Robinson <crobinso@redhat.com> - 1.0.8-5
1c3106a
- Update configure for aarch64 (bz #926701)
1c3106a
6f5b6e6
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-4
6f5b6e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6f5b6e6
35b4660
* Fri Dec 14 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.8-3
35b4660
- Rebuild for OCaml 4.00.1.
35b4660
9089cba
* Fri Oct 12 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.8-2
622103d
- New upstream version 1.0.8.
622103d
- Requires tiny change to ocaml-libvirt, hence dep bump.
622103d
- Clean up the spec file.
9089cba
- Remove explicit BR ocaml-camomile (not used AFAIK).
622103d
41cd6b1
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-3
41cd6b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
41cd6b1
c05f685
* Fri Mar 23 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.7-2
c05f685
- Require fixed ocaml-libvirt.
c05f685
c4cf25c
* Tue Mar  6 2012 Richard W.M. Jones <rjones@redhat.com> - 1.0.7-1
c4cf25c
- New upstream version 1.0.7.
c4cf25c
- Includes true physical CPU reporting (when libvirt supports this).
c4cf25c
596fb26
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-2
596fb26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
596fb26
fb95e5d
* Fri Aug 12 2011 Richard W.M. Jones <rjones@redhat.com> - 1.0.6-1
fb95e5d
- New upstream version 1.0.6.
fb95e5d
297907d
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-2
297907d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
297907d
321c856
* Thu Jan  6 2011 Richard W.M. Jones <rjones@redhat.com> - 1.0.5-1
321c856
- New upstream version 1.0.5.
321c856
- Rebuild against OCaml 3.12.0.
321c856
- Project website moved to people.redhat.com.
321c856
- Remove upstream patches.
321c856
069702b
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-3
069702b
- Force rebuild against latest ocaml-gettext 0.3.3 (RHBZ#508197#c10).
069702b
26bb539
* Mon Oct  5 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.4-2
443e4b4
- New upstream release 1.0.4.
443e4b4
- Includes new translations (RHBZ#493799).
443e4b4
- Overall hardware memory is now displayed in CSV file (RHBZ#521785).
443e4b4
- Several fixes to Japanese support (RHBZ#508197).
443e4b4
- Japanese PO file also has bogus plural forms.
26bb539
- Additional BR on gettext (for msgfmt).
443e4b4
8e9e392
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-5
8e9e392
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8e9e392
afef977
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
afef977
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
afef977
  (added sparc64 per request from the sparc maintainer)
afef977
5da6540
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-4
5da6540
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5da6540
c45ee06
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-3
c45ee06
- Rebuild for OCaml 3.11.0+rc1.
c45ee06
355b8a1
* Tue Oct 21 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-2
355b8a1
- Fix incorrect sources file.
355b8a1
- Remove bogus Plural-Forms line from zh_CN PO file.
355b8a1
1452f9c
* Tue Oct 21 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-1
1452f9c
- New upstream version 1.0.3.
1452f9c
fbe37c2
* Mon May 19 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-2
fbe37c2
- Use RPM percent-configure.
fbe37c2
- Add list of BRs for gettext.
fbe37c2
- Use find_lang to find PO files.
fbe37c2
- Comment out the OCaml dependency generator.  Not a library so not
fbe37c2
  needed.
fbe37c2
fbe37c2
* Thu May  1 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-1
fbe37c2
- New upstream release 1.0.1.
fbe37c2
- Don't BR ocaml-gettext-devel, it's not used at the moment.
fbe37c2
- Don't gzip the manpage, it happens automatically.
fbe37c2
- Add BR libvirt-devel.
fbe37c2
- Remove spurious executable bit on COPYING.
fbe37c2
fbe37c2
* Thu Apr 17 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-2
fbe37c2
- New upstream release 1.0.0.
fbe37c2
- Force rebuild of manpage.
fbe37c2
fbe37c2
* Tue Mar 19 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.1.1-1
fbe37c2
- New upstream release 0.4.1.1.
fbe37c2
- Move configure to build section.
fbe37c2
- Pass RPM_OPT_FLAGS.
fbe37c2
fbe37c2
* Tue Mar  4 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.1.0-2
fbe37c2
- Fix source URL.
fbe37c2
- Install virt-df manpage.
fbe37c2
fbe37c2
* Tue Mar  4 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.1.0-1
fbe37c2
- New upstream release 0.4.1.0.
fbe37c2
- Upstream now requires ocaml-dbus >= 0.06, ocaml-lablgtk >= 2.10.0,
fbe37c2
  ocaml-dbus-devel.
fbe37c2
- Enable virt-df.
fbe37c2
fbe37c2
* Sat Mar  1 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.0.3-3
fbe37c2
- Rebuild for ppc64.
fbe37c2
fbe37c2
* Wed Feb 13 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.0.3-2
fbe37c2
- Add BR gtk2-devel
fbe37c2
fbe37c2
* Tue Feb 12 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.0.3-1
fbe37c2
- New upstream version 0.4.0.3.
fbe37c2
- Rebuild for OCaml 3.10.1.
fbe37c2
fbe37c2
* Tue Nov 20 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.3.4-1
fbe37c2
- New upstream release 0.3.3.4.
fbe37c2
- Upstream website is now http://libvirt.org/ocaml/
fbe37c2
fbe37c2
* Fri Oct 19 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.3.0-2
fbe37c2
- Mistake: BR is ocaml-calendar-devel.
fbe37c2
fbe37c2
* Fri Oct 19 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.3.0-1
fbe37c2
- New upstream release 0.3.3.0.
fbe37c2
- Added support for virt-df, but disabled it by default.
fbe37c2
- +BR ocaml-calendar.
fbe37c2
fbe37c2
* Mon Sep 24 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.8-1
fbe37c2
- New upstream release 0.3.2.8.
fbe37c2
fbe37c2
* Thu Sep 20 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.7-1
fbe37c2
- New upstream release 0.3.2.7.
fbe37c2
- Ship the upstream ChangeLog file.
fbe37c2
fbe37c2
* Thu Sep  6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.6-2
fbe37c2
- Force dependency on ocaml >= 3.10.0-7 which has fixed requires/provides
fbe37c2
  scripts.
fbe37c2
fbe37c2
* Thu Sep  6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.6-1
fbe37c2
- New upstream version 0.3.2.6.
fbe37c2
fbe37c2
* Wed Aug 29 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.5-1
fbe37c2
- New upstream version 0.3.2.5.
fbe37c2
- Keep TODO out of the main package, but add (renamed) TODO.libvirt and
fbe37c2
  TODO.virt-top to the devel and virt-top packages respectively.
fbe37c2
- Add BR gawk.
fbe37c2
fbe37c2
* Thu Aug 23 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.4-1
fbe37c2
- New upstream version 0.3.2.4.
fbe37c2
fbe37c2
* Thu Aug 23 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.3-2
fbe37c2
- build_* macros so we can choose what subpackages to build.
fbe37c2
fbe37c2
* Thu Aug 23 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.3-1
fbe37c2
- Upstream version 0.3.2.3.
fbe37c2
- Add missing BR libvirt-devel.
fbe37c2
fbe37c2
* Wed Aug 22 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.2-1
fbe37c2
- Upstream version 0.3.2.2.
fbe37c2
fbe37c2
* Wed Aug 22 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.1-2
fbe37c2
- Fix unclosed if-statement in spec file.
fbe37c2
fbe37c2
* Wed Aug 22 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.1-1
fbe37c2
- Upstream version 0.3.2.1.
fbe37c2
- Put HTML documentation in -devel package.
fbe37c2
fbe37c2
* Mon Aug  6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.1.2-1
fbe37c2
- Initial RPM release.