You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by rv...@apache.org on 2011/09/14 00:45:27 UTC
svn commit: r1170374 -
/incubator/bigtop/trunk/bigtop-packages/src/rpm/zookeeper/SPECS/zookeeper.spec
Author: rvs
Date: Tue Sep 13 22:45:27 2011
New Revision: 1170374
URL: http://svn.apache.org/viewvc?rev=1170374&view=rev
Log:
BIGTOP-93. ZK dependencies can not be satisfied on SUSE
Modified:
incubator/bigtop/trunk/bigtop-packages/src/rpm/zookeeper/SPECS/zookeeper.spec
Modified: incubator/bigtop/trunk/bigtop-packages/src/rpm/zookeeper/SPECS/zookeeper.spec
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/rpm/zookeeper/SPECS/zookeeper.spec?rev=1170374&r1=1170373&r2=1170374&view=diff
==============================================================================
--- incubator/bigtop/trunk/bigtop-packages/src/rpm/zookeeper/SPECS/zookeeper.spec (original)
+++ incubator/bigtop/trunk/bigtop-packages/src/rpm/zookeeper/SPECS/zookeeper.spec Tue Sep 13 22:45:27 2011
@@ -39,11 +39,17 @@
%define alternatives_cmd update-alternatives
+%define alternatives_dep update-alternatives
+%define chkconfig_dep aaa_base
+%define service_dep aaa_base
%global initd_dir %{_sysconfdir}/rc.d
%else
%define alternatives_cmd alternatives
+%define alternatives_dep chkconfig
+%define chkconfig_dep chkconfig
+%define service_dep initscripts
%global initd_dir %{_sysconfdir}/rc.d/init.d
%endif
@@ -66,8 +72,8 @@ Source4: zookeeper.1
BuildArch: noarch
BuildRequires: ant, autoconf, automake, subversion
Requires(pre): coreutils, shadow-utils
-Requires(post): chkconfig
-Requires(preun): chkconfig
+Requires(post): %{alternatives_dep}
+Requires(preun): %{alternatives_dep}
%description
ZooKeeper is a centralized service for maintaining configuration information,
@@ -84,8 +90,8 @@ Summary: The Hadoop Zookeeper server
Group: System/Daemons
Provides: hadoop-zookeeper-server
Requires: hadoop-zookeeper = %{version}-%{release}
-Requires(post): chkconfig
-Requires(preun): initscripts, chkconfig
+Requires(post): %{chkconfig_dep}
+Requires(preun): %{service_dep}, %{chkconfig_dep}
BuildArch: noarch
%if %{?suse_version:1}0