SRPM do not contain the source code
Created by: lpetre-ulb
All C/C++ SRPM generated with the commit https://github.com/cms-gem-daq-project/gembuild/commit/30f5327e456c26b23a1f6ec224889c5c46610226 contain only the SPEC file. However, the SRPM for Python packages contain the source code and can rebuild the binary package.
All SRPM should contain the SPEC file along with the sources (archive + patches), so that they can be rebuilt with rpmbuild
.
My recommendation would be to use git archive
to generate an archive from a given commit and use it to create the SRPM. Once the SRPM is properly created, building the RPM out of it is a trivial task (except, maybe, in case of cross-compilation). The drawback is that RPM cannot be built from a "dirty" commit. However, I would consider this as an advantage which encourages good practice.