%bcond_without servicelog # ServiceLog support [IBM PPC specific]
%bcond_without ipmi # IPMI ServiceLog support [IBM PPC specific]
%bcond_without doc # documentation
+%bcond_without static_libs # static libraries
#
%ifnarch ppc ppc64
%undefine with_servicelog
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Pacemaker makes use of your cluster infrastructure (either
+Pacemaker makes use of your cluster infrastructure (either
Corosync/OpenAIS or Heartbeat) to stop, start and monitor the health
of the services (aka. resources) you want the cluster to provide.
%configure \
--disable-fatal-warnings \
--disable-silent-rules \
+ %{__enable_disable static_libs static} \
--enable-systemd \
--disable-upstart \
--with-acl \
%{_pkgconfigdir}/pacemaker-pengine.pc
%{_pkgconfigdir}/pacemaker-service.pc
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libcib.a
%{_libdir}/libpengine.a
%{_libdir}/libstonithd.a
%{_libdir}/libtransitioner.a
+%endif
%files remote
%defattr(644,root,root,755)