BIGTOP-1937. redhat-lsb is required by kafka daemon
Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/7273a5b2 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/7273a5b2 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/7273a5b2 Branch: refs/heads/branch-1.0 Commit: 7273a5b270f6385b7d9e52c29f96e1178ded7a26 Parents: 1956d9e Author: Evans Ye <[email protected]> Authored: Sat Jul 18 04:22:00 2015 +0000 Committer: Evans Ye <[email protected]> Committed: Tue Jul 21 14:12:49 2015 +0000 ---------------------------------------------------------------------- bigtop-packages/src/rpm/kafka/SPECS/kafka.spec | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/7273a5b2/bigtop-packages/src/rpm/kafka/SPECS/kafka.spec ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/rpm/kafka/SPECS/kafka.spec b/bigtop-packages/src/rpm/kafka/SPECS/kafka.spec index 58aa132..e9dc956 100644 --- a/bigtop-packages/src/rpm/kafka/SPECS/kafka.spec +++ b/bigtop-packages/src/rpm/kafka/SPECS/kafka.spec @@ -82,6 +82,13 @@ Summary: Server for kafka Group: System/Daemons Requires: kafka = %{version}-%{release} +# CentOS 5 does not have any dist macro +# So I will suppose anything that is not Mageia or a SUSE will be a RHEL/CentOS/Fedora +%if %{!?suse_version:1}0 && %{!?mgaversion:1}0 +# Required for init scripts +Requires: redhat-lsb +%endif + %description server Bundles the init script for kafka server.
