Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4:Update
heartbeat
heartbeat.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File heartbeat.spec of Package heartbeat
# # spec file for package heartbeat # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild %define build_cmpi 0 %define with_extra_warnings 0 %define with_debugging 0 %define without_fatal_warnings 1 %define start_at_boot 0 %define stop_start_script 0 %define SSLeay perl-Net-SSLeay %define gname haclient %define uname hacluster %define uid 90 %define nogroup nobody %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} %define pkg_group System Environment/Daemons %else %define pkg_group Productivity/Clustering/HA %endif Name: heartbeat Summary: The Heartbeat Subsystem for High-Availability Linux Version: 3.0.4 Release: 25.<RELEASE3> License: GPLv2+ ; LGPLv2.1+ Url: http://linux-ha.org/ Group: Productivity/Clustering/HA Source: STABLE-3.0.4.tar.bz2 Source1: heartbeat.suse.in Source100: heartbeat.rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: %{name}-common = %{version}-%{release} Requires: resource-agents Requires: /bin/ping perl-TimeDate BuildRequires: curl-devel e2fsprogs-devel glib2-devel iputils libxml2-devel lynx python BuildRequires: docbook-xsl-stylesheets libglue-devel libxslt AutoReqProv: on %if 0%{?fedora_version} Requires(post): /sbin/chkconfig Requires(preun):/sbin/chkconfig %endif %if 0%{?suse_version} BuildRequires: OpenIPMI-devel bison flex gdbm-devel %if 0%{?suse_version} > 1130 BuildRequires: libnet-devel %else BuildRequires: libnet %endif PreReq: %insserv_prereq %fillup_prereq Requires(pre): /usr/sbin/groupadd /usr/bin/getent /usr/sbin/useradd Requires: logrotate %define nogroup nogroup %if 0%{?suse_version} < 1100 %define SSLeay perl-Net_SSLeay %endif %if 0%{?suse_version} >= 1100 BuildRequires: fdupes %endif %if 0%{?suse_version} == 930 BuildRequires: rpm-devel %endif %if 0%{?suse_version} == 1000 BuildRequires: lzo lzo-devel %endif %if 0%{?suse_version} > 1000 Suggests: pacemaker %endif %if 0%{?suse_version} < 1020 BuildRequires: tcpd-devel %endif %if 0%{?sles_version} == 9 BuildRequires: pkgconfig %endif %endif %if 0%{?rhel_version} == 406 BuildRequires: gcc-c++ %endif %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} Requires: which BuildRequires: which #Requires: pygtk2 >= 2.4 %define uid 24 %if 0%{?fedora_version} Requires(pre): fedora-usermgmt Requires(postun): fedora-usermgmt BuildRequires: libnet-devel %else BuildRequires: libnet %endif %if 0%{?fedora_version} > 7 BuildRequires: openssl-devel %endif %endif %if 0%{?mandriva_version} BuildRequires: libbzip2-devel %if 0%{?mandriva_version} > 2006 BuildRequires: libnet1.1.0-devel %else BuildRequires: libnet %endif %else # Hack to avoid needing to install a kernel on Mandriva just to build pacemaker Requires: iptables %endif #!BuildIgnore: -iptables %if %build_cmpi BuildRequires: openwbem-devel %endif %description heartbeat is a sophisticated multinode resource manager for High Availability clusters. It can failover arbitrary resources, ranging from IP addresses over NFS to databases that are tied in via resource scripts. The resources can have arbitrary dependencies for ordering or placement between them. heartbeat contains a cluster membership layer, fencing, and local and clusterwide resource management functionality. 1.2/1.0 based 2-node only configurations are supported in a legacy mode. heartbeat implements the following kinds of heartbeats: - Serial ports - UDP/IPv4 broadcast, multi-cast, and unicast - IPv4 "ping" pseudo-cluster members. Authors: -------- Alan Robertson <alanr@unix.sh> Andrew Beekhof <abeekhof@suse.de> Guochun Shi <gshi@ncsa.uiuc.edu> Horms <horms@verge.net.net> Huang Zhen <zhenhltc@cn.ibm.com> Lars Marowsky-Bree <lmb@suse.de> Sun Jiang Dong <hasjd@cn.ibm.com> (See doc/AUTHORS) %package common License: GPLv2+ ; LGPLv2.1+ Summary: Common heartbeat components Group: Productivity/Clustering/HA Requires: perl-TimeDate Obsoletes: %{name} < 2.99 Requires: resource-agents %description common Clustering components provided by the Heartbeat project that are generally useful regardless of which cluster stack is being used. Include a local (non-cluster-aware) resource manager, a basic (non-cluster-aware) STONITH framework and some useful libraries for asyncronous, non-blocking IPC and using gmainloop(). Authors: -------- Alan Robertson <alanr@unix.sh> Andrew Beekhof <abeekhof@suse.de> Guochun Shi <gshi@ncsa.uiuc.edu> Horms <horms@verge.net.net> Huang Zhen <zhenhltc@cn.ibm.com> Lars Marowsky-Bree <lmb@suse.de> Sun Jiang Dong <hasjd@cn.ibm.com> (See doc/AUTHORS) %package -n libapphb2 License: GPLv2+ ; LGPLv2.1+ Summary: The Heartbeat Subsystem for High-Availability Linux Group: Productivity/Clustering/HA Provides: libheartbeat2 = %{version} Obsoletes: libheartbeat2 <= %{version} %description -n libapphb2 heartbeat is a sophisticated multinode resource manager for High Availability clusters. It can failover arbitrary resources, ranging from IP addresses over NFS to databases that are tied in via resource scripts. The resources can have arbitrary dependencies for ordering or placement between them. heartbeat contains a cluster membership layer, fencing, and local and clusterwide resource management functionality. 1.2/1.0 based 2-node only configurations are supported in a legacy mode. heartbeat implements the following kinds of heartbeats: - Serial ports - UDP/IPv4 broadcast, multi-cast, and unicast - IPv4 "ping" pseudo-cluster members. Authors: -------- Alan Robertson <alanr@unix.sh> Andrew Beekhof <abeekhof@suse.de> Guochun Shi <gshi@ncsa.uiuc.edu> Horms <horms@verge.net.net> Huang Zhen <zhenhltc@cn.ibm.com> Lars Marowsky-Bree <lmb@suse.de> Sun Jiang Dong <hasjd@cn.ibm.com> (See doc/AUTHORS) %package -n libapphb-devel License: GPLv2+ ; LGPLv2.1+ Summary: The Heartbeat Subsystem for High-Availability Linux Group: Productivity/Clustering/HA Requires: libapphb2 = %{version}-%{release} Provides: libheartbeat-devel = %{version} Obsoletes: libheartbeat-devel <= %{version} %description -n libapphb-devel heartbeat is a sophisticated multinode resource manager for High Availability clusters. It can failover arbitrary resources, ranging from IP addresses over NFS to databases that are tied in via resource scripts. The resources can have arbitrary dependencies for ordering or placement between them. heartbeat contains a cluster membership layer, fencing, and local and clusterwide resource management functionality. 1.2/1.0 based 2-node only configurations are supported in a legacy mode. heartbeat implements the following kinds of heartbeats: - Serial ports - UDP/IPv4 broadcast, multi-cast, and unicast - IPv4 "ping" pseudo-cluster members. Authors: -------- Alan Robertson <alanr@unix.sh> Andrew Beekhof <abeekhof@suse.de> Guochun Shi <gshi@ncsa.uiuc.edu> Horms <horms@verge.net.net> Huang Zhen <zhenhltc@cn.ibm.com> Lars Marowsky-Bree <lmb@suse.de> Sun Jiang Dong <hasjd@cn.ibm.com> (See doc/AUTHORS) %if %build_cmpi %package cmpi License: GPL v2 or later; LGPL v2.1 or later Summary: Heartbeat CIM Provider Group: Productivity/Clustering/HA %description cmpi This package provides the CIM provider for managing heartbeat via OpenWBEM. Authors: -------- Alan Robertson <alanr@unix.sh> Andrew Beekhof <abeekhof@suse.de> Guochun Shi <gshi@ncsa.uiuc.edu> Horms <horms@verge.net.net> Huang Zhen <zhenhltc@cn.ibm.com> Lars Marowsky-Bree <lmb@suse.de> Sun Jiang Dong <hasjd@cn.ibm.com> (See doc/AUTHORS) %endif %package devel License: GPLv2+ ; LGPLv2.1+ Summary: The Heartbeat Subsystem for High-Availability Linux Group: Productivity/Clustering/HA Requires: %{name} = %{version}-%{release} Requires: libapphb-devel = %{version}-%{release} %description devel heartbeat is a sophisticated multinode resource manager for High Availability clusters. It can failover arbitrary resources, ranging from IP addresses over NFS to databases that are tied in via resource scripts. The resources can have arbitrary dependencies for ordering or placement between them. heartbeat contains a cluster membership layer, fencing, and local and clusterwide resource management functionality. 1.2/1.0 based 2-node only configurations are supported in a legacy mode. heartbeat implements the following kinds of heartbeats: - Serial ports - UDP/IPv4 broadcast, multi-cast, and unicast - IPv4 "ping" pseudo-cluster members. Authors: -------- Alan Robertson <alanr@unix.sh> Andrew Beekhof <abeekhof@suse.de> Guochun Shi <gshi@ncsa.uiuc.edu> Horms <horms@verge.net.net> Huang Zhen <zhenhltc@cn.ibm.com> Lars Marowsky-Bree <lmb@suse.de> Sun Jiang Dong <hasjd@cn.ibm.com> (See doc/AUTHORS) %prep ########################################################### %setup -n Heartbeat-3-0-STABLE-%{version} -q %if 0%{?suse_version} cp $RPM_SOURCE_DIR/heartbeat.suse.in ./heartbeat/init.d/heartbeat.in %endif %{?suse_update_config:%{suse_update_config -f}} ########################################################### %build # This package failed when testing with -Wl,-as-needed being default. # So we disable it here, if you want to retest, just delete this comment and the line below. export SUSE_ASNEEDED=0 # TODO: revisit -all CFLAGS="${CFLAGS} ${RPM_OPT_FLAGS}" # Feature-dependent CFLAGS: %if %with_extra_warnings # CFLAGS="${CFLAGS} -Wshadow -Wfloat-equal -Waggregate-return -Wnested-externs -Wunreachable-code -Wendif-labels -Winline" CFLAGS="${CFLAGS} -Wfloat-equal -Wendif-labels -Winline" %endif %if %with_debugging CFLAGS="${CFLAGS} -O0" %endif # Distribution specific settings: %if 0%{?suse_version} > 1001 CFLAGS="${CFLAGS} -fstack-protector-all" %endif %if 0%{?suse_version} < 1001 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/opt/gnome/%{_lib}/pkgconfig:/opt/gnome/share/pkgconfig" %endif %if 0%{?suse_version} > 1020 CFLAGS="$CFLAGS -fgnu89-inline" %endif %if 0%{?fedora_version} > 6 CFLAGS="$CFLAGS -fgnu89-inline" %endif export CFLAGS ./ConfigureMe configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} \ --localstatedir=%{_var} --infodir=%{_infodir} \ --mandir=%{_mandir} --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --with-group-name=%{gname} --with-ccmuser-name=%{uname} \ --with-group-id=%{uid} --with-ccmuser-id=%{uid} \ --with-hapkgversion=%{version} \ --enable-libc-malloc \ --enable-pretty \ %if %without_fatal_warnings --enable-fatal-warnings=no \ %endif %if %build_cmpi --enable-cim-provider \ --with-cimom=openwbem \ --with-cmpi-headers=%{_includedir}/openwbem \ --with-provider-dir=/usr/%{_lib}/openwbem/cmpiproviders \ %endif --disable-crm export MAKE="make %{?jobs:-j%jobs}" make %{?jobs:-j%jobs} ########################################################### %install ########################################################### #make DESTDIR=$RPM_BUILD_ROOT install-strip make DESTDIR=$RPM_BUILD_ROOT install test -d $RPM_BUILD_ROOT/sbin || mkdir $RPM_BUILD_ROOT/sbin ( cd $RPM_BUILD_ROOT/sbin ln -s /etc/init.d/heartbeat rcheartbeat ) || true # Cleanup [ -d $RPM_BUILD_ROOT/usr/man ] && rm -rf $RPM_BUILD_ROOT/usr/man [ -d $RPM_BUILD_ROOT/usr/share/libtool ] && rm -rf $RPM_BUILD_ROOT/usr/share/libtool find $RPM_BUILD_ROOT -name '*.a' -type f -print0 | xargs -0 rm -f find $RPM_BUILD_ROOT -name '*.la' -type f -print0 | xargs -0 rm -f install -d $RPM_BUILD_ROOT/usr/share/doc/packages mv $RPM_BUILD_ROOT/usr/share/doc/heartbeat $RPM_BUILD_ROOT/usr/share/doc/packages ########################################################### rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/ha.d/resource.d %clean ########################################################### if [ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ] then rm -rf $RPM_BUILD_ROOT fi rm -rf $RPM_BUILD_DIR/heartbeat-%{version} ########################################################### %pre common %if 0%{?fedora_version} /usr/sbin/fedora-groupadd %{uid} -r %{gname} &>/dev/null || : /usr/sbin/fedora-useradd %{uid} -r -s /sbin/nologin -d %{_var}/lib/heartbeat/cores/%{uname} -M \ -c 'heartbeat user' -g %{gname} %{uname} &>/dev/null || : %else if getent group %{gname} >/dev/null then : OK group haclient already present else /usr/sbin/groupadd -o -r -g %{uid} %{gname} 2>/dev/null || : fi if getent passwd %{uname} >/dev/null then : OK hacluster user already present else /usr/sbin/useradd -r -g %{gname} -c "heartbeat processes" \ -d %{_var}/lib/heartbeat/cores/%{uname} -o -u %{uid} \ %{uname} 2>/dev/null || : fi %endif # ########################################################### %post common /sbin/ldconfig %postun common /sbin/ldconfig %post /sbin/ldconfig %if %{start_at_boot} %if 0%{?suse_version} %{fillup_and_insserv -n heartbeat} %endif %if 0%{?fedora_version} /sbin/chkconfig --add heartbeat %endif %endif ########################################################### %if 0%{?suse_version} %preun %stop_on_removal heartbeat %endif %if 0%{?fedora_version} %preun %if %{stop_start_script} /sbin/chkconfig --del heartbeat %endif %endif ########################################################### %postun /sbin/ldconfig %if 0%{?suse_version} %if %{stop_start_script} %restart_on_update heartbeat %endif %{insserv_cleanup} %endif %if 0%{?fedora_version} test "$1" != 0 || /usr/sbin/fedora-userdel %{uname} || : test "$1" != 0 || /usr/sbin/fedora-groupdel %{gname} || : %endif ########################################################### %post -n libapphb2 -p /sbin/ldconfig %postun -n libapphb2 -p /sbin/ldconfig %files ########################################################### %defattr(-,root,root) %{_libdir}/heartbeat/mlock %{_libdir}/heartbeat/plugins/HBauth %{_libdir}/heartbeat/plugins/HBcomm %{_libdir}/heartbeat/plugins/HBcompress %{_libdir}/heartbeat/plugins/quorum %{_libdir}/heartbeat/plugins/tiebreaker %{_libdir}/heartbeat/heartbeat %{_libdir}/heartbeat/ipfail %{_libdir}/heartbeat/ccm %{_datadir}/heartbeat/ResourceManager %{_datadir}/heartbeat/ha_config %{_datadir}/heartbeat/ha_propagate %{_datadir}/heartbeat/hb_addnode %{_datadir}/heartbeat/hb_delnode %{_datadir}/heartbeat/hb_setsite %{_datadir}/heartbeat/hb_setweight %{_datadir}/heartbeat/hb_standby %{_datadir}/heartbeat/hb_takeover %{_datadir}/heartbeat/mach_down %{_datadir}/heartbeat/req_resource %{_libdir}/heartbeat/dopd %{_libdir}/heartbeat/drbd-peer-outdater %ghost %dir %{_var}/run/heartbeat %dir %{_var}/lib/heartbeat %ghost %dir %attr (0755, %{uname}, %{gname}) %{_var}/run/heartbeat/ccm %{_sysconfdir}/ha.d %{_sysconfdir}/init.d/heartbeat %config(noreplace) %{_sysconfdir}/logrotate.d/heartbeat %{_libdir}/libclm.so.* %{_libdir}/libhbclient.so.* %{_libdir}/libccmclient.so.* /sbin/rcheartbeat %{_libdir}/heartbeat/apphbd %{_bindir}/cl_respawn %attr (2555, root, haclient) %{_bindir}/cl_status %doc %{_mandir}/man1/cl_status.1* %doc %{_mandir}/man1/hb_addnode.1* %doc %{_mandir}/man1/hb_delnode.1* %doc %{_mandir}/man1/hb_standby.1* %doc %{_mandir}/man1/hb_takeover.1* %doc %{_mandir}/man5/authkeys.5* %doc %{_mandir}/man5/ha.cf.5* %doc %{_mandir}/man8/heartbeat.8* %doc %{_datadir}/doc/packages/heartbeat/README %doc %{_datadir}/doc/packages/heartbeat/apphbd.cf %doc %{_datadir}/doc/packages/heartbeat/authkeys %doc %{_datadir}/doc/packages/heartbeat/haresources %doc %{_datadir}/doc/packages/heartbeat/ha.cf ########################################################### %files -n libapphb2 %defattr(-,root,root) %{_libdir}/libapphb.so.* %files common %defattr(-,root,root) %dir %{_libdir}/heartbeat %dir %{_libdir}/heartbeat/plugins %dir %{_datadir}/heartbeat %dir %{_datadir}/doc/packages/heartbeat %dir %{_sysconfdir}/ha.d %doc %{_mandir}/man8/apphbd.8* %doc %{_datadir}/doc/packages/heartbeat/AUTHORS %exclude %doc %{_datadir}/doc/packages/heartbeat/README %doc %{_datadir}/doc/packages/heartbeat/COPYING %doc %{_datadir}/doc/packages/heartbeat/COPYING.LGPL %exclude %{_datadir}/doc/packages/heartbeat/ChangeLog %{_datadir}/doc/packages/heartbeat/apphbd.cf %ghost %dir %{_var}/run/heartbeat %ghost %dir %attr (0755, %{uname}, %{gname}) %{_var}/run/heartbeat/ccm %files -n libapphb-devel %defattr(-,root,root) %dir %{_includedir}/heartbeat %{_includedir}/heartbeat/apphb.h %{_includedir}/heartbeat/apphb_notify.h %{_includedir}/heartbeat/HBauth.h %{_includedir}/heartbeat/HBcomm.h %{_includedir}/heartbeat/hb_config.h %{_includedir}/heartbeat/heartbeat.h %{_libdir}/libapphb*.so %files devel %defattr(-,root,root) %{_includedir}/saf/ %{_includedir}/ocf/ %{_includedir}/heartbeat/hb_api.h %exclude %{_libdir}/libclm*.so %exclude %{_libdir}/libhbclient*.so %exclude %{_libdir}/libccmclient*.so %{_libdir}/heartbeat/clmtest %{_libdir}/heartbeat/api_test %{_libdir}/heartbeat/apphbtest %{_libdir}/heartbeat/ccm_testclient %{_datadir}/heartbeat/BasicSanityCheck %{_datadir}/heartbeat/TestHeartbeatComm %dir %{_datadir}/heartbeat/cts %dir %{_datadir}/heartbeat/cts %{_datadir}/heartbeat/cts/LSBDummy %{_datadir}/heartbeat/cts/README %{_datadir}/heartbeat/cts/getpeinputs.sh %{_datadir}/heartbeat/cts/*.py %exclude %{_datadir}/heartbeat/cts/*.pyo %exclude %{_datadir}/heartbeat/cts/*.pyc %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor