From 05696a42b761d1a7387bb6d7f8b756728ca6bb01 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sat, 28 Mar 2015 16:28:12 -0400 Subject: [PATCH] Fix and improve docs for rpmAutoreq and rpmAutoprov - fix and improve sbt setting descriptions - remove TODO originating in d0ae3a2 - expand site documentation --- .../scala/com/typesafe/sbt/packager/rpm/Keys.scala | 4 ++-- .../com/typesafe/sbt/packager/rpm/RpmMetadata.scala | 6 ++---- src/sphinx/formats/rpm.rst | 12 +++++++++++- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/main/scala/com/typesafe/sbt/packager/rpm/Keys.scala b/src/main/scala/com/typesafe/sbt/packager/rpm/Keys.scala index 0cb55e6d5..35865b287 100644 --- a/src/main/scala/com/typesafe/sbt/packager/rpm/Keys.scala +++ b/src/main/scala/com/typesafe/sbt/packager/rpm/Keys.scala @@ -28,8 +28,8 @@ trait RpmKeys { val rpmDescription = SettingKey[RpmDescription]("rpm-description", "Description of this rpm.") // DEPENDENCIES - val rpmAutoprov = SettingKey[String]("rpm-autoprov", "enable/deactivating auto provisioning.") - val rpmAutoreq = SettingKey[String]("rpm-autoreq", "enable/deactivating auto requiering.") + val rpmAutoprov = SettingKey[String]("rpm-autoprov", "enable/disable automatic processing of 'provides' (\"yes\"/\"no\").") + val rpmAutoreq = SettingKey[String]("rpm-autoreq", "enable/disable automatic processing of requirements (\"yes\"/\"no\").") val rpmProvides = SettingKey[Seq[String]]("rpm-provides", "Packages this RPM provides.") val rpmRequirements = SettingKey[Seq[String]]("rpm-requirements", "Packages this RPM requires.") val rpmPrerequisites = SettingKey[Seq[String]]("rpm-prerequisites", "Packages this RPM need *before* installation.") diff --git a/src/main/scala/com/typesafe/sbt/packager/rpm/RpmMetadata.scala b/src/main/scala/com/typesafe/sbt/packager/rpm/RpmMetadata.scala index 821efb20a..0a70b45d0 100644 --- a/src/main/scala/com/typesafe/sbt/packager/rpm/RpmMetadata.scala +++ b/src/main/scala/com/typesafe/sbt/packager/rpm/RpmMetadata.scala @@ -184,10 +184,8 @@ case class RpmSpec( sb append deps.contents - // TODO - autoprov + autoreq - - sb append ("autoprov: %s\n" format meta.autoprov) - sb append ("autoreq: %s\n" format meta.autoreq) + sb append ("AutoProv: %s\n" format meta.autoprov) + sb append ("AutoReq: %s\n" format meta.autoreq) sb append ("BuildRoot: %s\n" format rpmRoot.getAbsolutePath) sb append ("BuildArch: %s\n\n" format meta.arch) diff --git a/src/sphinx/formats/rpm.rst b/src/sphinx/formats/rpm.rst index 03c5bb3d8..c9d375a6d 100644 --- a/src/sphinx/formats/rpm.rst +++ b/src/sphinx/formats/rpm.rst @@ -105,9 +105,19 @@ Informational Settings Dependency Settings ~~~~~~~~~~~~~~~~~~~ + ``rpmAutoreq`` + Enable or disable the automatic processing of required packages. + Takes the form ``"yes"`` or ``"no"``, defaults to ``"yes"``. + Defines the ``AutoReq:`` tag in the spec file. + ``rpmRequirements`` The RPM packages that are required to be installed for this RPM to work. - + + ``rpmAutoprov`` + Enable or disable the automatic processing of provided packages. + Takes the form ``"yes"`` or ``"no"``, defaults to ``"yes"``. + Defines the ``AutoProv:`` tag in the spec file. + ``rpmProvides`` The RPM package names that this RPM provides.