diff --git a/utils/release/release_lib.sh b/utils/release/release_lib.sh index 4eaa4d4ebbd..823ba7f0cc9 100644 --- a/utils/release/release_lib.sh +++ b/utils/release/release_lib.sh @@ -231,6 +231,8 @@ function make_rpm { echo "Requires: clickhouse-common-static = $VERSION_FULL-2" >> ${PACKAGE}-$VERSION_FULL-2.spec echo "Requires: tzdata" >> ${PACKAGE}-$VERSION_FULL-2.spec echo "Requires: initscripts" >> ${PACKAGE}-$VERSION_FULL-2.spec + echo "Obsoletes: clickhouse-server-common < $VERSION_FULL" >> ${PACKAGE}-$VERSION_FULL-2.spec + cat ${PACKAGE}-$VERSION_FULL-2.spec_tmp >> ${PACKAGE}-$VERSION_FULL-2.spec rpm_pack