[Pacemaker] [PATCH] Split out pacemaker-cluster-libs rpm package from pacemaker-libs

Andrew Beekhof andrew at beekhof.net
Thu Sep 22 23:17:21 UTC 2011


TBH, I'm not keen on creating a second -devel subpackage.
Happy to take the rest though.

2011/9/22 Pádraig Brady <P at draigbrady.com>:
> # HG changeset patch
> # User Pádraig Brady <P at draigBrady.com>
> # Date 1316657701 -3600
> # Node ID e77c50aea8d12d3277df8ae72494cd66e1bb3300
> # Parent  9971ebba4494012a93c03b40a2c58ec0eb60f50c
> Split out pacemaker-cluster-libs rpm package from pacemaker-libs
>
> diff -r 9971ebba4494 -r e77c50aea8d1 pacemaker.spec.in
> --- a/pacemaker.spec.in Wed Aug 31 11:02:11 2011 +1000
> +++ b/pacemaker.spec.in Thu Sep 22 03:15:01 2011 +0100
> @@ -2,7 +2,7 @@
>  %global uname hacluster
>  %global pcmk_docdir %{_docdir}/%{name}
>
> -%global specversion 1
> +%global specversion 2
>  %global upstream_version tip
>  %global upstream_prefix pacemaker
>
> @@ -73,6 +73,7 @@
>  Requires(pre): cluster-glue
>  Requires:      resource-agents
>  Requires:      %{name}-libs = %{version}-%{release}
> +Requires:      %{name}-cluster-libs = %{version}-%{release}
>  Requires:      %{name}-cli = %{version}-%{release}
>  Requires:      python >= 2.4
>  Conflicts:     heartbeat < 2.99
> @@ -151,6 +152,7 @@
>  Summary:       Command line tools for controlling the Pacemaker cluster resource manager
>  Group:         System Environment/Daemons
>  Requires:      %{name}-libs = %{version}-%{release}
> +Requires:      %{name}-cluster-libs = %{version}-%{release}
>
>  %description cli
>  Pacemaker is an advanced, scalable High-Availability cluster resource
> @@ -179,13 +181,50 @@
>  when related resources fail and can be configured to periodically check
>  resource health.
>
> -%package -n %{name}-libs-devel
> +%package -n %{name}-libs-devel
>  License:       GPLv2+ and LGPLv2+
>  Summary:       Pacemaker development package
>  Group:         Development/Libraries
>  Requires:      %{name}-libs = %{version}-%{release}
>  Requires:      cluster-glue-libs-devel libtool-ltdl-devel
> -Requires:      libxml2-devel libxslt-devel bzip2-devel glib2-devel
> +Requires:      libxml2-devel libxslt-devel bzip2-devel glib2-devel
> +
> +%description -n %{name}-libs-devel
> +Headers and shared libraries for developing tools for Pacemaker.
> +
> +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.
> +
> +%package -n %{name}-cluster-libs
> +License:       GPLv2+ and LGPLv2+
> +Summary:       Cluster Libraries used by the Pacemaker cluster resource manager and its clients
> +Group:         System Environment/Daemons
> +Requires:      %{name}-libs = %{version}-%{release}
> +
> +%description -n %{name}-cluster-libs
> +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.
> +
> +%package -n %{name}-cluster-libs-devel
> +License:       GPLv2+ and LGPLv2+
> +Summary:       Pacemaker development package
> +Group:         Development/Libraries
> +Requires:      %{name}-cluster-libs = %{version}-%{release}
> +Requires:      %{name}-libs-devel = %{version}-%{release}
>  %if %{with ais}
>  Requires:      corosynclib-devel
>  %endif
> @@ -193,7 +232,7 @@
>  Requires:      heartbeat-devel
>  %endif
>
> -%description -n %{name}-libs-devel
> +%description -n %{name}-cluster-libs-devel
>  Headers and shared libraries for developing tools for Pacemaker.
>
>  Pacemaker is an advanced, scalable High-Availability cluster resource
> @@ -321,6 +360,10 @@
>
>  %postun -n %{name}-libs -p /sbin/ldconfig
>
> +%post -n %{name}-cluster-libs -p /sbin/ldconfig
> +
> +%postun -n %{name}-cluster-libs -p /sbin/ldconfig
> +
>  %files
>  ###########################################################
>  %defattr(-,root,root)
> @@ -396,13 +439,18 @@
>
>  %files -n %{name}-libs
>  %defattr(-,root,root)
> -%{_libdir}/libcib.so.*
>  %{_libdir}/libcrmcommon.so.*
> -%{_libdir}/libcrmcluster.so.*
> +%{_libdir}/libpe_rules.so.*
>  %{_libdir}/libpe_status.so.*
> -%{_libdir}/libpe_rules.so.*
>  %{_libdir}/libpengine.so.*
>  %{_libdir}/libtransitioner.so.*
> +%{_libdir}/libcib.so.*
> +%doc COPYING.LIB
> +%doc AUTHORS
> +
> +%files -n %{name}-cluster-libs
> +%defattr(-,root,root)
> +%{_libdir}/libcrmcluster.so.*
>  %{_libdir}/libstonithd.so.*
>  %doc COPYING.LIB
>  %doc AUTHORS
> @@ -421,17 +469,42 @@
>  %files -n %{name}-libs-devel
>  %defattr(-,root,root)
>  %exclude %{_datadir}/pacemaker/tests/cts
> -%{_datadir}/pacemaker/tests
> -%{_includedir}/pacemaker
> -%{_libdir}/*.so
> +%exclude %{_includedir}/pacemaker/crm/stonith*
> +%exclude %{_includedir}/pacemaker/crm/common/cluster*
> +%exclude %{_includedir}/pacemaker/crm/ais.h
> +%{_includedir}/pacemaker/crm
> +%{_includedir}/pacemaker/*.h
> +%{_libdir}/libcrmcommon.so
> +%{_libdir}/libpe_rules.so
> +%{_libdir}/libpe_status.so
> +%{_libdir}/libpengine.so
> +%{_libdir}/libtransitioner.so
> +%{_libdir}/libcib.so
>  %if %{with gcov}
>  %{_var}/lib/pacemaker
>  %endif
> -%{_libdir}/pkgconfig/*.pc
> +%{_libdir}/pkgconfig/pcmk-cib.pc
> +%{_libdir}/pkgconfig/pcmk-pe.pc
> +%doc COPYING.LIB
> +%doc AUTHORS
> +
> +%files -n %{name}-cluster-libs-devel
> +%defattr(-,root,root)
> +%exclude %{_datadir}/pacemaker/tests/cts
> +%{_datadir}/pacemaker/tests
> +%{_includedir}/pacemaker/crm/stonith*
> +%{_includedir}/pacemaker/crm/common/cluster*
> +%{_includedir}/pacemaker/crm/ais.h
> +%{_libdir}/libcrmcluster.so
> +%{_libdir}/libstonithd.so
> +%{_libdir}/pkgconfig/pcmk.pc
>  %doc COPYING.LIB
>  %doc AUTHORS
>
>  %changelog
> +* Thu Sep 15 2011 Pádraig Brady <P at draigBrady.com> 1.1.6-2
> +- Split out pacemaker-cluster-libs from pacemaker-libs
> +
>  * Wed Aug 31 2011 Andrew Beekhof <andrew at beekhof.net> 1.1.6-1
>  - Update source tarball to revision: 676e5f25aa46 tip
>  - Statistics:
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>




More information about the Pacemaker mailing list