File ethr.spec of Package ethr

#
# spec file for package ethr
#
# Copyright (c) 2018, Martin Hauke <mardnh@gmx.de>
#
# 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/
#

%global provider        github
%global provider_tld    com
%global project         Microsoft
%global repo            ethr
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     %{provider_prefix}

Name:           ethr
Version:        0.2.1
Release:        0
Summary:        A Network Performance Measurement Tool for TCP, UDP & HTTP
License:        MIT
Group:          Productivity/Networking/Diagnostic
Url:            https://github.com/Microsoft/ethr
Source0:        https://github.com/Microsoft/ethr/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  golang-packaging
BuildRequires:  golang(github.com/mattn/go-runewidth)
BuildRequires:  golang(github.com/nsf/termbox-go)
%{go_nostrip}
%{go_provides}

%description
Ethr provides provides measurements for connections/s, packets/s and latency
in a single tool.

%prep
%setup -q

%build
%{goprep} %{import_path}
%{gobuild} ...

%install
%{goinstall}
%{gosrc}
%{gofilelist}

%check
%{gotest} %{import_path}...

%files -f file.lst
%doc README.md
%license LICENSE
%{_bindir}/ethr

%changelog
openSUSE Build Service is sponsored by