From b2429f7996696cef6751f25517222092a005538b Mon Sep 17 00:00:00 2001 From: ChebyshevTST Date: Thu, 23 Jan 2025 07:39:07 +0000 Subject: [PATCH] Fix building issues with clang Signed-off-by: ChebyshevTST --- procinfo.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/procinfo.spec b/procinfo.spec index 8bd9ef8..c0a8f22 100644 --- a/procinfo.spec +++ b/procinfo.spec @@ -1,6 +1,6 @@ Name: procinfo Version: 18 -Release: 44 +Release: 45 Summary: A tool for displaying system information License: GPL+ Source: ftp://ftp.cistron.nl/pub/people/00-OLD/svm/procinfo-%{version}.tar.gz @@ -53,6 +53,9 @@ This package contains documentation for procinfo. %patch18 -p1 %build +%if "%toolchain" == "clang" + sed -i "s/gcc/clang/g" Makefile +%endif make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -I/usr/include/ncurses" LDFLAGS= LDLIBS=-lncurses %install @@ -73,6 +76,9 @@ make install prefix=$RPM_BUILD_ROOT/usr mandir=$RPM_BUILD_ROOT/%{_mandir} %{_mandir}/man8/socklist.8* %changelog +* Thu Jan 23 2025 QiuWenjian - 18-45 +- Fix building issues with clang + * Wed Dec 14 2022 Ge Wang - 18-44 - Add build require make -- Gitee