Description of problem:
This occurs when building RPM packages using cmake3 within the build scriptlet. I don't know if it's a general problem which happens even if cmake3 is not used by the package reporting the error messages, but I suspect so.
It looks like rpmbuild is attempting to execute "/usr/lib/rpm/cmake3.prov" as a shell script when in fact it's a python script but has no shebang at the top to indicate it's a python script.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Use %cmake3 within an RPM build section to build a library which itself produces cmake target files under /usr/lib64/cmake.
2. Run "rpmbuild -ba ..." on the spec file.
3. Observe the post-build packaging status messages include errors listed below.
Immedately after the "%doc" output and before the first "Provides: " line is the following:
/usr/lib/rpm/cmake3.prov: line 26: class: command not found
/usr/lib/rpm/cmake3.prov: line 27: syntax error near unexpected token `('
/usr/lib/rpm/cmake3.prov: line 27: ` def __init__(self, filelist = None):'
No rpmbuild errors related to cmake.
This issue doesn't actually prevent the packages from being built. It may prevent some RPM "provides" being placed on the built packages though.
FEDORA-EPEL-2020-90bdb794f4 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-90bdb794f4
Thank you very much for your feedback.
Please, try with the build 3.17.3-2
cmake3-3.17.3-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-90bdb794f4
FEDORA-EPEL-2020-90bdb794f4 has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.