Add ability to provide additional rpmbuild-options to tito
Add SRPM generation for CBS
mv srpm from container location to host location
@@ -23,8 +23,9 @@ tito tag --use-version="${OS_RPM_VERSION}" \
--no-auto-changelog --offline
tito_tmp_dir="${BASETMPDIR}/tito"
mkdir -p "${tito_tmp_dir}"
+tito build --offline --srpm --rpmbuild-options="--define 'dist .el7'" --output="${tito_tmp_dir}"
tito build --output="${tito_tmp_dir}" --rpm --no-cleanup --quiet --offline \
- --rpmbuild-options="--define 'make_redistributable ${make_redistributable}'"
+ --rpmbuild-options="--define 'make_redistributable ${make_redistributable}' ${RPM_BUILD_OPTS:-}"
tito tag --undo --offline
os::log::info 'Unpacking tito artifacts for reuse...'
@@ -58,6 +59,7 @@ make clean
mkdir -p "${OS_OUTPUT}"
mv "${tito_output_directory}"/* "${OS_OUTPUT}"
mkdir -p "${OS_LOCAL_RELEASEPATH}/rpms"
+mv "${tito_tmp_dir}"/*src.rpm "${OS_LOCAL_RELEASEPATH}/rpms"
mv "${tito_tmp_dir}"/*/*.rpm "${OS_LOCAL_RELEASEPATH}/rpms"
if command -v createrepo >/dev/null 2>&1; then
