Skip to content

Commit

Permalink
packaging: make the spec file compatible with EPEL-7 again
Browse files Browse the repository at this point in the history
rpmbuild in EPEL-7 does not support weak dependencies:
```
[...]
Start: buildsrpm
Start: rpmbuild -bs
error: line 63: Unknown tag: Recommends: smatch
Building target platforms: x86_64
Building for target x86_64
Finish: rpmbuild -bs
Finish: buildsrpm
ERROR: Exception(/var/lib/copr-rpmbuild/workspace/workdir-y7rr3tva/cscppc/cscppc.spec) Config(centos+epel-7-x86_64) 1 minutes 19 seconds
```

Fixes: commit 7711275
Closes: #40
  • Loading branch information
kdudka committed Oct 4, 2023
1 parent 7711275 commit 9960f10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions make-srpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ in background fully transparently.
%package -n csmatch
Summary: A compiler wrapper that runs Smatch in background
%if 0%{?rhel} != 7
Recommends: smatch
%endif
%description -n csmatch
This package contains the csmatch compiler wrapper that runs the Smatch analyzer
Expand Down

0 comments on commit 9960f10

Please sign in to comment.