[Linux-HA] superfluous dependency in heartbeat spec file

Vadym Chepkov vchepkov at gmail.com
Tue Oct 12 06:29:03 MDT 2010

It was brought up in pacemaker mail list but this applies to heartbeat rpm packaging as well.
Libraries do not depend on "base" package, they are independent. 
This is how one can install several version of the same library (compat- packages)
Also it is possible to use heartbeat libraries without using heartbeat daemon itself. (if one uses pacemaker with corosync, for instance).


# HG changeset patch
# User Vadym Chepkov <vchepkov at gmail.com>
# Date 1286886305 14400
# Node ID f1aea427d2c01756e06b4b917787c21ee440f24b
# Parent  82fc843fbcf9733e50bbc169c95e51b6c7f97c54
Fix package inter-dependencies

diff -r 82fc843fbcf9 -r f1aea427d2c0 heartbeat-fedora.spec
--- a/heartbeat-fedora.spec	Mon Oct 04 22:12:37 2010 +0200
+++ b/heartbeat-fedora.spec	Tue Oct 12 08:25:05 2010 -0400
@@ -40,6 +40,7 @@
BuildRequires:    which
BuildRequires:    cluster-glue-libs-devel
BuildRequires:    libxslt docbook-dtds docbook-style-xsl
+Requires:         heartbeat-libs = %{version}-%{release}
Requires:         PyXML
Requires:         resource-agents
Requires:         cluster-glue-libs
@@ -81,7 +82,6 @@
%package libs
Summary:          Heartbeat libraries
Group:            System Environment/Daemons
-Requires:         heartbeat = %{version}-%{release}

%description libs
Heartbeat library package
@@ -89,7 +89,7 @@
%package devel 
Summary:        Heartbeat development package
Group:          System Environment/Daemons
-Requires:       heartbeat = %{version}-%{release}
+Requires:       heartbeat-libs = %{version}-%{release}

%description devel
Headers and shared libraries for writing programs for Heartbeat

More information about the Linux-HA mailing list