diff --git a/buildout/Makefile b/buildout/Makefile
index bdeb869d30e200fb520adfd67a24280501c49454..a92780f2e710d22c4d82abab82ee4b3f28ce3ee8 100644
--- a/buildout/Makefile
+++ b/buildout/Makefile
@@ -33,6 +33,8 @@ debian-appliance:
 
 rpm-appliance:
 	svn co https://svn.erp5.org/repos/public/erp5/trunk/utils/rpmgen rpmgen
+	# set the correct name erp5-5.4.6
+	sed -i "s,\name = erp5-official-buildout,name = erp5-`cat VERSION.txt`,g" rpmgen/buildout.cfg
 	# set the correct version defined in the main buildout
 	sed -i "s,\$${checkout:location\}\/VERSION.txt,`cat VERSION.txt`,g" rpmgen/buildout.cfg
 	# set the correct release