File nettop.spec of Package nettop

#
# spec file for package nettop
#
# Copyright (c) 2017, 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/
#

Name:           nettop
Version:        0.0.0.git1501916950.0810a27
Release:        0
Summary:        Utility to show network traffic (both TCP and UDP v4 and v6)
License:        GPL-3.0
Group:          System/Monitoring
Url:            http://nettop.youlink.org/
#Git-Clone:     https://github.com/Emanem/nettop.git
Source:         %{name}-%{version}.tar.xz
Patch0:         nettop-fix-makefile.patch
BuildRequires:  libpcap-devel
BuildRequires:  ncurses-devel
BuildRequires:  gcc-c++

%description
Utility to show network traffic (both TCP and UDP v4 and v6) split by
process and remote host.

%prep
%setup -q
%patch0 -p1

%build
export FLAGS="%{optflags} `/usr/bin/ncurses6-config --libs` `/usr/bin/ncurses6-config --cflags`"
make %{?_smp_mflags}

%install
install -Dpm 0755 nettop %{buildroot}/%{_bindir}/nettop

%files
%doc README.md LICENSE
%{_bindir}/nettop

%changelog
openSUSE Build Service is sponsored by