Fix java-devel dependency on rpm-based systems

The dependency as specified won't work on Fedora 25.

The situation concerning requiring the selection of Java versions
is tricky, and is detailed at:
https://github.com/elastic/logstash/issues/6275
The conclusion of that thread is that "it is not possible to
provide a package that correctly works for users of all supported
Java packages.", meaning a dependency on either one of OpenJDK or
Oracle JDK.

Assuming the dependency is on OpenJDK, the list of metapackages
provided is listed at:
https://github.com/elastic/logstash/issues/6275#issuecomment-261356980

The dependency "java-1.8.0-devel" will be satisfied by any
revision of OpenJDK 1.8, so that is the one that is proposed
in this pull request.
This commit is contained in:
Antonio Cunei 2017-02-22 11:48:02 +01:00
parent 8cc3cdfc29
commit 84624d8ce5
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ val root = (project in file(".")).
rpmVendor := "lightbend",
rpmUrl := Some("http://github.com/sbt/sbt-launcher-package"),
rpmLicense := Some("BSD"),
rpmRequirements := Seq("java-devel >= 1.8", "java-devel < 1.9"),
rpmRequirements := Seq("java-1.8.0-devel"),
rpmProvides := Seq("sbt"),
// WINDOWS SPECIFIC