%bcond_without qnetd # Quorum Net Daemon support
%bcond_without xmlconf # XML configuration support
%bcond_without libcgroup # libcgroup support
+%bcond_without static_libs # static libraries
#
Summary: Corosync - OSI Certified implementation of a complete cluster engine
Summary(pl.UTF-8): Corosync - implementacja silnika klastrowego certyfikowana przez OSI
Name: corosync
-Version: 2.4.5
-Release: 4
+Version: 2.4.6
+Release: 1
License: BSD
Group: Base
#Source0Download: http://corosync.org/download/
Source0: https://build.clusterlabs.org/corosync/releases/%{name}-%{version}.tar.gz
-# Source0-md5: e36a056b893c313c4ec1fe0d7e6cdebd
+# Source0-md5: 7f9d111c53b760cedd5e3bbcdf93f133
Source1: %{name}.init
Source2: %{name}-notifyd.init
Source3: %{name}-notifyd.sysconfig
%{?with_libcgroup:BuildRequires: libcgroup-devel}
BuildRequires: libqb-devel
%if %{with rdma}
-BuildRequires: libibverbs-devel
-BuildRequires: librdmacm-devel
+BuildRequires: libibverbs-devel >= 20
+BuildRequires: librdmacm-devel >= 20
%endif
%{?with_monitoring:BuildRequires: libstatgrab-devel >= 0.90}
BuildRequires: libtool >= 2:2.2.6
%{__automake}
%configure \
BASHPATH=/bin/bash \
+ %{__enable_disable static_libs static} \
%{?with_augeas:--enable-augeas} \
%{?with_dbus:--enable-dbus} \
%{?with_libcgroup:--enable-libcgroup} \
%{_mandir}/man3/sam_*.3*
%{_mandir}/man3/votequorum_*.3*
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libcfg.a
%{_libdir}/libquorum.a
%{_libdir}/libtotem_pg.a
%{_libdir}/libvotequorum.a
+%endif
%if %{with testagents}
%files testagents