2020-01-12 14:41:22 +01:00
|
|
|
#
|
2020-01-12 15:49:53 +01:00
|
|
|
# spec file for package iptraf-ng
|
2020-01-12 14:41:22 +01:00
|
|
|
#
|
2020-01-12 15:49:53 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2020-01-12 14:41:22 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-01-12 15:49:53 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2020-01-12 14:41:22 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-01-12 15:49:53 +01:00
|
|
|
Name: iptraf-ng
|
2020-08-16 16:31:33 +02:00
|
|
|
Version: 1.2.1
|
2020-01-12 14:41:22 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: TCP/IP Network Monitor
|
2020-01-12 15:49:53 +01:00
|
|
|
License: GPL-2.0-or-later
|
2020-01-12 14:41:22 +01:00
|
|
|
Group: Productivity/Networking/Diagnostic
|
2020-01-12 15:49:53 +01:00
|
|
|
URL: https://github.com/iptraf-ng/iptraf-ng/
|
2020-08-16 16:31:33 +02:00
|
|
|
Source: https://github.com/iptraf-ng/iptraf-ng/archive/v%{version}.tar.gz
|
2020-01-12 15:49:53 +01:00
|
|
|
BuildRequires: automake
|
2020-01-12 14:41:22 +01:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: xz
|
2020-08-16 16:31:33 +02:00
|
|
|
Obsoletes: iptraf < 4
|
|
|
|
# Just pick a number that is >3
|
|
|
|
Provides: iptraf = 4
|
2020-01-12 14:41:22 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
IPTraf-ng is a console-based network statistics utility. It gathers a
|
|
|
|
variety of information such as TCP connection packet and byte counts,
|
|
|
|
interface statistics and activity indicators, TCP/UDP traffic
|
|
|
|
breakdowns, and LAN station packet and byte counts.
|
|
|
|
|
|
|
|
%prep
|
2020-08-16 16:31:33 +02:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2020-01-12 14:41:22 +01:00
|
|
|
|
|
|
|
%build
|
2020-08-16 16:31:33 +02:00
|
|
|
%make_build CFLAGS="%{optflags} -D_GNU_SOURCE"
|
2020-01-12 14:41:22 +01:00
|
|
|
|
|
|
|
%install
|
2020-08-16 16:31:33 +02:00
|
|
|
%make_install prefix="%{_prefix}" V=1
|
|
|
|
b=%{buildroot}
|
|
|
|
install -dm 0755 "$b/%{_localstatedir}/lib/iptraf-ng"
|
|
|
|
ln -s iptraf-ng "$b/%{_sbindir}/iptraf"
|
|
|
|
ln -s iptraf-ng.8 "$b/%{_mandir}/man8/iptraf.8"
|
2020-01-12 14:41:22 +01:00
|
|
|
|
2020-01-12 15:49:53 +01:00
|
|
|
%files
|
2020-08-16 16:31:33 +02:00
|
|
|
%{_sbindir}/iptraf*
|
|
|
|
%{_mandir}/man8/iptraf*
|
|
|
|
%{_localstatedir}/lib/iptraf-ng
|
2020-01-12 14:41:22 +01:00
|
|
|
|
|
|
|
%changelog
|