Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpm: add docker-compose-plugin as "recommends" / "requires"
This defines the dependency between the docker cli and compose (as a plugin). RHEL8 and CentOS 8 (and up) support weak dependencies; - https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/packaging_and_distributing_software/new-features-in-rhel-8_packaging-and-distributing-software#support-for-weak-dependencies_new-features-in-rhel-8 - https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/packaging_and_distributing_software/new-features-in-rhel-8_packaging-and-distributing-software#boolean-dependencies-syntax But CentOS 7 and RHEL 7 do not yet support this, so for those, we use "Requires", using the `%rhel` macro for detection, which also works on CentOS: rpm --eval '%{rhel}' 7 Making the dependency _recommended_ will install it by default, but users _are_ able to opt-out explicitly, using `--setopt=install_weak_deps=False`, for example, to perform a light-weight installation that does not require all features of Docker. Signed-off-by: Sebastiaan van Stijn <[email protected]>
- Loading branch information