File dstat.spec of Package dstat
#
# spec file for package dstat
#
# Copyright (c) 2016 SUSE LINUX 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: dstat
Version: 0.7.2
Release: 0
Summary: Versatile vmstat, iostat and ifstat Replacement
License: GPL-2.0
Group: System/Monitoring
Url: http://dag.wieers.com/home-made/dstat/
Source: http://dag.wieers.com/home-made/dstat/dstat-%{version}.tar.bz2
Source1: dstat.desktop
BuildRequires: make
Requires: python
BuildArch: noarch
%if 0%{?suse_version}
BuildRequires: update-desktop-files
Requires: python-curses
Recommends: python-utmp
%endif
%description
Dstat is a versatile replacement for vmstat, iostat, netstat and ifstat.
Dstat overcomes some of their limitations and adds some extra features,
more counters and flexibility. Dstat is handy for monitoring systems
during performance tuning tests, benchmarks or troubleshooting.
Dstat allows you to view all of your system resources instantly, you
can eg. compare disk usage in combination with interrupts from your
IDE controller, or compare the network bandwidth numbers directly
with the disk throughput (in the same interval).
Dstat gives you detailed selective information in columns and clearly
indicates in what magnitude and unit the output is displayed. Less
confusion, less mistakes.
%prep
%setup -q
%build
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
install -D -m 0644 docs/dstat.1 "%{buildroot}%{_mandir}/man1/dstat.1"
install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%if 0%{?suse_update_desktop_file:1}
%suse_update_desktop_file -r "%{name}" System Monitor
%endif
rm docs/Makefile
%if 0%{?suse_version}
%post
%desktop_database_post
%postun
%desktop_database_postun
%endif
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README TODO WISHLIST
%doc docs/*.html docs/*.txt examples/ proc/
%{_bindir}/dstat
%dir %{_datadir}/dstat
%{_datadir}/dstat/*
%{_mandir}/man1/dstat.1%{ext_man}
%{_datadir}/applications/dstat.desktop
%changelog