File ioping.spec of Package ioping

#
# spec file for package ioping
#
# Copyright (c) 2017 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:           ioping
Version:        1.0
Release:        0
Summary:        A tool to monitor I/O latency in real time
License:        GPL-3.0+
Group:          System/Benchmark
Url:            https://github.com/koct9i/ioping
Source:         https://github.com/koct9i/ioping/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz

%description
A tool to monitor I/O latency in real time. It shows disk latency in the
same way as ping shows network latency.

%prep
%setup -q

%build
make %{?_smp_mflags} CFLAGS="%{optflags} -std=gnu99"

%install
install -D -p -m 0755 %{name} \
  %{buildroot}%{_bindir}/%{name}
install -D -p -m 0644 %{name}.1 \
  %{buildroot}%{_mandir}/man1/%{name}.1

%files
%defattr(-,root,root,-)
%doc LICENSE README.md changelog
%{_bindir}/ioping
%{_mandir}/man1/ioping.1%{ext_man}

%changelog
openSUSE Build Service is sponsored by