diff --git a/update_version.sh b/update_version.sh index c0663541..6eed6857 100755 --- a/update_version.sh +++ b/update_version.sh @@ -13,6 +13,7 @@ fi NEW_VERSION=$(echo "$1" | sed 's/-//g' | sed 's/~//g' ) # Update the version in the spec file and VERSION. -# TODO: Use rpmdev-bumpspec echo "${NEW_VERSION}" > VERSION -sed -i'' -r -e "s/^(Version:\\t).*/\\1${NEW_VERSION}/" "rpm-build/SPECS/securedrop-workstation-dom0-config.spec" +rpmdev-bumpspec -c "See changelog.md" -n "${NEW_VERSION}" \ + -u "SecureDrop Team " \ + rpm-build/SPECS/securedrop-workstation-dom0-config.spec