   end
 
   def rpm_file_name(name, version, arch, match \\ false),
-    do: "#{name}-#{version}-0.#{if match, do: "*", else: ""}#{arch}.rpm"
+    do: "#{name}-#{version |> normalize_version}-0.#{if match, do: "*", else: ""}#{arch}.rpm"
 
   def get_config_item(config, item, default) do
     app    = String.to_atom config.name


    File.write!(dest, contents)
    config
  end

  defp copy_extra_sources(config) do

        rpmbuild:        @_RPM_BUILD_TOOL,
        rpmbuild_opts:   @_RPM_BUILD_ARGS,
        priv_path:       Path.join([__DIR__, "..", "..", "priv"]) |> Path.expand,
        sources_path:    Path.join([build_dir, "SOURCES", source_name]),
        target_rpm_path: Path.join([File.cwd!, "rel", name, "releases", version, rpm_file_name(name, version, build_arch)]),
        app_tar_path:    Path.join([File.cwd!, "rel", name, app_name]),
        summary:         @_DEFAULT_SUMMARY,
