2020-08-25 16:48:38 +08:00
|
|
|
|
Name: vmtop
|
|
|
|
|
|
Version: 1.0
|
2020-09-09 18:50:04 +08:00
|
|
|
|
Release: 1
|
2020-08-25 16:48:38 +08:00
|
|
|
|
Summary: A tool for collecting and analyzing data of virtual machine
|
|
|
|
|
|
License: Mulan PSL V2
|
|
|
|
|
|
Group: Application/System
|
|
|
|
|
|
URL: https://gitee.com/openeuler/vmtop
|
|
|
|
|
|
|
|
|
|
|
|
Source:https://gitee.com/src-openeuler/vmtop/blob/master/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
Requires: libvirt, ncurses
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
|
Buildrequires: libvirt-devel
|
|
|
|
|
|
|
|
|
|
|
|
Provides: vmtop = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
This is a userspace tool which you can run it in host to help detecting VM's performance. By vmtop, you can quickly query vcpu info such as cpu usage, kvm exit times, memory usage and etc.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
%autosetup -c -n %{name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
aclocal
|
|
|
|
|
|
autoconf
|
|
|
|
|
|
autoheader
|
|
|
|
|
|
automake --add-missing
|
|
|
|
|
|
./configure --libdir=%{_libdir} \
|
|
|
|
|
|
--bindir=%{_bindir} \
|
2020-09-09 18:50:04 +08:00
|
|
|
|
--sbindir=%{_sbindir} \
|
|
|
|
|
|
--enable-secure-build
|
2020-08-25 16:48:38 +08:00
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
mkdir -p %{buildroot}/usr/bin
|
|
|
|
|
|
install -m 550 vmtop ${RPM_BUILD_ROOT}/usr/bin/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
|
%license License/LICENSE
|
|
|
|
|
|
%{_bindir}/vmtop
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-09-09 18:50:04 +08:00
|
|
|
|
* Wed Sep 09 2020 Jiajun Chen <1250062498@qq.com> - 1.0-1
|
|
|
|
|
|
- vmtop:Show kvm exit items and add document to project
|
|
|
|
|
|
|
2020-08-25 16:48:38 +08:00
|
|
|
|
* Tue Aug 25 2020 Jiajun Chen <1250062498@qq.com> - 1.0-0
|
|
|
|
|
|
- vmtop: add spec and source code tar for project to build rpm
|