]> git.pld-linux.org Git - packages/corosync.git/blobdiff - corosync.spec
add static_libs bcond
[packages/corosync.git] / corosync.spec
index 454874912c80951c03ab6fff48043fed428e0610..39a140df170de5df15f53c29a5b37b2666a31aa4 100644 (file)
 %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
@@ -36,8 +37,8 @@ BuildRequires:        groff
 %{?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
@@ -143,6 +144,7 @@ Dane SNMP MIB dla Corosync.
 %{__automake}
 %configure \
        BASHPATH=/bin/bash \
+       %{__enable_disable static_libs static} \
        %{?with_augeas:--enable-augeas} \
        %{?with_dbus:--enable-dbus} \
        %{?with_libcgroup:--enable-libcgroup} \
@@ -360,6 +362,7 @@ fi
 %{_mandir}/man3/sam_*.3*
 %{_mandir}/man3/votequorum_*.3*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libcfg.a
@@ -370,6 +373,7 @@ fi
 %{_libdir}/libquorum.a
 %{_libdir}/libtotem_pg.a
 %{_libdir}/libvotequorum.a
+%endif
 
 %if %{with testagents}
 %files testagents
This page took 0.054259 seconds and 4 git commands to generate.