Accepting request 419670 from Virtualization
Add virt-top to Factory (bsc#990150) OBS-URL: https://build.opensuse.org/request/show/419670 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/virt-top?expand=0&rev=1
This commit is contained in:
commit
a817bf234d
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
virt-top-1.0.8.tar.gz
Normal file
3
virt-top-1.0.8.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7c849fe949772edb6792d50be65d8c0900cf3039708bbc7fa511bed184d32112
|
||||
size 162573
|
1679
virt-top-aarch64.patch
Normal file
1679
virt-top-aarch64.patch
Normal file
File diff suppressed because it is too large
Load Diff
20
virt-top-no-immutable-warning.patch
Normal file
20
virt-top-no-immutable-warning.patch
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
virt-top/Makefile.in | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/virt-top/Makefile.in
|
||||
+++ b/virt-top/Makefile.in
|
||||
@@ -64,11 +64,11 @@ OBJS += virt_top_main.cmo
|
||||
|
||||
XOBJS := $(OBJS:.cmo=.cmx)
|
||||
|
||||
-OCAMLCFLAGS := -g -warn-error A
|
||||
+OCAMLCFLAGS := -g -warn-error A-3-52
|
||||
OCAMLCLIBS := -linkpkg
|
||||
|
||||
OCAMLOPTPACKAGES := $(OCAMLCPACKAGES)
|
||||
-OCAMLOPTFLAGS := -warn-error A
|
||||
+OCAMLOPTFLAGS := -warn-error A-3-52
|
||||
OCAMLOPTLIBS := $(OCAMLCLIBS)
|
||||
|
||||
BYTE_TARGETS := virt-top
|
32
virt-top.changes
Normal file
32
virt-top.changes
Normal file
@ -0,0 +1,32 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 16 19:14:49 UTC 2016 - mlatimer@suse.com
|
||||
|
||||
- Updated source code location and format to match upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 23 11:08:03 UTC 2016 - olaf@aepfle.de
|
||||
|
||||
- Ignore also Warning: 52 to fix build with ocaml 4.03 (fate#320836)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 3 14:37:44 UTC 2015 - mlatimer@suse.com
|
||||
|
||||
- Add ia64 and s390/s390x to ExcludeArch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 24 14:07:06 UTC 2015 - olaf@aepfle.de
|
||||
|
||||
- Remove ppc specific noexec stack code from spec file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 8 21:30:30 UTC 2014 - mlatimer@suse.com
|
||||
|
||||
- Update spec file to use ocaml-rpm-macros, remove
|
||||
ExclusiveArch, and ensure bytecode is built
|
||||
- Convert to source code to .bz2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 5 20:05:46 UTC 2014 - mlatimer@suse.com
|
||||
|
||||
- Initial commit using upstream version 1.0.8
|
||||
|
119
virt-top.spec
Normal file
119
virt-top.spec
Normal file
@ -0,0 +1,119 @@
|
||||
#
|
||||
# spec file for package virt-top
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: virt-top
|
||||
Version: 1.0.8
|
||||
%{ocaml_preserve_bytecode}
|
||||
Release: 0
|
||||
Summary: Utility like top(1) for displaying virtualization stats
|
||||
License: GPL-2.0+
|
||||
Group: System/Management
|
||||
Url: http://people.redhat.com/~rjones/virt-top/
|
||||
Source0: https://people.redhat.com/~rjones/virt-top/files/%{name}-%{version}.tar.gz
|
||||
ExcludeArch: ia64 s390 s390x
|
||||
## Update configure for aarch64 (bz #926701)
|
||||
Patch1: virt-top-aarch64.patch
|
||||
## Don't warn about immutable strings (OCaml 4.02).
|
||||
Patch2: virt-top-no-immutable-warning.patch
|
||||
BuildRequires: gawk
|
||||
# For msgfmt:
|
||||
BuildRequires: gettext
|
||||
# Non-OCaml BRs.
|
||||
BuildRequires: libvirt-devel
|
||||
BuildRequires: ocaml >= 3.10.2
|
||||
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
||||
BuildRequires: ocaml-calendar-devel
|
||||
BuildRequires: ocaml-camlp4
|
||||
BuildRequires: ocaml-csv-devel
|
||||
# Need the ncurses / ncursesw (--enable-widec) fix.
|
||||
BuildRequires: ocaml-curses-devel >= 1.0.3
|
||||
BuildRequires: ocaml-extlib-devel
|
||||
BuildRequires: ocaml-fileutils-devel
|
||||
BuildRequires: ocaml-findlib-devel
|
||||
# Tortuous list of BRs for gettext.
|
||||
BuildRequires: ocaml-gettext-devel >= 0.3.5
|
||||
BuildRequires: ocaml-gettext-stub-devel >= 0.3.5
|
||||
# Need support for virDomainGetCPUStats (fixed in 0.6.1.2).
|
||||
BuildRequires: ocaml-libvirt-devel >= 0.6.1.2-5
|
||||
BuildRequires: ocaml-ocamldoc
|
||||
BuildRequires: ocaml-xml-light-devel
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl(Pod::Perldoc)
|
||||
BuildRequires: strace
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%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
|
||||
|
||||
## Update configure for aarch64 (bz #926701)
|
||||
%patch1 -p1
|
||||
|
||||
%patch2 -p1
|
||||
|
||||
chmod -x COPYING
|
||||
|
||||
|
||||
%build
|
||||
%configure
|
||||
make %{?_smp_mflags} all
|
||||
%if %{ocaml_native_compiler}
|
||||
make %{?_smp_mflags} opt
|
||||
%endif
|
||||
|
||||
# Build translations.
|
||||
make %{?_smp_mflags} -C po
|
||||
|
||||
# Force rebuild of man page.
|
||||
rm -f virt-top/virt-top.1
|
||||
make %{?_smp_mflags} -C virt-top virt-top.1
|
||||
|
||||
|
||||
%install
|
||||
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||
|
||||
# Install translations.
|
||||
mkdir -p %{buildroot}%{_datadir}/locale
|
||||
make -C po install PODIR="%{buildroot}%{_datadir}/locale"
|
||||
%find_lang %{name}
|
||||
|
||||
# Install virt-top manpage by hand for now.
|
||||
mkdir -p %{buildroot}%{_mandir}/man1
|
||||
install -m 0644 virt-top/virt-top.1 %{buildroot}%{_mandir}/man1
|
||||
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING README TODO ChangeLog
|
||||
%{_bindir}/virt-top
|
||||
%{_mandir}/man1/virt-top.1*
|
||||
%if 0%{?rhel} >= 6
|
||||
%{_bindir}/processcsv.py
|
||||
%{_mandir}/man1/processcsv.py.1*
|
||||
%endif
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user