def build_all_binaries(self, repo_name, src_repo_dir, rpmbuild_flags,
                           tracewriter, jobs):
        makefile_path = sh.joinpths(self._deps_dir, "binary-%s.mk" % repo_name)
        marks_dir = sh.joinpths(self._deps_dir, "marks-binary")
        if not sh.isdir(marks_dir):
            sh.mkdirslist(marks_dir, tracewriter=tracewriter)
        params = {
            "SRC_REPO_DIR": src_repo_dir,
            "RPMBUILD_FLAGS": rpmbuild_flags,
            "LOGS_DIR": self._log_dir,
            "RPMTOP_DIR": self._rpmbuild_dir,
        }
        (_fn, content) = utils.load_template(sh.joinpths("packaging", "makefiles"), "binary.mk")
        sh.write_file(makefile_path, utils.expand_template(content, params),
                      tracewriter=tracewriter)
        self._execute_make(makefile_path, marks_dir, jobs)
dataset/ETHPy150Open openstack/anvil/anvil/packaging/helpers/py2rpm_helper.py/Helper.build_all_binaries/original