diff --git a/src/main/scala/com/typesafe/packager/rpm/RpmMetadata.scala b/src/main/scala/com/typesafe/packager/rpm/RpmMetadata.scala index 4903e336c..15b581353 100644 --- a/src/main/scala/com/typesafe/packager/rpm/RpmMetadata.scala +++ b/src/main/scala/com/typesafe/packager/rpm/RpmMetadata.scala @@ -69,7 +69,10 @@ case class RpmSpec(meta: RpmMetadata, sb append ',' sb append meta.group sb append ") " - sb append target + sb append (target.contains(' ') match { + case true => "\"%s\"" format target + case false => target + }) sb append '\n' sb.toString }