Upstream 1.1.7
This commit is contained in:
parent
1ea0840382
commit
52005bef52
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,3 +5,5 @@
|
|||||||
/ClusterLabs-pacemaker-bc7c125.tar.gz
|
/ClusterLabs-pacemaker-bc7c125.tar.gz
|
||||||
/ClusterLabs-pacemaker-148fccf.tar.gz
|
/ClusterLabs-pacemaker-148fccf.tar.gz
|
||||||
/ClusterLabs-pacemaker-7742926.tar.gz
|
/ClusterLabs-pacemaker-7742926.tar.gz
|
||||||
|
/ClusterLabs-pacemaker-Pacemaker-1.1.7.tar.gz
|
||||||
|
/ClusterLabs-pacemaker-b5b0a7b.tar.gz
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
%global uname hacluster
|
%global uname hacluster
|
||||||
%global pcmk_docdir %{_docdir}/%{name}
|
%global pcmk_docdir %{_docdir}/%{name}
|
||||||
|
|
||||||
%global specversion 3
|
%global specversion 1
|
||||||
%global upstream_version 7742926
|
%global upstream_version b5b0a7b
|
||||||
%global upstream_prefix ClusterLabs-pacemaker
|
%global upstream_prefix ClusterLabs-pacemaker
|
||||||
|
|
||||||
# Compatibility macros for distros (fedora) that don't provide Python macros by default
|
# Compatibility macros for distros (fedora) that don't provide Python macros by default
|
||||||
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
%global cs_major %(pkg-config corosync --modversion | awk -F . '{print $1}')
|
%global cs_major %(pkg-config corosync --modversion | awk -F . '{print $1}')
|
||||||
%global cs_minor %(pkg-config corosync --modversion | awk -F . '{print $2}')
|
%global cs_minor %(pkg-config corosync --modversion | awk -F . '{print $2}')
|
||||||
|
%global rawhide %(test ! -e /etc/yum.repos.d/fedora-rawhide.repo; echo $?)
|
||||||
|
|
||||||
# Conditionals
|
# Conditionals
|
||||||
# Invoke "rpmbuild --without <feature>" or "rpmbuild --with <feature>"
|
# Invoke "rpmbuild --without <feature>" or "rpmbuild --with <feature>"
|
||||||
@ -29,7 +30,6 @@
|
|||||||
|
|
||||||
# Supported cluster stacks, must support at least one
|
# Supported cluster stacks, must support at least one
|
||||||
%bcond_with cman
|
%bcond_with cman
|
||||||
%bcond_without doc
|
|
||||||
%bcond_without corosync
|
%bcond_without corosync
|
||||||
%bcond_with heartbeat
|
%bcond_with heartbeat
|
||||||
|
|
||||||
@ -42,14 +42,11 @@
|
|||||||
%bcond_with profiling
|
%bcond_with profiling
|
||||||
%bcond_with gcov
|
%bcond_with gcov
|
||||||
|
|
||||||
# Support additional trace logging
|
# We generate docs using Publican, Asciidoc and Inkscape, but they're not available everywhere
|
||||||
%bcond_without tracedata
|
%bcond_without doc
|
||||||
|
|
||||||
# We generate some docs using Publican, but its not available everywhere
|
|
||||||
%bcond_without publican
|
|
||||||
|
|
||||||
# Use a different versioning scheme
|
# Use a different versioning scheme
|
||||||
%bcond_without pre_release
|
%bcond_with pre_release
|
||||||
|
|
||||||
%if %{with profiling}
|
%if %{with profiling}
|
||||||
# This disables -debuginfo package creation and also the stripping binaries/libraries
|
# This disables -debuginfo package creation and also the stripping binaries/libraries
|
||||||
@ -74,7 +71,6 @@ Group: System Environment/Daemons
|
|||||||
# export VER={upstream_version}
|
# export VER={upstream_version}
|
||||||
# wget --no-check-certificate -O ClusterLabs-pacemaker-${VER}.tar.gz https://github.com/ClusterLabs/pacemaker/tarball/${VER}
|
# wget --no-check-certificate -O ClusterLabs-pacemaker-${VER}.tar.gz https://github.com/ClusterLabs/pacemaker/tarball/${VER}
|
||||||
Source0: %{upstream_prefix}-%{upstream_version}.tar.gz
|
Source0: %{upstream_prefix}-%{upstream_version}.tar.gz
|
||||||
Patch1: pacemaker-hotfixes.patch
|
|
||||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Requires(pre): cluster-glue
|
Requires(pre): cluster-glue
|
||||||
@ -95,17 +91,45 @@ Provides: heartbeat >= 3.0.4
|
|||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
# net-snmp-devel on SLES10 does not suck in tcpd-devel automatically
|
||||||
|
BuildRequires: tcpd-devel
|
||||||
|
# Suse splits this off into a separate package
|
||||||
|
Requires: python-curses python-xml
|
||||||
|
BuildRequires: python-curses python-xml
|
||||||
|
%endif
|
||||||
|
|
||||||
# Required for core functionality
|
# Required for core functionality
|
||||||
BuildRequires: automake autoconf libtool pkgconfig python libtool-ltdl-devel
|
BuildRequires: automake autoconf libtool pkgconfig python libtool-ltdl-devel
|
||||||
BuildRequires: glib2-devel cluster-glue-libs-devel libxml2-devel libxslt-devel
|
BuildRequires: glib2-devel cluster-glue-libs-devel libxml2-devel libxslt-devel
|
||||||
BuildRequires: pkgconfig python-devel gcc-c++ bzip2-devel gnutls-devel pam-devel
|
BuildRequires: pkgconfig python-devel gcc-c++ bzip2-devel pam-devel
|
||||||
|
|
||||||
|
%if 0%{?suse_version} >= 1100
|
||||||
|
# Renamed since opensuse-11.0
|
||||||
|
BuildRequires: libgnutls-devel
|
||||||
|
%else
|
||||||
|
BuildRequires: gnutls-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
# Enables optional functionality
|
# Enables optional functionality
|
||||||
BuildRequires: ncurses-devel openssl-devel libselinux-devel docbook-style-xsl resource-agents libqb-devel
|
BuildRequires: ncurses-devel openssl-devel libselinux-devel docbook-style-xsl libqb-devel
|
||||||
|
BuildRequires: bison byacc flex help2man
|
||||||
|
|
||||||
%if %{with cman}
|
%if %{with cman}
|
||||||
|
|
||||||
|
%if 0%{?fedora} > 0
|
||||||
|
%if 0%{?fedora} < 17
|
||||||
BuildRequires: clusterlib-devel
|
BuildRequires: clusterlib-devel
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?rhel} > 0
|
||||||
|
%if 0%{?rhel} < 7
|
||||||
|
BuildRequires: clusterlib-devel
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with esmtp}
|
%if %{with esmtp}
|
||||||
@ -130,14 +154,15 @@ BuildRequires: corosynclib-devel
|
|||||||
BuildRequires: heartbeat-devel heartbeat-libs >= 3.0.0
|
BuildRequires: heartbeat-devel heartbeat-libs >= 3.0.0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with doc}
|
%if !%{rawhide}
|
||||||
BuildRequires: asciidoc help2man
|
# More often than not, inkscape is busted on rawhide, don't even bother
|
||||||
|
|
||||||
%if %{with publican}
|
%if %{with doc}
|
||||||
%ifarch %{ix86} x86_64
|
%ifarch %{ix86} x86_64
|
||||||
BuildRequires: publican inkscape
|
BuildRequires: publican inkscape asciidoc
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -241,7 +266,6 @@ manager for Linux-HA (Heartbeat) and/or Corosync.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{upstream_prefix}-%{upstream_version}
|
%setup -q -n %{upstream_prefix}-%{upstream_version}
|
||||||
%patch1 -p1
|
|
||||||
|
|
||||||
# Force the local time
|
# Force the local time
|
||||||
#
|
#
|
||||||
@ -267,17 +291,16 @@ docdir=%{pcmk_docdir} %{configure} \
|
|||||||
%{?with_cman: --with-cman} \
|
%{?with_cman: --with-cman} \
|
||||||
%{?with_profiling: --with-profiling} \
|
%{?with_profiling: --with-profiling} \
|
||||||
%{?with_gcov: --with-gcov} \
|
%{?with_gcov: --with-gcov} \
|
||||||
%{?with_tracedata: --with-tracedata} \
|
|
||||||
--with-initdir=%{_initrddir} \
|
--with-initdir=%{_initrddir} \
|
||||||
--localstatedir=%{_var} \
|
--localstatedir=%{_var} \
|
||||||
--with-version=%{version}-%{release} \
|
--with-version=%{version}-%{release} \
|
||||||
--enable-fatal-warnings=no
|
--enable-fatal-warnings=no
|
||||||
|
|
||||||
make %{_smp_mflags} docdir=%{pcmk_docdir}
|
make %{_smp_mflags} V=1 docdir=%{pcmk_docdir}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
make DESTDIR=%{buildroot} docdir=%{pcmk_docdir} install
|
make DESTDIR=%{buildroot} docdir=%{pcmk_docdir} V=1 install
|
||||||
|
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
|
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
|
||||||
install -m 644 mcp/pacemaker.sysconfig ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/pacemaker
|
install -m 644 mcp/pacemaker.sysconfig ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/pacemaker
|
||||||
@ -368,7 +391,6 @@ fi
|
|||||||
%exclude %{_sbindir}/crm_uuid
|
%exclude %{_sbindir}/crm_uuid
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with doc}
|
|
||||||
%doc %{_mandir}/man7/*
|
%doc %{_mandir}/man7/*
|
||||||
%doc %{_mandir}/man8/attrd_updater.*
|
%doc %{_mandir}/man8/attrd_updater.*
|
||||||
%doc %{_mandir}/man8/crm_attribute.*
|
%doc %{_mandir}/man8/crm_attribute.*
|
||||||
@ -377,7 +399,6 @@ fi
|
|||||||
%doc %{_mandir}/man8/fence_pcmk.*
|
%doc %{_mandir}/man8/fence_pcmk.*
|
||||||
%doc %{_mandir}/man8/pacemakerd.*
|
%doc %{_mandir}/man8/pacemakerd.*
|
||||||
%doc %{_mandir}/man8/stonith_admin.*
|
%doc %{_mandir}/man8/stonith_admin.*
|
||||||
%endif
|
|
||||||
|
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
%doc AUTHORS
|
%doc AUTHORS
|
||||||
@ -389,6 +410,7 @@ fi
|
|||||||
%dir /usr/lib/ocf
|
%dir /usr/lib/ocf
|
||||||
%dir /usr/lib/ocf/resource.d
|
%dir /usr/lib/ocf/resource.d
|
||||||
/usr/lib/ocf/resource.d/pacemaker
|
/usr/lib/ocf/resource.d/pacemaker
|
||||||
|
|
||||||
%if %{with corosync}
|
%if %{with corosync}
|
||||||
%if 0%{?cs_major} < 2
|
%if 0%{?cs_major} < 2
|
||||||
%if 0%{?cs_minor} < 8
|
%if 0%{?cs_minor} < 8
|
||||||
@ -416,7 +438,6 @@ fi
|
|||||||
%{_sbindir}/crm_report
|
%{_sbindir}/crm_report
|
||||||
%{_sbindir}/crm_ticket
|
%{_sbindir}/crm_ticket
|
||||||
%{py_sitedir}/crm
|
%{py_sitedir}/crm
|
||||||
%if %{with doc}
|
|
||||||
%doc %{_mandir}/man8/*
|
%doc %{_mandir}/man8/*
|
||||||
%exclude %{_mandir}/man8/attrd_updater.*
|
%exclude %{_mandir}/man8/attrd_updater.*
|
||||||
%exclude %{_mandir}/man8/crm_attribute.*
|
%exclude %{_mandir}/man8/crm_attribute.*
|
||||||
@ -425,7 +446,6 @@ fi
|
|||||||
%exclude %{_mandir}/man8/fence_pcmk.*
|
%exclude %{_mandir}/man8/fence_pcmk.*
|
||||||
%exclude %{_mandir}/man8/pacemakerd.*
|
%exclude %{_mandir}/man8/pacemakerd.*
|
||||||
%exclude %{_mandir}/man8/stonith_admin.*
|
%exclude %{_mandir}/man8/stonith_admin.*
|
||||||
%endif
|
|
||||||
|
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
%doc AUTHORS
|
%doc AUTHORS
|
||||||
@ -474,6 +494,10 @@ fi
|
|||||||
%doc AUTHORS
|
%doc AUTHORS
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 28 2012 Andrew Beekhof <andrew@beekhof.net> Pacemaker-1.1.7-1
|
||||||
|
- Update source tarball to upstream release: Pacemaker-1.1.7
|
||||||
|
- See included ChangeLog file or https://raw.github.com/ClusterLabs/pacemaker/master/ChangeLog for details
|
||||||
|
|
||||||
* Thu Feb 16 2012 Andrew Beekhof <andrew@beekhof.net> 1.1.7-0.3-7742926.git
|
* Thu Feb 16 2012 Andrew Beekhof <andrew@beekhof.net> 1.1.7-0.3-7742926.git
|
||||||
- New upstream tarball: 7742926
|
- New upstream tarball: 7742926
|
||||||
- Additional Provides and Obsoletes directives to enable upgrading from heartbeat
|
- Additional Provides and Obsoletes directives to enable upgrading from heartbeat
|
||||||
|
Loading…
Reference in New Issue
Block a user