[packages/nethogs] Up to 0.9.0

arekm arekm at pld-linux.org
Wed Aug 5 12:23:03 CEST 2026


commit c15570fedad179c3a65ff79f399e1ada0b54c591
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Aug 5 12:22:34 2026 +0200

    Up to 0.9.0

 nethogs.spec | 39 ++++++++++++++++++++++++++-------------
 1 file changed, 26 insertions(+), 13 deletions(-)
---
diff --git a/nethogs.spec b/nethogs.spec
index f58ca98..f14a8e4 100644
--- a/nethogs.spec
+++ b/nethogs.spec
@@ -1,17 +1,18 @@
+%bcond_without	tests		# unit tests
+
 Summary:	net top
 Summary(pl.UTF-8):	Sieciowy top
 Name:		nethogs
-Version:	0.8.1
-Release:	2
-License:	GPL
+Version:	0.9.0
+Release:	1
+License:	GPL v2+
 Group:		Networking
-Source0:	http://github.com/raboof/nethogs/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
-# Source0-md5:	cc0aed87c4cc67fc2ffc5f60aa67bf3d
-URL:		http://raboof.github.io/nethogs/
+Source0:	https://github.com/raboof/nethogs/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	20d02101bfd193a6221703e6348ef7ba
+URL:		https://raboof.github.io/nethogs/
 BuildRequires:	libpcap-devel
 BuildRequires:	libstdc++-devel
 BuildRequires:	ncurses-devel
-BuildRequires:	perl-base
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -34,24 +35,36 @@ ewentualnie go zabić.
 %setup -q
 
 %build
-%{__make} \
+%{__make} nethogs \
+	CXX="%{__cxx}" \
+	VERSION=%{version} \
+	CFLAGS="%{rpmcflags}" \
+	CXXFLAGS="%{rpmcxxflags}" \
+	CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" \
+	LDFLAGS="%{rpmldflags}"
+
+%if %{with tests}
+%{__make} test \
 	CXX="%{__cxx}" \
-	CFLAGS="%{rpmcflags} %{rpmcppflags} -I/usr/include/ncurses" \
-	CXXFLAGS="%{rpmcxxflags} %{rpmcppflags} -I/usr/include/ncurses" \
+	VERSION=%{version} \
+	CFLAGS="%{rpmcflags}" \
+	CXXFLAGS="%{rpmcxxflags}" \
+	CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" \
 	LDFLAGS="%{rpmldflags}"
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8}
 
-cp -p %{name}   $RPM_BUILD_ROOT%{_bindir}
-cp -p %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8
+cp -p src/%{name}   $RPM_BUILD_ROOT%{_bindir}
+cp -p doc/%{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc Changelog DESIGN README.md
+%doc DESIGN README.md
 %attr(755,root,root) %{_bindir}/nethogs
 %{_mandir}/man8/nethogs.8*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nethogs.git/commitdiff/c15570fedad179c3a65ff79f399e1ada0b54c591



More information about the pld-cvs-commit mailing list