Unify rpm/debian maintainer scripts
Pre-release
Pre-release
Maintainer Scripts
The rpm
and debian
maintainer scripts have grown over the past years in sbt-native-packager. There settings for rpm scriplets (e.g. rpmPre
) with hard to use types (Option[String]
) or no helper methods for the debianMaintainerScripts
.
With this milestone we introduce a new task-setting:
maintainerScripts: Map[String, Seq[String]]
This will serve as the low level data-structure for all package formats that use maintainer scripts. We have plenty of docs to support you:
To give you a peak what it looked before and after
Before
rpmPostun := rpmPost.value.map { content =>
s"""|$content
|echo 'hello, world
|""".stripMargin
}.orElse {
Option("""echo 'hello, world"
""".stripMargin)
}
After
import RpmConstants._
maintainerScripts in Rpm := maintainerScriptsAppend((maintainerScripts in Rpm).value)(
Postun -> "echo 'hello, world'"
)
Commits and the issues they fixed since v1.0.6
Issue(s) | Commit | Message |
---|---|---|
007ddf4 | Fixing sphinx formatting error |
Pull requests since v1.0.6
Pull Request(s) | Commit | Message |
---|---|---|
#625 | 57c938d | Unify maintainerScriptsUnify maintainerScripts |
#713 | 07290f5 | Bumped version number in Installation section.Bumped version number in Installa |
#715 | 7c2b66e | Travis: build on OS X (take 2)Travis: build on OS X (take 2) |
A big thank you to all the contributors!
# | Author |
---|---|
2 | Nepomuk Seiler |
2 | Lars Hupel |
1 | Simeon H.K. Fitch |