Skip to content

Commit acdb941

Browse files
committed
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: #45
1 parent 1bbbfa0 commit acdb941

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: make-srpm.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,11 @@ BuildRequires: glibc-static
121121
BuildRequires: valgrind
122122
%endif
123123
124+
%if 0%{?rhel} != 7
125+
# cscppc is linked statically and can be used by csmock in chroot environment
124126
# the {cwe} field in --template option is supported since cppcheck-1.85
125-
Requires: cppcheck >= 1.85
127+
Recommends: cppcheck >= 1.85
128+
%endif
126129
127130
# older versions of csdiff do not read CWE numbers from Cppcheck output
128131
Conflicts: csdiff < 1.8.0

0 commit comments

Comments
 (0)