-
Notifications
You must be signed in to change notification settings - Fork 21
DSL of RPM Builder
Volker Berlin edited this page Aug 13, 2019
·
2 revisions
The rpm
task is responsible for building Debian packages using Setup Builder.
The following options are available to the deb
task:
rpm {
// Sets the installation root of the software application
// defaults to /usr/share/{setupBuilder.application}
installationRoot = "/usr/share/my-application"
// defines a file that will be stored in /etc/default/{serviceName}
// ususally contains default information for the service starter.
defaultServiceFile = "default-service.txt"
// a script that will be included into the default service starter script
additionalServiceScript = "<script>"
// true (default), if the default service (aka the first service defined)
// should start after installation
startDefaultService = false
// The user the services will be executed with, defaults to root
daemonUser = "root"
// Architecture of the installer, defaults to "noarch"
architecture = "noarch"
// List of software components the application depends on
depends = "java | python3"
// the section is alike the category, defaults to "Application/Productivity"
section = "Application/Productivity"
// sets the homepage of the vendor for this application
homepage = "https://www.inetsoftware.de"
}
The following additional options are available to the rpm
task:
rpm {
// optional, true (default) to indicate that this package is compatible with its predecessor
backwardCompatible = true
// optional, size to expect when the package is installed.
installSize = "10"
// Licensing information for the SPEC file of this package
license = ""
// information for the SPEC file of this package
release = ""
// String of summary for this package. Used in the SPEC file.
summary = "This is my application."
// Entry string that will be used in the %prep entry of the SPEC file.
// can be used multiple times
prep = ""
// Entry string that will be used in the %clean entry of the SPEC file.
// can be used multiple times
clean = ""
// Entry string that will be used in the %install entry of the SPEC file.
// can be used multiple times
install = ""
// Entry string that will be used in the %build entry of the SPEC file.
// can be used multiple times
build = ""
}
To allow even more customization during installation you can use several installation script entry points. Please have a look at the specifc documentation.