use `'%s-%%(version)s.tar.bz2' % altname` (the `%%` for version is intentional)