|
|
|
@ -1,9 +1,7 @@
|
|
|
|
|
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%undefine _package_note_flags
|
|
|
|
|
Name: virt-top
|
|
|
|
|
Version: 1.0.9
|
|
|
|
|
Release: 21%{?dist}
|
|
|
|
|
Version: 1.1.1
|
|
|
|
|
Release: 9%{?dist}
|
|
|
|
|
Summary: Utility like top(1) for displaying virtualization stats
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
|
|
|
|
@ -14,31 +12,34 @@ ExcludeArch: %{power64}
|
|
|
|
|
|
|
|
|
|
URL: http://people.redhat.com/~rjones/virt-top/
|
|
|
|
|
Source0: http://people.redhat.com/~rjones/virt-top/files/%{name}-%{version}.tar.gz
|
|
|
|
|
Source1: http://people.redhat.com/~rjones/virt-top/files/%{name}-%{version}.tar.gz.sig
|
|
|
|
|
|
|
|
|
|
# Post-process output of CSV file (RHBZ#665817, RHBZ#912020).
|
|
|
|
|
Source1: processcsv.py
|
|
|
|
|
Source2: processcsv.py.pod
|
|
|
|
|
Source2: processcsv.py
|
|
|
|
|
Source3: processcsv.py.pod
|
|
|
|
|
|
|
|
|
|
# Keyring used to verify tarball signature.
|
|
|
|
|
Source4: libguestfs.keyring
|
|
|
|
|
|
|
|
|
|
# Adds a link to processcsv to the man page. This patch is only
|
|
|
|
|
# included in RHEL builds.
|
|
|
|
|
Patch0: virt-top-1.0.9-processcsv-documentation.patch
|
|
|
|
|
Patch1: virt-top-1.0.9-processcsv-documentation.patch
|
|
|
|
|
|
|
|
|
|
# Fix "Input/output error" in journal (RHBZ#2148798)
|
|
|
|
|
Patch2: 0001-virt-top-fix-to-explicitly-disconnect-from-libvirtd.patch
|
|
|
|
|
|
|
|
|
|
# Upstream patch to fix FTBFS with ocaml libvirt 0.6.1.5.
|
|
|
|
|
Patch1: 0001-libvirt-Handle-VIR_DOMAIN_PMSUSPENDED-state.patch
|
|
|
|
|
# Fix parse error using --init-file option (RHBZ#2159549)
|
|
|
|
|
Patch3: 0002-virt-top-fix-to-parse-init-file-correctly.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: ocaml >= 3.10.2
|
|
|
|
|
BuildRequires: ocaml-ocamldoc
|
|
|
|
|
BuildRequires: ocaml-findlib-devel
|
|
|
|
|
# Need the ncurses / ncursesw (--enable-widec) fix.
|
|
|
|
|
BuildRequires: ocaml-curses-devel >= 1.0.3-7
|
|
|
|
|
BuildRequires: ocaml-extlib-devel
|
|
|
|
|
BuildRequires: ocaml-xml-light-devel
|
|
|
|
|
BuildRequires: ocaml-csv-devel
|
|
|
|
|
BuildRequires: ocaml-calendar-devel
|
|
|
|
|
BuildRequires: ocaml-libvirt-devel >= 0.6.1.5
|
|
|
|
|
|
|
|
|
|
# Tortuous list of BRs for gettext.
|
|
|
|
|
BuildRequires: ocaml-gettext-devel >= 0.3.3
|
|
|
|
|
BuildRequires: ocaml-fileutils-devel
|
|
|
|
|
# For msgfmt:
|
|
|
|
@ -46,9 +47,11 @@ BuildRequires: gettext
|
|
|
|
|
|
|
|
|
|
# Non-OCaml BRs.
|
|
|
|
|
BuildRequires: libvirt-devel
|
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(Pod::Perldoc)
|
|
|
|
|
BuildRequires: gawk
|
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -61,34 +64,29 @@ different virtualization systems.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} >= 6
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
%endif
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
%patch3 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure
|
|
|
|
|
make all
|
|
|
|
|
%if %opt
|
|
|
|
|
make opt
|
|
|
|
|
strip src/virt-top.opt
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Build translations.
|
|
|
|
|
make -C po
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
# Force rebuild of man page.
|
|
|
|
|
# There is a missing man_MANS rule, will fix upstream in next version.
|
|
|
|
|
rm -f src/virt-top.1
|
|
|
|
|
make -C src virt-top.1
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} >= 6
|
|
|
|
|
# Build processcsv.py.1.
|
|
|
|
|
pod2man -c "Virtualization Support" --release "%{name}-%{version}" \
|
|
|
|
|
%{SOURCE2} > processcsv.py.1
|
|
|
|
|
%{SOURCE3} > processcsv.py.1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -96,17 +94,15 @@ pod2man -c "Virtualization Support" --release "%{name}-%{version}" \
|
|
|
|
|
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.
|
|
|
|
|
# Install virt-top manpage by hand for now - see above.
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
|
|
install -m 0644 src/virt-top.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} >= 6
|
|
|
|
|
# Install processcsv.py.
|
|
|
|
|
install -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
|
install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
|
|
|
|
|
|
# Install processcsv.py(1).
|
|
|
|
|
install -m 0644 processcsv.py.1 $RPM_BUILD_ROOT%{_mandir}/man1/
|
|
|
|
@ -114,7 +110,7 @@ install -m 0644 processcsv.py.1 $RPM_BUILD_ROOT%{_mandir}/man1/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%doc COPYING README TODO ChangeLog
|
|
|
|
|
%doc COPYING README TODO
|
|
|
|
|
%{_bindir}/virt-top
|
|
|
|
|
%{_mandir}/man1/virt-top.1*
|
|
|
|
|
%if 0%{?rhel} >= 6
|
|
|
|
@ -124,6 +120,18 @@ install -m 0644 processcsv.py.1 $RPM_BUILD_ROOT%{_mandir}/man1/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Jan 10 2023 Richard W.M. Jones <rjones@redhat.com> - 1.1.1-9
|
|
|
|
|
- Fix parse error using --init-file option
|
|
|
|
|
resolves: rhbz#2159549
|
|
|
|
|
|
|
|
|
|
* Mon Nov 28 2022 Richard W.M. Jones <rjones@redhat.com> - 1.1.1-7
|
|
|
|
|
- Fix "Input/output error" in journal
|
|
|
|
|
resolves: rhbz#2148798
|
|
|
|
|
|
|
|
|
|
* Tue Oct 18 2022 Richard W.M. Jones <rjones@redhat.com> - 1.1.1-6
|
|
|
|
|
- Rebase to virt-top 1.1.1
|
|
|
|
|
resolves: rhbz#2135768
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.9-21
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|