forked from pool/pacemaker
This commit is contained in:
parent
ea11bb47ea
commit
d174672082
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 15 11:08:19 CEST 2008 - abeekhof@suse.de
|
||||
|
||||
- Create a libpacemaker subpackage
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 11 09:33:12 CEST 2008 - abeekhof@suse.de
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
%define with_debugging 0
|
||||
%define without_fatal_warnings 1
|
||||
%define with_ais_support 1
|
||||
%define with_heartbeat_support 1
|
||||
%define with_heartbeat_support 0
|
||||
%define gname haclient
|
||||
%define uname hacluster
|
||||
%if 0%{?fedora_version}
|
||||
@ -36,7 +36,7 @@
|
||||
Name: pacemaker
|
||||
Summary: The Pacemaker scalable High-Availability cluster resource manager
|
||||
Version: 0.7.2
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: GPL v2 or later; LGPL v2.1 or later
|
||||
Url: http://www.clusterlabs.org
|
||||
Group: Productivity/Clustering/HA
|
||||
@ -45,20 +45,19 @@ Source100: pacemaker.rpmlintrc
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
AutoReqProv: on
|
||||
%if %with_ais_support
|
||||
BuildRequires: openais-devel
|
||||
BuildRequires: libopenais-devel
|
||||
%if 0%{?suse_version} > 1000
|
||||
Supplements: openais
|
||||
%endif
|
||||
%endif
|
||||
%if %with_heartbeat_support
|
||||
BuildRequires: heartbeat-devel > 2.2
|
||||
BuildRequires: heartbeat-devel
|
||||
%if 0%{?suse_version} > 1000
|
||||
Supplements: heartbeat
|
||||
%endif
|
||||
%endif
|
||||
Conflicts: heartbeat < 2.99
|
||||
Obsoletes: heartbeat < 2.99
|
||||
BuildRequires: e2fsprogs-devel glib2-devel gnutls-devel heartbeat-common heartbeat-common-devel libxml2-devel libxslt-devel ncurses-devel pam-devel python-devel swig
|
||||
BuildRequires: e2fsprogs-devel glib2-devel gnutls-devel libheartbeat-devel libxml2-devel libxslt-devel ncurses-devel pam-devel python-devel swig
|
||||
%if 0%{?suse_version}
|
||||
%if 0%{?suse_version} == 930
|
||||
BuildRequires: rpm-devel
|
||||
@ -100,13 +99,37 @@ Authors:
|
||||
--------
|
||||
Andrew Beekhof <abeekhof@suse.de>
|
||||
|
||||
%package devel
|
||||
%package -n libpacemaker3
|
||||
License: GPL v2 or later; LGPL v2.1 or later
|
||||
Summary: The Pacemaker scalable High-Availability cluster resource manager
|
||||
Group: Productivity/Clustering/HA
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
%description -n libpacemaker3
|
||||
Pacemaker is an advanced, scalable High-Availability cluster resource
|
||||
manager for Linux-HA (Heartbeat) and/or OpenAIS.
|
||||
|
||||
It supports "n-node" clusters with significant capabilities for
|
||||
managing resources and dependencies.
|
||||
|
||||
It will run scripts at initialization, when machines go up or down,
|
||||
when related resources fail and can be configured to periodically check
|
||||
resource health.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Andrew Beekhof <abeekhof@suse.de>
|
||||
|
||||
%package -n libpacemaker-devel
|
||||
License: GPL v2 or later; LGPL v2.1 or later
|
||||
Summary: The Pacemaker scalable High-Availability cluster resource manager
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: libpacemaker3 = %{version}-%{release}
|
||||
Requires: libheartbeat-devel
|
||||
|
||||
%description -n libpacemaker-devel
|
||||
Pacemaker is an advanced, scalable High-Availability cluster resource
|
||||
manager for Linux-HA (Heartbeat) and/or OpenAIS.
|
||||
|
||||
@ -157,13 +180,11 @@ export CFLAGS
|
||||
--localstatedir=%{_var} --infodir=%{_infodir} \
|
||||
--mandir=%{_mandir} --libdir=%{_libdir} \
|
||||
--libexecdir=%{_libexecdir} \
|
||||
--with-hapkgversion=%{version} \
|
||||
--enable-glib-malloc \
|
||||
--with-ais-prefix=%{_prefix} \
|
||||
%if %without_fatal_warnings
|
||||
--enable-fatal-warnings=no \
|
||||
%endif
|
||||
--enable-pretty
|
||||
--with-hapkgversion=%{version}
|
||||
export MAKE="make %{?jobs:-j%jobs}"
|
||||
make %{?jobs:-j%jobs}
|
||||
###########################################################
|
||||
@ -171,9 +192,16 @@ make %{?jobs:-j%jobs}
|
||||
%install
|
||||
###########################################################
|
||||
#make DESTDIR=$RPM_BUILD_ROOT install-strip
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
chmod a+x $RPM_BUILD_ROOT/%{_libdir}/heartbeat/crm_primitive.py
|
||||
rm $RPM_BUILD_ROOT/%{_libdir}/service_crm.so
|
||||
(
|
||||
cd $RPM_BUILD_ROOT/%{_sbindir}
|
||||
rm crm_standby crm_master crm_failcount
|
||||
ln crm_attribute crm_standby
|
||||
ln crm_attribute crm_master
|
||||
ln crm_attribute crm_failcount
|
||||
)
|
||||
#%if %with_ais_support
|
||||
# mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}/lcrso
|
||||
# cp $RPM_BUILD_ROOT/%{_libdir}/service_crm.so $RPM_BUILD_ROOT/%{_libexecdir}/lcrso/pacemaker.lcrso
|
||||
@ -197,36 +225,21 @@ fi
|
||||
rm -rf $RPM_BUILD_DIR/pacemaker
|
||||
###########################################################
|
||||
|
||||
%pre
|
||||
%post -n libpacemaker3 -p /sbin/ldconfig
|
||||
|
||||
%preun
|
||||
# Use the following if more commands need to be executed
|
||||
# %post
|
||||
# /sbin/ldconfig
|
||||
# [...]
|
||||
# http://en.opensuse.org/SUSE_Package_Conventions/RPM_Macros
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
%postun -n libpacemaker3 -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
###########################################################
|
||||
%defattr(-,root,root)
|
||||
%dir %{_libdir}/heartbeat
|
||||
%dir %{_var}/run/heartbeat
|
||||
%dir %{_var}/lib/heartbeat
|
||||
%{_datadir}/pacemaker
|
||||
#%{_datadir}/heartbeat
|
||||
%{_libdir}/heartbeat/*
|
||||
%dir %{_var}/lib/heartbeat
|
||||
%{_libdir}/libcib.so.*
|
||||
%{_libdir}/libcrmcommon.so.*
|
||||
%{_libdir}/libcrmcluster.so.*
|
||||
#%{_libdir}/heartbeat/crm_primitive.py
|
||||
%{_libdir}/libpe_status.so.*
|
||||
%{_libdir}/libpe_rules.so.*
|
||||
%{_libdir}/libpengine.so.*
|
||||
%{_libdir}/libtransitioner.so.*
|
||||
%{_libdir}/libstonithd.so.*
|
||||
%exclude %{_libdir}/heartbeat/crm_utils.py
|
||||
%exclude %{_libdir}/heartbeat/crm_commands.py
|
||||
%{_sbindir}/cibadmin
|
||||
%{_sbindir}/crm_attribute
|
||||
%{_sbindir}/crm_diff
|
||||
@ -250,13 +263,25 @@ rm -rf $RPM_BUILD_DIR/pacemaker
|
||||
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/heartbeat/crm
|
||||
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/heartbeat/pengine
|
||||
%dir %attr (750, %{uname}, %{gname}) %{_var}/run/heartbeat/crm
|
||||
%dir /usr/lib/ocf
|
||||
%dir /usr/lib/ocf/resource.d
|
||||
/usr/lib/ocf/resource.d/pacemaker
|
||||
%if %with_ais_support
|
||||
%{_libexecdir}/lcrso/pacemaker.lcrso
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%files -n libpacemaker3
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libcib.so.*
|
||||
%{_libdir}/libcrmcommon.so.*
|
||||
%{_libdir}/libcrmcluster.so.*
|
||||
%{_libdir}/libpe_status.so.*
|
||||
%{_libdir}/libpe_rules.so.*
|
||||
%{_libdir}/libpengine.so.*
|
||||
%{_libdir}/libtransitioner.so.*
|
||||
%{_libdir}/libstonithd.so.*
|
||||
|
||||
%files -n libpacemaker-devel
|
||||
%defattr(-,root,root)
|
||||
#%doc %{_datadir}/doc/%{name}-%{version}
|
||||
%{_includedir}/pacemaker
|
||||
@ -264,6 +289,8 @@ rm -rf $RPM_BUILD_DIR/pacemaker
|
||||
%{_libdir}/*.so
|
||||
|
||||
%changelog
|
||||
* Mon Sep 15 2008 abeekhof@suse.de
|
||||
- Create a libpacemaker subpackage
|
||||
* Thu Sep 11 2008 abeekhof@suse.de
|
||||
- Update source tarball to revision: 2087f5b1a5a0
|
||||
+ High: PE: Bug LF:1950 - Ensure the current values for all notification variables are always set (even if empty)
|
||||
|
Loading…
x
Reference in New Issue
Block a user