From acdb9412a191163f1d4aeb203a1fbd8ed8819ee2 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Tue, 12 Nov 2024 08:54:30 +0100 Subject: [PATCH] packaging: weaken the dependency of cscppc on cppcheck cscppc is linked statically and it can be used by csmock-plugin-cppcheck even when cppcheck is not installed in the host environment. Resolves: https://bugzilla.redhat.com/2325266 Closes: https://github.com/csutils/cscppc/pull/45 --- make-srpm.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/make-srpm.sh b/make-srpm.sh index ad79953..b0e2aab 100755 --- a/make-srpm.sh +++ b/make-srpm.sh @@ -121,8 +121,11 @@ BuildRequires: glibc-static BuildRequires: valgrind %endif +%if 0%{?rhel} != 7 +# cscppc is linked statically and can be used by csmock in chroot environment # the {cwe} field in --template option is supported since cppcheck-1.85 -Requires: cppcheck >= 1.85 +Recommends: cppcheck >= 1.85 +%endif # older versions of csdiff do not read CWE numbers from Cppcheck output Conflicts: csdiff < 1.8.0