X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcorosync.git;a=blobdiff_plain;f=corosync.spec;h=f0ea567ac764800ce2c6a8d84989e153cdbab168;hp=c7ad522f026f615112a8d4c10f1844d198bede45;hb=HEAD;hpb=ffbc065f266be394ba0c2340bbb402193ee08ab8 diff --git a/corosync.spec b/corosync.spec index c7ad522..39a140d 100644 --- a/corosync.spec +++ b/corosync.spec @@ -8,39 +8,46 @@ %bcond_without testagents # test agents build %bcond_without watchdog # watchdog support %bcond_without monitoring # resource monitoring -%bcond_with qdevices # Quorum devices support [NOP as of 2.3.1] +%bcond_without qdevices # Quorum devices support +%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.3.4 -Release: 3 +Version: 2.4.6 +Release: 1 License: BSD Group: Base -Source0: http://corosync.org/download/%{name}-%{version}.tar.gz -# Source0-md5: 4b0f36a1dc014527e5b192265dbd7e70 +#Source0Download: http://corosync.org/download/ +Source0: https://build.clusterlabs.org/corosync/releases/%{name}-%{version}.tar.gz +# Source0-md5: 7f9d111c53b760cedd5e3bbcdf93f133 Source1: %{name}.init Source2: %{name}-notifyd.init Source3: %{name}-notifyd.sysconfig -URL: http://www.corosync.org/ +URL: https://www.corosync.org/ BuildRequires: autoconf >= 2.61 -BuildRequires: automake +BuildRequires: automake >= 1:1.11 %{?with_dbus:BuildRequires: dbus-devel} %{?with_apidocs:BuildRequires: doxygen} %{?with_apidocs:BuildRequires: graphviz} BuildRequires: groff +%{?with_libcgroup:BuildRequires: libcgroup-devel} BuildRequires: libqb-devel -%{?with_monitoring:BuildRequires: libstatgrab-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 %{?with_snmp:BuildRequires: net-snmp-devel} BuildRequires: nss-devel BuildRequires: pkgconfig BuildRequires: rpmbuild(macros) >= 1.644 +# only for cpghum test program +#BuildRequires: zlib-devel %{?with_xmlconf:Requires: libxslt-progs} Requires: rc-scripts Requires: systemd-units >= 38 @@ -126,6 +133,9 @@ Dane SNMP MIB dla Corosync. %prep %setup -q +# force regeneration with proper BASHPATH +%{__rm} cts/agents/{cmap-dispatch-deadlock,shm_leak_audit}.sh + %build %{__libtoolize} %{__aclocal} @@ -133,10 +143,14 @@ Dane SNMP MIB dla Corosync. %{__autoheader} %{__automake} %configure \ + BASHPATH=/bin/bash \ + %{__enable_disable static_libs static} \ %{?with_augeas:--enable-augeas} \ %{?with_dbus:--enable-dbus} \ + %{?with_libcgroup:--enable-libcgroup} \ %{?with_monitoring:--enable-monitoring} \ %{?with_qdevices:--enable-qdevices} \ + %{?with_qnetd:--enable-qnetd} \ %{?with_rdma:--enable-rdma} \ --disable-silent-rules \ %{?with_snmp:--enable-snmp} \ @@ -170,6 +184,18 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-notifyd install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-notifyd +%if %{with qdevices} || %{with qnetd} +install -d $RPM_BUILD_ROOT%{systemdtmpfilesdir} +cat >$RPM_BUILD_ROOT%{systemdtmpfilesdir}/corosync.conf <