def make_rpm_version(flocker_version):
 parsed_version = parse_version(flocker_version)
 installable = parsed_version.installable_release
 if is_pre_release(installable):
  release = ['0', 'rc', parsed_version.pre_release]
 elif is_weekly_release(installable):
  release = ['0', 'dev', parsed_version.weekly_release]
 else:
  release = ['1']
 if (parsed_version.commit_count is not None):
  release += [parsed_version.commit_count, ('g' + parsed_version.commit_hash)]
 if parsed_version.dirty:
  release.append('dirty')
 return RPMVersion(version=parsed_version.release, release='.'.join(release))

def make_rpm_version ( flocker_version ) : parsed_version = parse_version ( flocker_version ) installable = parsed_version . installable_release if is_pre_release ( installable ) : release = [ '0' , 'rc' , parsed_version . pre_release ] elif is_weekly_release ( installable ) : release = [ '0' , 'dev' , parsed_version . weekly_release ] else : release = [ '1' ] if ( parsed_version . commit_count is not None ) : release += [ parsed_version . commit_count , ( 'g' + parsed_version . commit_hash ) ] if parsed_version . dirty : release . append ( 'dirty' ) return RPMVersion ( version = parsed_version . release , release = '.' . join ( release ) )
parse the flocker version generated by versioneer into a :class:rpmversion .