def metadata_properties_for(package)
      metadata = {
        "omnibus.project" => package.metadata[:name],
        "omnibus.platform" => package.metadata[:platform],
        "omnibus.platform_version" => package.metadata[:platform_version],
        "omnibus.architecture" => package.metadata[:arch],
        "omnibus.version" => package.metadata[:version],
        "omnibus.iteration" => package.metadata[:iteration],
        "omnibus.license" => package.metadata[:license],
        "omnibus.md5" => package.metadata[:md5],
        "omnibus.sha1" => package.metadata[:sha1],
        "omnibus.sha256" => package.metadata[:sha256],
        "omnibus.sha512" => package.metadata[:sha512],
        "md5" => package.metadata[:md5],
        "sha1" => package.metadata[:sha1],
        "sha256" => package.metadata[:sha256],
        "sha512" => package.metadata[:sha512],
      }.tap do |h|
        if build_record?
          h["build.name"] = package.metadata[:name]
          h["build.number"] = package.metadata[:version]
        end
      end

      metadata
    end
def metadata_properties_for(package)
      metadata = {
        "omnibus.project" => package.metadata[:name],
        "omnibus.platform" => package.metadata[:platform],
        "omnibus.platform_version" => package.metadata[:platform_version],
        "omnibus.architecture" => package.metadata[:arch],
        "omnibus.version" => package.metadata[:version],
        "omnibus.iteration" => package.metadata[:iteration],
        "omnibus.license" => package.metadata[:license],
        "omnibus.md5" => package.metadata[:md5],
        "omnibus.sha1" => package.metadata[:sha1],
        "omnibus.sha256" => package.metadata[:sha256],
        "omnibus.sha512" => package.metadata[:sha512],
        "md5" => package.metadata[:md5],
        "sha1" => package.metadata[:sha1],
        "sha256" => package.metadata[:sha256],
        "sha512" => package.metadata[:sha512],
      }.tap do |h|
        if build_record?
          h["build.name"] = package.metadata[:name]
          h["build.number"] = package.metadata[:version]
        end
      end

      metadata
    end
The metadata for this package.

 @param [Package] package
   the package to generate the metadata for

 @return [Hash<String, String>]