[packages/nload] Rel 2
arekm
arekm at pld-linux.org
Sat Mar 14 14:39:36 CET 2026
commit 6775aee89ff88889d6b450d3c516d8eca2448998
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Mar 14 14:39:28 2026 +0100
Rel 2
nload-no-ldflags-strip.patch | 17 +++++++++++++++++
nload.spec | 6 ++++--
2 files changed, 21 insertions(+), 2 deletions(-)
---
diff --git a/nload.spec b/nload.spec
index f25e56c..2d57588 100644
--- a/nload.spec
+++ b/nload.spec
@@ -2,13 +2,14 @@ Summary: A console application which monitors network traffic and bandwidth usag
Summary(pl.UTF-8): Konsolowa aplikacja monitorująca ruch w sieci w czasie rzeczywistym
Name: nload
Version: 0.7.4
-Release: 1
+Release: 2
License: GPL v2
Group: Applications/Networking
Source0: http://downloads.sourceforge.net/nload/%{name}-%{version}.tar.gz
# Source0-md5: 3c733c528f244ca5a4f76bf185729c39
Patch0: %{name}-form_field_h.patch
Patch1: %{name}-ncurses.patch
+Patch2: %{name}-no-ldflags-strip.patch
URL: http://www.roland-riegel.de/nload/
BuildRequires: autoconf
BuildRequires: automake
@@ -32,13 +33,14 @@ przesłanych danych oraz minimalne/maksymalne wykorzystanie pasma.
%setup -q
%patch -P0 -p1
%patch -P1 -p1
+%patch -P2 -p1
%build
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
-CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions -I/usr/include/ncurses"
+CXXFLAGS="%{rpmcflags} %{rpmcxxflags} -fno-rtti -fno-exceptions -I/usr/include/ncurses" \
%configure
%{__make}
diff --git a/nload-no-ldflags-strip.patch b/nload-no-ldflags-strip.patch
new file mode 100644
index 0000000..63e5fd6
--- /dev/null
+++ b/nload-no-ldflags-strip.patch
@@ -0,0 +1,17 @@
+Keep debug info for RPM debuginfo/debugsource generation.
+Upstream configure unconditionally appends -s to LDFLAGS, which strips
+symbols from the final binary and produces an empty debugsource package.
+
+--- nload-0.7.4/configure.in.orig
++++ nload-0.7.4/configure.in
+@@ -101,8 +101,8 @@
+ dnl Adds extra arguments to configure script.
+ AC_ARG_ENABLE(debug,
+ AC_HELP_STRING([--enable-debug], [do not strip debugging symbols (default no)]),
+- test "$enableval" = "no" && LDFLAGS="$LDFLAGS -s",
+- LDFLAGS="$LDFLAGS -s")
++ :,
++ :)
+
+ dnl Checks for library functions.
+ AC_TYPE_SIGNAL
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nload.git/commitdiff/6775aee89ff88889d6b450d3c516d8eca2448998
More information about the pld-cvs-commit
mailing list