1
0
forked from pool/iptraf-ng
iptraf-ng/iptraf-ng.spec
2024-11-21 11:21:21 +01:00

59 lines
1.8 KiB
RPMSpec

#
# spec file for package iptraf-ng
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: iptraf-ng
Version: 1.2.2
Release: 0
Summary: TCP/IP Network Monitor
License: GPL-2.0-or-later
Group: Productivity/Networking/Diagnostic
URL: https://github.com/iptraf-ng/iptraf-ng/
Source: https://github.com/iptraf-ng/iptraf-ng/archive/v%version.tar.gz
BuildRequires: automake
BuildRequires: ncurses-devel
BuildRequires: xz
Obsoletes: iptraf < 4
# Just pick a number that is >3
Provides: iptraf = 4
%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
%autosetup -n %name-%version -p1
%build
%{?make_build}%{!?make_build:make %{?_smp_mflags}} CFLAGS="%optflags -D_GNU_SOURCE"
%install
%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"
%files
%_sbindir/iptraf*
%_mandir/man8/iptraf*
%_localstatedir/lib/iptraf-ng
%changelog