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 License: GPL-2.0-or-later
Group: Productivity/Networking/Diagnostic Group: Productivity/Networking/Diagnostic
URL: https://github.com/iptraf-ng/iptraf-ng/ 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: automake
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: xz BuildRequires: xz
@ -38,21 +38,21 @@ interface statistics and activity indicators, TCP/UDP traffic
breakdowns, and LAN station packet and byte counts. breakdowns, and LAN station packet and byte counts.
%prep %prep
%autosetup -n %{name}-%{version} -p1 %autosetup -n %name-%version -p1
%build %build
%make_build CFLAGS="%{optflags} -D_GNU_SOURCE" %make_build CFLAGS="%optflags -D_GNU_SOURCE"
%install %install
%make_install prefix="%{_prefix}" V=1 %make_install prefix="%_prefix" V=1
b=%{buildroot} b=%buildroot
install -dm 0755 "$b/%{_localstatedir}/lib/iptraf-ng" install -dm 0755 "$b/%_localstatedir/lib/iptraf-ng"
ln -s iptraf-ng "$b/%{_sbindir}/iptraf" ln -s iptraf-ng "$b/%_sbindir/iptraf"
ln -s iptraf-ng.8 "$b/%{_mandir}/man8/iptraf.8" ln -s iptraf-ng.8 "$b/%_mandir/man8/iptraf.8"
%files %files
%{_sbindir}/iptraf* %_sbindir/iptraf*
%{_mandir}/man8/iptraf* %_mandir/man8/iptraf*
%{_localstatedir}/lib/iptraf-ng %_localstatedir/lib/iptraf-ng
%changelog %changelog