rpms/pacemaker/F-13 .cvsignore, 1.7, 1.8 pacemaker.spec, 1.10, 1.11 sources, 1.7, 1.8
Andrew Beekhof
beekhof at fedoraproject.org
Thu Mar 11 11:48:16 UTC 2010
Author: beekhof
Update of /cvs/pkgs/rpms/pacemaker/F-13
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24185
Modified Files:
.cvsignore pacemaker.spec sources
Log Message:
Refresh from upstream
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/pacemaker/F-13/.cvsignore,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- .cvsignore 11 Feb 2010 10:57:32 -0000 1.7
+++ .cvsignore 11 Mar 2010 11:48:15 -0000 1.8
@@ -1 +1 @@
-60b7753f7310.tar.bz2
+972b9a5f6860.tar.bz2
Index: pacemaker.spec
===================================================================
RCS file: /cvs/pkgs/rpms/pacemaker/F-13/pacemaker.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- pacemaker.spec 11 Feb 2010 10:57:32 -0000 1.10
+++ pacemaker.spec 11 Mar 2010 11:48:15 -0000 1.11
@@ -1,18 +1,38 @@
%global gname haclient
%global uname hacluster
-%global with_ais_support 1
-%global with_heartbeat_support 1
%global pcmk_docdir %{_docdir}/%{name}
+# Supported cluster stacks, must support at least one
+%bcond_without ais
+%bcond_without heartbeat
+
+# ESMTP is not available in RHEL, only in EPEL. Allow people to build
+# the RPM without ESMTP in case they choose not to use EPEL packages
+%bcond_without esmtp
+
+# SNMP trap support only works with Net-SNMP 5.4 and above
+%bcond_without snmp
+
+# We generate some docs using Publican, but its not available everywhere
+%bcond_without publican
+
%global specversion 1
-%global upstream_version 60b7753f7310
-%global upstream_prefix Pacemaker-Devel-
+%global upstream_version 972b9a5f6860
+%global upstream_prefix Pacemaker-1-1-
# Keep around for when/if required
-%global alphatag %{upstream_version}.hg
+#global alphatag %{upstream_version}.hg
%global pcmk_release %{?alphatag:0.}%{specversion}%{?alphatag:.%{alphatag}}%{?dist}
+# Compatibility macros for distros that don't provide Python macros by default.
+# Do this instead of trying to conditionally include
+# %{_rpmconfigdir}/macros.python which doesn't always exist
+%{!?py_ver: %{expand: %%global py_ver %%(echo `python -c "import sys; print sys.version[:3]"`)}}
+%{!?py_prefix: %{expand: %%global py_prefix %%(echo `python -c "import sys; print sys.prefix"`)}}
+%{!?py_libdir: %{expand: %%global py_libdir %%{expand:%%%%{py_prefix}/lib/python%%%%{py_ver}}}}
+%{!?py_sitedir: %{expand: %%global py_sitedir %%{expand:%%%%{py_libdir}/site-packages}}}
+
# When downloading directly from Mercurial, it will automatically add a prefix
# Invoking 'hg archive' wont but you can add one with:
# hg archive -t tgz -p "$upstream_prefix-$upstream_version" -r $upstream_version $upstream_version.tar.gz
@@ -24,32 +44,44 @@ Release: %{pcmk_release}
License: GPLv2+ and LGPLv2+
Url: http://www.clusterlabs.org
Group: System Environment/Daemons
-Source0: http://hg.clusterlabs.org/pacemaker/devel/archive/%{upstream_version}.tar.bz2
-
+Source0: http://hg.clusterlabs.org/pacemaker/1.1/archive/%{upstream_version}.tar.bz2
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
AutoReqProv: on
Requires(pre): cluster-glue
Requires: resource-agents
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# Required for core functionality
-BuildRequires: automake autoconf libtool pkgconfig libtool-ltdl-devel
+BuildRequires: automake autoconf libtool pkgconfig libtool-ltdl-devel python-devel
BuildRequires: glib2-devel cluster-glue-libs-devel libxml2-devel libxslt-devel
BuildRequires: pkgconfig python-devel gcc-c++ bzip2-devel gnutls-devel pam-devel
# Enables optional functionality
-BuildRequires: help2man ncurses-devel net-snmp-devel openssl-devel
-BuildRequires: libesmtp-devel lm_sensors-devel libselinux-devel
+BuildRequires: help2man ncurses-devel openssl-devel libselinux-devel
-%if %with_ais_support
+%if %{with esmtp}
+BuildRequires: libesmtp-devel
+%endif
+
+%if %{with snmp}
+BuildRequires: net-snmp-devel >= 5.4
+Requires: net-snmp >= 5.4
+%endif
+
+%if %{with ais}
BuildRequires: corosynclib-devel
Requires: corosync
%endif
-%if %with_heartbeat_support
+
+%if %{with heartbeat}
BuildRequires: heartbeat-devel heartbeat-libs
Requires: heartbeat >= 3.0.0
%endif
+%if %{with publican}
+BuildRequires: publican
+%endif
+
%description
Pacemaker is an advanced, scalable High-Availability cluster resource
manager for Linux-HA (Heartbeat) and/or OpenAIS.
@@ -84,10 +116,10 @@ Summary: Pacemaker development package
Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release}
Requires: cluster-glue-libs-devel
-%if %with_ais_support
+%if %{with ais}
Requires: corosynclib-devel
%endif
-%if %with_heartbeat_support
+%if %{with heartbeat}
Requires: heartbeat-devel
%endif
@@ -104,22 +136,55 @@ It will run scripts at initialization, w
when related resources fail and can be configured to periodically check
resource health.
+%package cts
+License: GPLv2+ and LGPLv2+
+Summary: Test framework for cluster-related technologies like Pacemaker
+Group: System Environment/Daemons
+Requires: python
+
+%description cts
+Test framework for cluster-related technologies like Pacemaker
+
+%package doc
+License: GPLv2+ and LGPLv2+
+Summary: Documentation for Pacemaker
+Group: Documentation
+
+%description doc
+Documentation for Pacemaker.
+
+Pacemaker is an advanced, scalable High-Availability cluster resource
+manager for OpenAIS/Corosync.
+
+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.
+
%prep
%setup -q -n %{upstream_prefix}%{upstream_version}
%build
./autogen.sh
-%{configure} --localstatedir=%{_var} --enable-fatal-warnings=no --docdir=%{pcmk_docdir}
+%{configure} \
+ %{?_without_heartbeat} \
+ %{?_without_ais} \
+ %{?_without_esmtp} \
+ %{?_without_snmp} \
+ --docdir=%{pcmk_docdir} \
+ --localstatedir=%{_var} \
+ --enable-fatal-warnings=no
+
make %{_smp_mflags}
%install
rm -rf %{buildroot}
-make install DESTDIR=%{buildroot}
+make DESTDIR=%{buildroot} install
# Scripts that need should be executable
-chmod a+x %{buildroot}/%{_libdir}/heartbeat/hb2openais-helper.py
chmod a+x %{buildroot}/%{_datadir}/pacemaker/tests/cts/CTSlab.py
-chmod a+x %{buildroot}/%{_datadir}/pacemaker/tests/cts/OCFIPraTest.py
chmod a+x %{buildroot}/%{_datadir}/pacemaker/tests/cts/extracttests.py
# These are not actually scripts
@@ -131,12 +196,12 @@ find %{buildroot} -name '*.dtd' -type f
# Dont package static libs or compiled python
find %{buildroot} -name '*.a' -type f -print0 | xargs -0 rm -f
find %{buildroot} -name '*.la' -type f -print0 | xargs -0 rm -f
-find %{buildroot} -name '*.pyc' -type f -print0 | xargs -0 rm -f
-find %{buildroot} -name '*.pyo' -type f -print0 | xargs -0 rm -f
# Don't package these either
-rm %{buildroot}/%{_libdir}/heartbeat/crm_primitive.py
-rm %{buildroot}/%{_libdir}/service_crm.so
+rm -f %{buildroot}/%{_libdir}/heartbeat/hb2openais-helper.py
+rm -f %{buildroot}/%{_libdir}/heartbeat/crm_primitive.py
+rm -f %{buildroot}/%{_libdir}/service_crm.so
+rm -f %{buildroot}/usr/lib/ocf/resource.d/pacemaker/pingd
%clean
rm -rf %{buildroot}
@@ -149,6 +214,8 @@ rm -rf %{buildroot}
###########################################################
%defattr(-,root,root)
+%exclude %{_datadir}/pacemaker/tests
+
%{_datadir}/pacemaker
%{_datadir}/snmp/mibs/PCMK-MIB.txt
%{_libdir}/heartbeat/*
@@ -159,7 +226,9 @@ rm -rf %{buildroot}
%{_sbindir}/crm_master
%{_sbindir}/crm_mon
%{_sbindir}/crm
+%{_sbindir}/crm_simulate
%{_sbindir}/crm_resource
+%{_sbindir}/crm_report
%{_sbindir}/crm_standby
%{_sbindir}/crm_verify
%{_sbindir}/crmadmin
@@ -169,25 +238,21 @@ rm -rf %{buildroot}
%{_sbindir}/crm_shadow
%{_sbindir}/cibpipe
%{_sbindir}/crm_node
-%{_sbindir}/crm_simulate
%{_sbindir}/fence_legacy
%{_sbindir}/stonith_admin
+%{py_sitedir}/crm
+#%{_mandir}/man8/*.8*
+%{_mandir}
-%if %with_heartbeat_support
+%if %{with heartbeat}
%{_sbindir}/crm_uuid
%else
%exclude %{_sbindir}/crm_uuid
%endif
# Packaged elsewhere
-%exclude %{pcmk_docdir}/AUTHORS
-%exclude %{pcmk_docdir}/COPYING
-%exclude %{pcmk_docdir}/COPYING.LIB
-
-%doc %{pcmk_docdir}/crm_cli.txt
-%doc %{pcmk_docdir}/crm_fencing.txt
-%doc %{pcmk_docdir}/README.hb2openais
-%doc %{_mandir}/man8/*.8*
+%exclude %{_datadir}/pacemaker/tests
+
%doc COPYING
%doc AUTHORS
@@ -197,7 +262,7 @@ rm -rf %{buildroot}
%dir /usr/lib/ocf
%dir /usr/lib/ocf/resource.d
/usr/lib/ocf/resource.d/pacemaker
-%if %with_ais_support
+%if %{with ais}
%{_libexecdir}/lcrso/pacemaker.lcrso
%endif
@@ -214,14 +279,52 @@ rm -rf %{buildroot}
%doc COPYING.LIB
%doc AUTHORS
+%files doc
+%defattr(-,root,root)
+%doc %{pcmk_docdir}
+
+%files cts
+%defattr(-,root,root)
+%{py_sitedir}/cts
+%{_datadir}/pacemaker/tests/cts
+%doc COPYING.LIB
+%doc AUTHORS
+
%files -n pacemaker-libs-devel
%defattr(-,root,root)
+%exclude %{_datadir}/pacemaker/tests/cts
+%{_datadir}/pacemaker/tests
%{_includedir}/pacemaker
%{_libdir}/*.so
%doc COPYING.LIB
%doc AUTHORS
%changelog
+* Thu Mar 11 2010 Andrew Beekhof <andrew at beekhof.net> - 1.1.1-1
+- Split cluster tests and documentation off into sub packages as per upstream
+- Update the tarball from upstream to version 972b9a5f6860
+ + High: ais: Bug lf#2340 - Force rogue child processes to terminate after waiting 2.5 minutes
+ + High: ais: Bug lf#2359 - Default expected votes to 2 inside Corosync/OpenAIS plugin
+ + High: ais: Bug lf#2359 - expected-quorum-votes not correctly updated after membership change
+ + High: ais: Bug rhbz#525552 - Move non-threadsafe calls to setenv() to after the fork()
+ + High: crmd: Bug bnc#578644 - Improve handling of cancelled operations caused by resource cleanup
+ + High: fencing: Account for stonith_get_info() always returning a pointer to the same static buffer
+ + High: PE: Allow startup probes to be disabled - their calculation is a major bottleneck for very large clusters
+ + High: PE: Bug lf#2317 - Avoid needless restart of primitive depending on a clone
+ + High: PE: Bug lf#2358 - Fix master-master anti-colocation
+ + High: PE: Bug lf#2361 - Ensure clones observe mandatory ordering constraints if the LHS is unrunnable
+ + High: PE: Correctly implement optional colocation between primitives and clone resources
+ + High: PE: Repair handling of unordered groups in RHS ordering constraints
+ + High: PE: Suppress duplicate ordering constraints to achieve orders of magnitude speed increases for large clusters
+ + High: Shell: add support for xml in cli
+ + High: Shell: check timeouts also against the default-action-timeout property
+ + High: Shell: edit multiple meta_attributes sets in resource management (lf#2315)
+ + High: Shell: improve configure commit (lf#2336)
+ + High: Shell: new cibstatus import command (bnc#585471)
+ + High: Shell: restore error reporting in options
+ + High: Shell: support for the utilization element (old patch for the new structure)
+ + High: Shell: update previous node lookup procedure to include the id where necessary
+
* Thu Feb 11 2010 Andrew Beekhof <andrew at beekhof.net> - 1.1.1-0.1-60b7753f7310.hg
- Update the tarball from upstream to version 60b7753f7310
+ First public release of the 1.1 series
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/pacemaker/F-13/sources,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- sources 11 Feb 2010 10:57:32 -0000 1.7
+++ sources 11 Mar 2010 11:48:16 -0000 1.8
@@ -1 +1 @@
-6f8c608f8f743d7e3e5fbfae57572850 60b7753f7310.tar.bz2
+9e41709fcbcffd87cb7b49fd146584f4 972b9a5f6860.tar.bz2
More information about the scm-commits
mailing list