diff --git a/src/packaging/RedHat/makesrpm.pl b/src/packaging/RedHat/makesrpm.pl index 320ea0c64b..fc372e9b34 100755 --- a/src/packaging/RedHat/makesrpm.pl +++ b/src/packaging/RedHat/makesrpm.pl @@ -150,7 +150,8 @@ if ($changelog) { } # Build an RPM -system("rpmbuild -bs --define \"_topdir $tmpdir/rpmdir\" ". +system("rpmbuild -bs --eval \"%undefine dist\" ". + "--define \"_topdir $tmpdir/rpmdir\" ". "$tmpdir/rpmdir/SPECS/openafs.spec > /dev/null") == 0 or die "rpmbuild failed : $!\n";