]> git.proxmox.com Git - mirror_corosync.git/blobdiff - corosync.spec.in
knet: pass correct handle to knet_handle_compress
[mirror_corosync.git] / corosync.spec.in
index 3ca75b757f7f0bfa2659fa38baab258f73762cb4..e6cb1c9a24a883edcd260882561a7a64b00d7dbe 100644 (file)
@@ -5,16 +5,16 @@
 # Conditionals
 # Invoke "rpmbuild --without <feature>" or "rpmbuild --with <feature>"
 # to disable or enable specific features
-%bcond_with testagents
 %bcond_with watchdog
 %bcond_with monitoring
 %bcond_with snmp
 %bcond_with dbus
-%bcond_with rdma
 %bcond_with systemd
-%bcond_with upstart
 %bcond_with xmlconf
+%bcond_with nozzle
+%bcond_with vqsim
 %bcond_with runautogen
+%bcond_with userflags
 
 %global gitver %{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}
 %global gittarver %{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}
@@ -24,48 +24,60 @@ Summary: The Corosync Cluster Engine and Application Programming Interfaces
 Version: @version@
 Release: 1%{?gitver}%{?dist}
 License: BSD
-Group: System Environment/Base
-URL: http://www.corosync.org/
-Source0: https://github.com/downloads/corosync/corosync/%{name}-%{version}%{?gittarver}.tar.gz
+URL: http://corosync.github.io/corosync/
+Source0: http://build.clusterlabs.org/corosync/releases/%{name}-%{version}%{?gittarver}.tar.gz
 
 # Runtime bits
-Requires: corosynclib = %{version}-%{release}
-Requires(pre): /usr/sbin/useradd
-Requires(post): /sbin/chkconfig
-Requires(preun): /sbin/chkconfig
-Conflicts: openais <= 0.89, openais-devel <= 0.89
+# The automatic dependency overridden in favor of explicit version lock
+Requires: corosynclib%{?_isa} = %{version}-%{release}
+
+# Support crypto reload
+Requires: libknet1 >= 1.18
 
 # Build bits
+BuildRequires: gcc
 
+%if 0%{?suse_version}
+BuildRequires: groff-full
+%else
 BuildRequires: groff
+%endif
 BuildRequires: libqb-devel
-BuildRequires: nss-devel
+BuildRequires: libknet1-devel >= 1.18
+BuildRequires: zlib-devel
 %if %{with runautogen}
 BuildRequires: autoconf automake libtool
 %endif
 %if %{with monitoring}
 BuildRequires: libstatgrab-devel
 %endif
-%if %{with rdma}
-BuildRequires: libibverbs-devel librdmacm-devel
-%endif
 %if %{with snmp}
 BuildRequires: net-snmp-devel
 %endif
 %if %{with dbus}
+%if 0%{?suse_version}
+BuildRequires: dbus-1-devel
+%else
 BuildRequires: dbus-devel
 %endif
+%endif
+%if %{with nozzle}
+BuildRequires: libnozzle1-devel
+%endif
 %if %{with systemd}
-BuildRequires: systemd-units
-Requires(post): systemd
-Requires(preun): systemd
-Requires(postun): systemd
+%{?systemd_requires}
+BuildRequires: systemd
+BuildRequires: systemd-devel
+%else
+Requires(post): /sbin/chkconfig
+Requires(preun): /sbin/chkconfig
 %endif
 %if %{with xmlconf}
 Requires: libxslt
 %endif
-
-BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+%if %{with vqsim}
+BuildRequires: readline-devel
+%endif
 
 %prep
 %setup -q -n %{name}-%{version}%{?gittarver}
@@ -75,16 +87,7 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 ./autogen.sh
 %endif
 
-%if %{with rdma}
-export ibverbs_CFLAGS=-I/usr/include/infiniband \
-export ibverbs_LIBS=-libverbs \
-export rdmacm_CFLAGS=-I/usr/include/rdma \
-export rdmacm_LIBS=-lrdmacm \
-%endif
 %{configure} \
-%if %{with testagents}
-       --enable-testagents \
-%endif
 %if %{with watchdog}
        --enable-watchdog \
 %endif
@@ -97,27 +100,28 @@ export rdmacm_LIBS=-lrdmacm \
 %if %{with dbus}
        --enable-dbus \
 %endif
-%if %{with rdma}
-       --enable-rdma \
-%endif
 %if %{with systemd}
        --enable-systemd \
 %endif
-%if %{with upstart}
-       --enable-upstart \
-%endif
 %if %{with xmlconf}
        --enable-xmlconf \
+%endif
+%if %{with nozzle}
+       --enable-nozzle \
+%endif
+%if %{with vqsim}
+       --enable-vqsim \
+%endif
+%if %{with userflags}
+       --enable-user-flags \
 %endif
        --with-initddir=%{_initrddir} \
        --with-systemddir=%{_unitdir} \
-       --with-upstartdir=%{_sysconfdir}/init
+       --docdir=%{_docdir}
 
 make %{_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-
 make install DESTDIR=%{buildroot}
 
 %if %{with dbus}
@@ -139,9 +143,6 @@ install -m 644 tools/corosync-notifyd.sysconfig.example \
 install -m 644 init/corosync.sysconfig.example \
    %{buildroot}%{_sysconfdir}/sysconfig/corosync
 
-%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.
@@ -167,12 +168,11 @@ fi
 
 %postun
 %if %{with systemd} && 0%{?systemd_postun:1}
-%systemd_postun
+%systemd_postun corosync.service
 %endif
 
 %files
-%defattr(-,root,root,-)
-%doc LICENSE SECURITY
+%doc LICENSE
 %{_sbindir}/corosync
 %{_sbindir}/corosync-keygen
 %{_sbindir}/corosync-cmapctl
@@ -183,7 +183,6 @@ fi
 %{_bindir}/corosync-blackbox
 %if %{with xmlconf}
 %{_bindir}/corosync-xmlproc
-%config(noreplace) %{_sysconfdir}/corosync/corosync.xml.example
 %dir %{_datadir}/corosync
 %{_datadir}/corosync/xml2conf.xsl
 %{_mandir}/man8/corosync-xmlproc.8*
@@ -192,9 +191,9 @@ fi
 %dir %{_sysconfdir}/corosync
 %dir %{_sysconfdir}/corosync/uidgid.d
 %config(noreplace) %{_sysconfdir}/corosync/corosync.conf.example
-%config(noreplace) %{_sysconfdir}/corosync/corosync.conf.example.udpu
 %config(noreplace) %{_sysconfdir}/sysconfig/corosync-notifyd
 %config(noreplace) %{_sysconfdir}/sysconfig/corosync
+%config(noreplace) %{_sysconfdir}/logrotate.d/corosync
 %if %{with dbus}
 %{_sysconfdir}/dbus-1/system.d/corosync-signals.conf
 %endif
@@ -204,20 +203,13 @@ fi
 %if %{with systemd}
 %{_unitdir}/corosync.service
 %{_unitdir}/corosync-notifyd.service
-%dir %{_datadir}/corosync
-%{_datadir}/corosync/corosync
-%{_datadir}/corosync/corosync-notifyd
 %else
 %{_initrddir}/corosync
 %{_initrddir}/corosync-notifyd
 %endif
-%if %{with upstart}
-%{_sysconfdir}/init/corosync.conf
-%{_sysconfdir}/init/corosync-notifyd.conf
-%endif
 %dir %{_localstatedir}/lib/corosync
 %dir %{_localstatedir}/log/cluster
-%{_mandir}/man8/corosync_overview.8*
+%{_mandir}/man7/corosync_overview.7*
 %{_mandir}/man8/corosync.8*
 %{_mandir}/man8/corosync-blackbox.8*
 %{_mandir}/man8/corosync-cmapctl.8*
@@ -228,49 +220,21 @@ fi
 %{_mandir}/man8/corosync-quorumtool.8*
 %{_mandir}/man5/corosync.conf.5*
 %{_mandir}/man5/votequorum.5*
-%{_mandir}/man8/cmap_keys.8*
-
-# optional testagent rpm
-#
-%if %{with testagents}
-
-%package -n corosync-testagents
-Summary: The Corosync Cluster Engine Test Agents
-Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
-
-%description -n corosync-testagents
-This package contains corosync test agents.
-
-%files -n corosync-testagents
-%defattr(755,root,root,-)
-%{_datadir}/corosync/tests/mem_leak_test.sh
-%{_datadir}/corosync/tests/net_breaker.sh
-%{_datadir}/corosync/tests/cmap-dispatch-deadlock.sh
-%{_datadir}/corosync/tests/shm_leak_audit.sh
-%{_bindir}/cpg_test_agent
-%{_bindir}/sam_test_agent
-%{_bindir}/votequorum_test_agent
-
-%endif
+%{_mandir}/man7/cmap_keys.7*
 
 # library
 #
 %package -n corosynclib
 Summary: The Corosync Cluster Engine Libraries
-Group: System Environment/Libraries
-Requires: %{name} = %{version}-%{release}
 
 %description -n corosynclib
 This package contains corosync libraries.
 
 %files -n corosynclib
-%defattr(-,root,root,-)
 %doc LICENSE
 %{_libdir}/libcfg.so.*
 %{_libdir}/libcpg.so.*
 %{_libdir}/libcmap.so.*
-%{_libdir}/libtotem_pg.so.*
 %{_libdir}/libquorum.so.*
 %{_libdir}/libvotequorum.so.*
 %{_libdir}/libsam.so.*
@@ -282,18 +246,16 @@ This package contains corosync libraries.
 
 %package -n corosynclib-devel
 Summary: The Corosync Cluster Engine Development Kit
-Group: Development/Libraries
-Requires: corosynclib = %{version}-%{release}
+Requires: corosynclib%{?_isa} = %{version}-%{release}
 Requires: pkgconfig
-Provides: corosync-devel = %{version}
-Obsoletes: corosync-devel < 0.92-7
+Provides: corosync-devel = %{version}-%{release}
+Provides: corosync-devel%{?_isa} = %{version}-%{release}
 
 %description -n corosynclib-devel
 This package contains include files and man pages used to develop using
 The Corosync Cluster Engine APIs.
 
 %files -n corosynclib-devel
-%defattr(-,root,root,-)
 %doc LICENSE
 %dir %{_includedir}/corosync/
 %{_includedir}/corosync/corodefs.h
@@ -305,14 +267,9 @@ The Corosync Cluster Engine APIs.
 %{_includedir}/corosync/sam.h
 %{_includedir}/corosync/quorum.h
 %{_includedir}/corosync/votequorum.h
-%dir %{_includedir}/corosync/totem/
-%{_includedir}/corosync/totem/totem.h
-%{_includedir}/corosync/totem/totemip.h
-%{_includedir}/corosync/totem/totempg.h
 %{_libdir}/libcfg.so
 %{_libdir}/libcpg.so
 %{_libdir}/libcmap.so
-%{_libdir}/libtotem_pg.so
 %{_libdir}/libquorum.so
 %{_libdir}/libvotequorum.so
 %{_libdir}/libsam.so
@@ -322,12 +279,26 @@ The Corosync Cluster Engine APIs.
 %{_mandir}/man3/quorum_*3*
 %{_mandir}/man3/votequorum_*3*
 %{_mandir}/man3/sam_*3*
-%{_mandir}/man8/cpg_overview.8*
-%{_mandir}/man8/votequorum_overview.8*
-%{_mandir}/man8/sam_overview.8*
 %{_mandir}/man3/cmap_*3*
-%{_mandir}/man8/cmap_overview.8*
-%{_mandir}/man8/quorum_overview.8*
+
+%if %{with vqsim}
+%package -n corosync-vqsim
+Summary: The Corosync Cluster Engine - Votequorum Simulator
+Requires: corosynclib%{?_isa} = %{version}-%{release}
+Requires: pkgconfig
+
+%description -n corosync-vqsim
+A command-line simulator for the corosync votequorum subsystem.
+It uses the same code as the corosync quorum system but forks
+them into subprocesses to simulate nodes.
+Nodes can be added and removed as well as partitioned (to simulate
+network splits)
+
+%files -n corosync-vqsim
+%doc LICENSE
+%{_bindir}/corosync-vqsim
+%{_mandir}/man8/corosync-vqsim.8*
+%endif
 
 %changelog
 * @date@ Autotools generated version <nobody@nowhere.org> - @version@-1-@numcomm@.@alphatag@.@dirty@