File pktstat.spec of Package pktstat

# vim: set ts=4 sw=4 et:

# Copyright (c) 2012 Pascal Bleser <>
# 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

Name:           pktstat
Version:        1.8.5
Release:        0
Summary:        Realtime Packet Activity Viewer for the Console
Source1:        %{name}.desktop
Patch1:         %{name}-fix-compat.diff
Group:          Productivity/Networking/Diagnostic
License:        Public Domain
BuildRoot:      %{_tmppath}/build-%{name}-%{version}
%if %suse_version >= 1030
BuildRequires:  libpcap-devel libpcap
BuildRequires:  libpcap
BuildRequires:  gcc ncurses-devel glibc-devel make
BuildRequires:  autoconf automake libtool update-desktop-files

pktstat listens to the network and shows the bandwidth being consumed by
packets of various kinds in realtime. It understands some protocols (including
FTP, HTTP, and X11) and adds a descriptive name next to the entry.

%setup -q

autoreconf -fiv
%__make %{?_smp_mflags}

%__install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%suse_update_desktop_file -r "%{name}" Network System Monitor

%{?buildroot:%__rm -rf "%{buildroot}"}

%doc %{_mandir}/man1/pktstat.1*

openSUSE Build Service is sponsored by