File nicstat.spec of Package nicstat

# spec file for package nicstat
# Copyright (c) 2014 SUSE LINUX Products 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

Summary:	Network traffic statics utility
Name:		nicstat
Version:	1.95
Release:	0
Group:		Productivity/Networking/Other
License:	GPL-2.0
BuildRoot:  %{_tmppath}/%{name}-%{version}-build

Prints out network statistics for all network cards (NICs), including packets,
kilobytes per second, average packet sizes and more.


%setup -q -n nicstat-src-%{version}

gcc %{optflags}  nicstat.c -o nicstat


install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -m0755 nicstat %{buildroot}%{_bindir}/
install -m0644 nicstat.1 %{buildroot}%{_mandir}/man1/

%doc ChangeLog.txt LICENSE.txt README.txt

openSUSE Build Service is sponsored by