2010-06-29 18:10:39 +02:00
|
|
|
#
|
2010-12-02 16:10:16 +01:00
|
|
|
# spec file for package corosync (Version 1.2.7)
|
2010-06-29 18:10:39 +02:00
|
|
|
#
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
%if 0%{?sles_version} == 11
|
|
|
|
%ifnarch s390 s390x
|
|
|
|
%define buildib 1
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%define _libexecdir %{_libdir}
|
|
|
|
%endif
|
2010-12-02 16:10:24 +01:00
|
|
|
|
2010-06-29 18:10:39 +02:00
|
|
|
Name: corosync
|
|
|
|
Summary: The Corosync Cluster Engine and Application Programming Interfaces
|
2010-12-02 16:10:16 +01:00
|
|
|
Version: 1.2.7
|
2010-12-02 16:10:24 +01:00
|
|
|
Release: 1
|
2010-06-29 18:10:39 +02:00
|
|
|
License: BSD3c
|
|
|
|
Group: System Environment/Base
|
|
|
|
Url: http://www.openais.org
|
|
|
|
Source0: http://developer.osdl.org/dev/openais/downloads/%{name}-%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Patch1: corosync-confexample-timestamp.patch
|
|
|
|
Patch2: corosync-revert-cs2429.patch
|
2010-12-02 16:10:16 +01:00
|
|
|
Patch3: corosync-trunk-reset-pause-timestamp-on-events.patch
|
|
|
|
Patch4: corosync.conf.example.patch
|
2010-06-29 18:10:39 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
# Runtime bits
|
|
|
|
Requires: libcorosync4 = %{version}-%{release}
|
|
|
|
Requires(pre): /usr/sbin/useradd
|
|
|
|
Requires(post): /sbin/chkconfig
|
|
|
|
Requires(preun): /sbin/chkconfig
|
|
|
|
Conflicts: openais <= 0.89, libopenais2 <= 0.89, libopenais-devel <= 0.89
|
|
|
|
%define buildtrunk 0
|
|
|
|
%{?_with_buildtrunk: %define buildtrunk 1}
|
|
|
|
%if %{buildtrunk}
|
|
|
|
BuildRequires: autoconf automake
|
|
|
|
%endif
|
|
|
|
BuildRequires: mozilla-nss mozilla-nss-devel
|
|
|
|
%if 0%{?buildib} == 1
|
|
|
|
BuildRequires: libibverbs-devel librdmacm-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
%if %{buildtrunk}
|
|
|
|
./autogen.sh
|
|
|
|
%endif
|
|
|
|
%if 0%{?buildib} == 1
|
|
|
|
export ibverbs_CFLAGS=-I/usr/include/infiniband \
|
|
|
|
export ibverbs_LIBS=-libverbs \
|
|
|
|
export rdmacm_CFLAGS=-I/usr/include/rdma \
|
|
|
|
export rdmacm_LIBS=-lrdmacm \
|
|
|
|
%{configure} \
|
|
|
|
--enable-nss \
|
|
|
|
--enable-rdma
|
|
|
|
%else
|
|
|
|
%{configure} \
|
|
|
|
--enable-nss
|
|
|
|
%endif
|
|
|
|
make %{_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
# removed to discourage use of init.d/corosync (openais should be
|
|
|
|
# used instead)
|
|
|
|
#%if 0%{?suse_version}
|
|
|
|
#ln -sf ../../etc/init.d/corosync %{buildroot}%{_sbindir}/rccorosync
|
|
|
|
#%endif
|
|
|
|
rm -f %{buildroot}%{_initrddir}/corosync
|
|
|
|
## tree fixup
|
|
|
|
# drop static libs
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.a
|
|
|
|
# drop docs and html docs for now
|
|
|
|
rm -rf %{buildroot}%{_docdir}/*
|
|
|
|
# the docdir is /usr/share/doc/<pkg> in the configuration
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/*
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains the Corosync Cluster Engine Executive, several
|
|
|
|
default APIs and libraries, default configuration files, and an init
|
|
|
|
script.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE SECURITY
|
|
|
|
%{_sbindir}/corosync
|
|
|
|
%{_sbindir}/corosync-keygen
|
|
|
|
%{_sbindir}/corosync-objctl
|
|
|
|
%{_sbindir}/corosync-cfgtool
|
|
|
|
%{_sbindir}/corosync-fplay
|
|
|
|
%{_sbindir}/corosync-pload
|
|
|
|
%{_sbindir}/corosync-cpgtool
|
|
|
|
%{_sbindir}/corosync-quorumtool
|
|
|
|
%dir %{_sysconfdir}/corosync
|
|
|
|
%dir %{_sysconfdir}/corosync/uidgid.d
|
|
|
|
%dir %{_sysconfdir}/corosync/service.d
|
|
|
|
%config(noreplace) %{_sysconfdir}/corosync/corosync.conf.example
|
|
|
|
%dir %{_libexecdir}/lcrso
|
|
|
|
%{_libexecdir}/lcrso/coroparse.lcrso
|
|
|
|
%{_libexecdir}/lcrso/objdb.lcrso
|
|
|
|
%{_libexecdir}/lcrso/service_cfg.lcrso
|
|
|
|
%{_libexecdir}/lcrso/service_cpg.lcrso
|
|
|
|
%{_libexecdir}/lcrso/service_evs.lcrso
|
|
|
|
%{_libexecdir}/lcrso/service_confdb.lcrso
|
|
|
|
%{_libexecdir}/lcrso/service_pload.lcrso
|
|
|
|
%{_libexecdir}/lcrso/quorum_votequorum.lcrso
|
|
|
|
%{_libexecdir}/lcrso/quorum_testquorum.lcrso
|
|
|
|
%{_libexecdir}/lcrso/vsf_quorum.lcrso
|
|
|
|
%{_libexecdir}/lcrso/vsf_ykd.lcrso
|
|
|
|
%dir %{_localstatedir}/lib/corosync
|
2010-12-02 16:10:16 +01:00
|
|
|
%dir %{_localstatedir}/log/cluster
|
2010-06-29 18:10:39 +02:00
|
|
|
%{_mandir}/man8/corosync_overview.8*
|
2010-12-02 16:10:16 +01:00
|
|
|
%{_mandir}/man8/corosync.8*
|
|
|
|
%{_mandir}/man8/corosync-blackbox.8*
|
2010-06-29 18:10:39 +02:00
|
|
|
%{_mandir}/man8/corosync-objctl.8*
|
2010-12-02 16:10:16 +01:00
|
|
|
%{_mandir}/man8/corosync-keygen.8*
|
|
|
|
%{_mandir}/man8/corosync-cfgtool.8*
|
|
|
|
%{_mandir}/man8/corosync-cpgtool.8*
|
|
|
|
%{_mandir}/man8/corosync-fplay.8*
|
|
|
|
%{_mandir}/man8/corosync-pload.8*
|
|
|
|
%{_mandir}/man8/corosync-quorumtool.8*
|
2010-06-29 18:10:39 +02:00
|
|
|
%{_mandir}/man5/corosync.conf.5*
|
|
|
|
|
|
|
|
%package -n libcorosync4
|
|
|
|
License: BSD3c
|
|
|
|
Summary: The Corosync Cluster Engine Libraries
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Conflicts: corosync < 0.92-7
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n libcorosync4
|
|
|
|
This package contains corosync libraries.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n libcorosync4
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE
|
|
|
|
%{_libdir}/libcfg.so.*
|
|
|
|
%{_libdir}/libcpg.so.*
|
|
|
|
%{_libdir}/libconfdb.so.*
|
|
|
|
%{_libdir}/libevs.so.*
|
|
|
|
%{_libdir}/libtotem_pg.so.*
|
|
|
|
%{_libdir}/liblogsys.so.*
|
|
|
|
%{_libdir}/libcoroipcc.so.*
|
|
|
|
%{_libdir}/libcoroipcs.so.*
|
|
|
|
%{_libdir}/libquorum.so.*
|
|
|
|
%{_libdir}/libvotequorum.so.*
|
|
|
|
%{_libdir}/libpload.so.*
|
|
|
|
%{_libdir}/libsam.so.*
|
|
|
|
|
|
|
|
%post -n libcorosync4 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libcorosync4 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%package -n libcorosync-devel
|
|
|
|
License: BSD3c
|
|
|
|
Summary: The Corosync Cluster Engine Development Kit
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: libcorosync4 = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description -n libcorosync-devel
|
|
|
|
This package contains include files and man pages used to develop using
|
|
|
|
The Corosync Cluster Engine APIs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n libcorosync-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE README.devmap
|
|
|
|
%dir %{_includedir}/corosync/
|
|
|
|
%{_includedir}/corosync/cs_config.h
|
|
|
|
%{_includedir}/corosync/corodefs.h
|
|
|
|
%{_includedir}/corosync/coroipc_types.h
|
|
|
|
%{_includedir}/corosync/coroipcs.h
|
|
|
|
%{_includedir}/corosync/coroipcc.h
|
|
|
|
%{_includedir}/corosync/cfg.h
|
|
|
|
%{_includedir}/corosync/confdb.h
|
|
|
|
%{_includedir}/corosync/corotypes.h
|
|
|
|
%{_includedir}/corosync/cpg.h
|
|
|
|
%{_includedir}/corosync/evs.h
|
|
|
|
%{_includedir}/corosync/hdb.h
|
|
|
|
%{_includedir}/corosync/list.h
|
|
|
|
%{_includedir}/corosync/mar_gen.h
|
|
|
|
%{_includedir}/corosync/sam.h
|
|
|
|
%{_includedir}/corosync/swab.h
|
|
|
|
%{_includedir}/corosync/quorum.h
|
|
|
|
%{_includedir}/corosync/votequorum.h
|
|
|
|
%dir %{_includedir}/corosync/totem/
|
|
|
|
%{_includedir}/corosync/totem/coropoll.h
|
|
|
|
%{_includedir}/corosync/totem/totem.h
|
|
|
|
%{_includedir}/corosync/totem/totemip.h
|
|
|
|
%{_includedir}/corosync/totem/totempg.h
|
|
|
|
%dir %{_includedir}/corosync/lcr/
|
|
|
|
%{_includedir}/corosync/lcr/lcr_ckpt.h
|
|
|
|
%{_includedir}/corosync/lcr/lcr_comp.h
|
|
|
|
%{_includedir}/corosync/lcr/lcr_ifact.h
|
|
|
|
%dir %{_includedir}/corosync/engine
|
|
|
|
%{_includedir}/corosync/engine/config.h
|
|
|
|
%{_includedir}/corosync/engine/coroapi.h
|
|
|
|
%{_includedir}/corosync/engine/logsys.h
|
|
|
|
%{_includedir}/corosync/engine/objdb.h
|
|
|
|
%{_includedir}/corosync/engine/quorum.h
|
|
|
|
%{_libdir}/libcfg.so
|
|
|
|
%{_libdir}/libcpg.so
|
|
|
|
%{_libdir}/libconfdb.so
|
|
|
|
%{_libdir}/libevs.so
|
|
|
|
%{_libdir}/libtotem_pg.so
|
|
|
|
%{_libdir}/liblogsys.so
|
|
|
|
%{_libdir}/libcoroipcc.so
|
|
|
|
%{_libdir}/libcoroipcs.so
|
|
|
|
%{_libdir}/libquorum.so
|
|
|
|
%{_libdir}/libvotequorum.so
|
|
|
|
%{_libdir}/libpload.so
|
|
|
|
%{_libdir}/libsam.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%{_mandir}/man3/cpg_*3*
|
|
|
|
%{_mandir}/man3/evs_*3*
|
|
|
|
%{_mandir}/man3/confdb_*3*
|
|
|
|
%{_mandir}/man3/votequorum_*3*
|
|
|
|
%{_mandir}/man3/sam_*3*
|
|
|
|
%{_mandir}/man8/cpg_overview.8*
|
|
|
|
%{_mandir}/man8/evs_overview.8*
|
|
|
|
%{_mandir}/man8/confdb_overview.8*
|
|
|
|
%{_mandir}/man8/logsys_overview.8*
|
|
|
|
%{_mandir}/man8/votequorum_overview.8*
|
|
|
|
%{_mandir}/man8/coroipc_overview.8*
|
|
|
|
%{_mandir}/man8/sam_overview.8*
|
|
|
|
|
|
|
|
%changelog
|