1
0
forked from pool/iptraf-ng
Jan Engelhardt 2020-08-16 14:31:51 +00:00 committed by Git OBS Bridge
parent 25fb33f7d1
commit 07a67ef5fe

View File

@ -23,7 +23,7 @@ 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
Source: https://github.com/iptraf-ng/iptraf-ng/archive/v%version.tar.gz
BuildRequires: automake
BuildRequires: ncurses-devel
BuildRequires: xz
@ -38,21 +38,21 @@ interface statistics and activity indicators, TCP/UDP traffic
breakdowns, and LAN station packet and byte counts.
%prep
%autosetup -n %{name}-%{version} -p1
%autosetup -n %name-%version -p1
%build
%make_build CFLAGS="%{optflags} -D_GNU_SOURCE"
%make_build 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"
%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
%_sbindir/iptraf*
%_mandir/man8/iptraf*
%_localstatedir/lib/iptraf-ng
%changelog