New upstream release

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
This commit is contained in:
Jan Friesse 2018-03-22 09:03:07 +01:00
parent 24004b75d8
commit 84a9972771
3 changed files with 19 additions and 238 deletions

1
.gitignore vendored
View File

@ -31,3 +31,4 @@ corosync-1.2.7.tar.gz
/corosync-2.4.1.tar.gz /corosync-2.4.1.tar.gz
/corosync-2.4.2.tar.gz /corosync-2.4.2.tar.gz
/corosync-2.4.3.tar.gz /corosync-2.4.3.tar.gz
/corosync-2.99.1.tar.gz

View File

@ -6,16 +6,9 @@
%bcond_with monitoring %bcond_with monitoring
%bcond_without snmp %bcond_without snmp
%bcond_without dbus %bcond_without dbus
# no InfiniBand stack on s390(x) and 32-bit ARM
%ifnarch s390 s390x %{arm}
%bcond_without rdma
%endif
%bcond_without systemd %bcond_without systemd
%bcond_with upstart
%bcond_without xmlconf %bcond_without xmlconf
%bcond_without runautogen %bcond_without runautogen
%bcond_without qdevices
%bcond_without qnetd
%bcond_without libcgroup %bcond_without libcgroup
%global gitver %{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}} %global gitver %{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}
@ -23,31 +16,22 @@
Name: corosync Name: corosync
Summary: The Corosync Cluster Engine and Application Programming Interfaces Summary: The Corosync Cluster Engine and Application Programming Interfaces
Version: 2.4.3 Version: 2.99.1
Release: 3%{?gitver}%{?dist} Release: 1%{?gitver}%{?dist}
License: BSD License: BSD
Group: System Environment/Base
URL: http://corosync.github.io/corosync/ URL: http://corosync.github.io/corosync/
Source0: http://build.clusterlabs.org/corosync/releases/%{name}-%{version}%{?gittarver}.tar.gz Source0: http://build.clusterlabs.org/corosync/releases/%{name}-%{version}%{?gittarver}.tar.gz
%if 0%{?rhel} && 0%{?rhel} <= 7
ExclusiveArch: i686 x86_64
%endif
# Runtime bits # Runtime bits
# The automatic dependency overridden in favor of explicit version lock # The automatic dependency overridden in favor of explicit version lock
Requires: corosynclib%{?_isa} = %{version}-%{release} Requires: corosynclib%{?_isa} = %{version}-%{release}
Requires(pre): /usr/sbin/useradd
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Obsoletes: openais, openais-devel, openaislib, openaislib-devel
Obsoletes: cman, clusterlib, clusterlib-devel
# Build bits # Build bits
BuildRequires: groff BuildRequires: groff
BuildRequires: libqb-devel >= 0.14.2 BuildRequires: libqb-devel
BuildRequires: nss-devel BuildRequires: nss-devel
BuildRequires: libknet1-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
%if %{with runautogen} %if %{with runautogen}
BuildRequires: autoconf automake libtool BuildRequires: autoconf automake libtool
@ -55,9 +39,6 @@ BuildRequires: autoconf automake libtool
%if %{with monitoring} %if %{with monitoring}
BuildRequires: libstatgrab-devel BuildRequires: libstatgrab-devel
%endif %endif
%if %{with rdma}
BuildRequires: libibverbs-devel librdmacm-devel
%endif
%if %{with snmp} %if %{with snmp}
BuildRequires: net-snmp-devel BuildRequires: net-snmp-devel
%endif %endif
@ -65,25 +46,20 @@ BuildRequires: net-snmp-devel
BuildRequires: dbus-devel BuildRequires: dbus-devel
%endif %endif
%if %{with systemd} %if %{with systemd}
BuildRequires: systemd-units %{?systemd_requires}
Requires(post): systemd BuildRequires: systemd
Requires(preun): systemd BuildRequires: systemd-devel
Requires(postun): systemd %else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
%endif %endif
%if %{with xmlconf} %if %{with xmlconf}
Requires: libxslt Requires: libxslt
%endif %endif
%if %{with qdevices} || %{with qnetd}
Requires: nss-tools
%endif
%if %{with qnetd}
BuildRequires: sed
%endif
%if %{with libcgroup} %if %{with libcgroup}
BuildRequires: libcgroup-devel BuildRequires: libcgroup-devel
%endif %endif
%prep %prep
%setup -q -n %{name}-%{version}%{?gittarver} %setup -q -n %{name}-%{version}%{?gittarver}
@ -92,12 +68,6 @@ BuildRequires: libcgroup-devel
./autogen.sh ./autogen.sh
%endif %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} \ %{configure} \
%if %{with testagents} %if %{with testagents}
--enable-testagents \ --enable-testagents \
@ -114,37 +84,22 @@ export rdmacm_LIBS=-lrdmacm \
%if %{with dbus} %if %{with dbus}
--enable-dbus \ --enable-dbus \
%endif %endif
%if %{with rdma}
--enable-rdma \
%endif
%if %{with systemd} %if %{with systemd}
--enable-systemd \ --enable-systemd \
%endif %endif
%if %{with upstart}
--enable-upstart \
%endif
%if %{with xmlconf} %if %{with xmlconf}
--enable-xmlconf \ --enable-xmlconf \
%endif %endif
%if %{with qdevices}
--enable-qdevices \
%endif
%if %{with qnetd}
--enable-qnetd \
%endif
%if %{with libcgroup} %if %{with libcgroup}
--enable-libcgroup \ --enable-libcgroup \
%endif %endif
--with-initddir=%{_initrddir} \ --with-initddir=%{_initrddir} \
--with-systemddir=%{_unitdir} \ --with-systemddir=%{_unitdir} \
--with-upstartdir=%{_sysconfdir}/init \ --docdir=%{_docdir}
--with-tmpfilesdir=%{_tmpfilesdir}
make %{_smp_mflags} make %{_smp_mflags}
%install %install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} make install DESTDIR=%{buildroot}
%if %{with dbus} %if %{with dbus}
@ -166,27 +121,6 @@ install -m 644 tools/corosync-notifyd.sysconfig.example \
install -m 644 init/corosync.sysconfig.example \ install -m 644 init/corosync.sysconfig.example \
%{buildroot}%{_sysconfdir}/sysconfig/corosync %{buildroot}%{_sysconfdir}/sysconfig/corosync
%if %{with qdevices}
# /etc/sysconfig/corosync-qdevice
install -m 644 init/corosync-qdevice.sysconfig.example \
%{buildroot}%{_sysconfdir}/sysconfig/corosync-qdevice
%endif
%if %{with qnetd}
# /etc/sysconfig/corosync-qnetd
install -m 644 init/corosync-qnetd.sysconfig.example \
%{buildroot}%{_sysconfdir}/sysconfig/corosync-qnetd
%if %{with systemd}
sed -i -e 's/^#User=/User=/' \
%{buildroot}%{_unitdir}/corosync-qnetd.service
sed -i -e 's/root/coroqnetd/g' \
%{buildroot}%{_tmpfilesdir}/corosync-qnetd.conf
%else
sed -i -e 's/^COROSYNC_QNETD_RUNAS=""$/COROSYNC_QNETD_RUNAS="coroqnetd"/' \
%{buildroot}%{_sysconfdir}/sysconfig/corosync-qnetd
%endif
%endif
%description %description
This package contains the Corosync Cluster Engine Executive, several default This package contains the Corosync Cluster Engine Executive, several default
APIs and libraries, default configuration files, and an init script. APIs and libraries, default configuration files, and an init script.
@ -212,11 +146,10 @@ fi
%postun %postun
%if %{with systemd} && 0%{?systemd_postun:1} %if %{with systemd} && 0%{?systemd_postun:1}
%systemd_postun %systemd_postun corosync.service
%endif %endif
%files %files
%defattr(-,root,root,-)
%doc LICENSE SECURITY %doc LICENSE SECURITY
%{_sbindir}/corosync %{_sbindir}/corosync
%{_sbindir}/corosync-keygen %{_sbindir}/corosync-keygen
@ -250,20 +183,13 @@ fi
%if %{with systemd} %if %{with systemd}
%{_unitdir}/corosync.service %{_unitdir}/corosync.service
%{_unitdir}/corosync-notifyd.service %{_unitdir}/corosync-notifyd.service
%dir %{_datadir}/corosync
%{_datadir}/corosync/corosync
%{_datadir}/corosync/corosync-notifyd
%else %else
%{_initrddir}/corosync %{_initrddir}/corosync
%{_initrddir}/corosync-notifyd %{_initrddir}/corosync-notifyd
%endif %endif
%if %{with upstart}
%{_sysconfdir}/init/corosync.conf
%{_sysconfdir}/init/corosync-notifyd.conf
%endif
%dir %{_localstatedir}/lib/corosync %dir %{_localstatedir}/lib/corosync
%dir %{_localstatedir}/log/cluster %dir %{_localstatedir}/log/cluster
%{_mandir}/man8/corosync_overview.8* %{_mandir}/man7/corosync_overview.7*
%{_mandir}/man8/corosync.8* %{_mandir}/man8/corosync.8*
%{_mandir}/man8/corosync-blackbox.8* %{_mandir}/man8/corosync-blackbox.8*
%{_mandir}/man8/corosync-cmapctl.8* %{_mandir}/man8/corosync-cmapctl.8*
@ -282,9 +208,7 @@ fi
%package -n corosync-testagents %package -n corosync-testagents
Summary: The Corosync Cluster Engine Test Agents Summary: The Corosync Cluster Engine Test Agents
Group: Development/Libraries
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires: libqb >= 0.14.2
%description -n corosync-testagents %description -n corosync-testagents
This package contains corosync test agents. This package contains corosync test agents.
@ -305,13 +229,11 @@ This package contains corosync test agents.
# #
%package -n corosynclib %package -n corosynclib
Summary: The Corosync Cluster Engine Libraries Summary: The Corosync Cluster Engine Libraries
Group: System Environment/Libraries
%description -n corosynclib %description -n corosynclib
This package contains corosync libraries. This package contains corosync libraries.
%files -n corosynclib %files -n corosynclib
%defattr(-,root,root,-)
%doc LICENSE %doc LICENSE
%{_libdir}/libcfg.so.* %{_libdir}/libcfg.so.*
%{_libdir}/libcpg.so.* %{_libdir}/libcpg.so.*
@ -328,18 +250,15 @@ This package contains corosync libraries.
%package -n corosynclib-devel %package -n corosynclib-devel
Summary: The Corosync Cluster Engine Development Kit Summary: The Corosync Cluster Engine Development Kit
Group: Development/Libraries
Requires: corosynclib%{?_isa} = %{version}-%{release} Requires: corosynclib%{?_isa} = %{version}-%{release}
Requires: pkgconfig Requires: pkgconfig
Provides: corosync-devel = %{version} Provides: corosync-devel = %{version}
Obsoletes: corosync-devel < 0.92-7
%description -n corosynclib-devel %description -n corosynclib-devel
This package contains include files and man pages used to develop using This package contains include files and man pages used to develop using
The Corosync Cluster Engine APIs. The Corosync Cluster Engine APIs.
%files -n corosynclib-devel %files -n corosynclib-devel
%defattr(-,root,root,-)
%doc LICENSE %doc LICENSE
%dir %{_includedir}/corosync/ %dir %{_includedir}/corosync/
%{_includedir}/corosync/corodefs.h %{_includedir}/corosync/corodefs.h
@ -355,6 +274,7 @@ The Corosync Cluster Engine APIs.
%{_includedir}/corosync/totem/totem.h %{_includedir}/corosync/totem/totem.h
%{_includedir}/corosync/totem/totemip.h %{_includedir}/corosync/totem/totemip.h
%{_includedir}/corosync/totem/totempg.h %{_includedir}/corosync/totem/totempg.h
%{_includedir}/corosync/totem/totemstats.h
%{_libdir}/libcfg.so %{_libdir}/libcfg.so
%{_libdir}/libcpg.so %{_libdir}/libcpg.so
%{_libdir}/libcmap.so %{_libdir}/libcmap.so
@ -368,152 +288,12 @@ The Corosync Cluster Engine APIs.
%{_mandir}/man3/quorum_*3* %{_mandir}/man3/quorum_*3*
%{_mandir}/man3/votequorum_*3* %{_mandir}/man3/votequorum_*3*
%{_mandir}/man3/sam_*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}/man3/cmap_*3*
%{_mandir}/man8/cmap_overview.8*
%{_mandir}/man8/quorum_overview.8*
# optional qdevices
#
%if %{with qdevices}
%package -n corosync-qdevice
Summary: The Corosync Cluster Engine Qdevice
Group: System Environment/Base
Requires: %{name} = %{version}-%{release}
# The automatic dependency overridden in favor of explicit version lock
Requires: corosynclib%{?_isa} = %{version}-%{release}
Requires: nss-tools
%if %{with systemd}
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%endif
%description -n corosync-qdevice
This package contains the Corosync Cluster Engine Qdevice, script for creating
NSS certificates and an init script.
%post -n corosync-qdevice
%if %{with systemd} && 0%{?systemd_post:1}
%systemd_post corosync-qdevice.service
%else
if [ $1 -eq 1 ]; then
/sbin/chkconfig --add corosync-qdevice || :
fi
%endif
%preun -n corosync-qdevice
%if %{with systemd} && 0%{?systemd_preun:1}
%systemd_preun corosync-qdevice.service
%else
if [ $1 -eq 0 ]; then
/sbin/service corosync-qdevice stop &>/dev/null || :
/sbin/chkconfig --del corosync-qdevice || :
fi
%endif
%postun -n corosync-qdevice
%if %{with systemd} && 0%{?systemd_postun:1}
%systemd_postun
%endif
%files -n corosync-qdevice
%defattr(-,root,root,-)
%dir %{_sysconfdir}/corosync/qdevice
%dir %config(noreplace) %{_sysconfdir}/corosync/qdevice/net
%dir %{_localstatedir}/run/corosync-qdevice
%{_sbindir}/corosync-qdevice
%{_sbindir}/corosync-qdevice-net-certutil
%{_sbindir}/corosync-qdevice-tool
%config(noreplace) %{_sysconfdir}/sysconfig/corosync-qdevice
%if %{with systemd}
%{_unitdir}/corosync-qdevice.service
%dir %{_datadir}/corosync
%{_datadir}/corosync/corosync-qdevice
%else
%{_initrddir}/corosync-qdevice
%endif
%{_mandir}/man8/corosync-qdevice-tool.8*
%{_mandir}/man8/corosync-qdevice-net-certutil.8*
%{_mandir}/man8/corosync-qdevice.8*
%endif
# optional qnetd
#
%if %{with qnetd}
%package -n corosync-qnetd
Summary: The Corosync Cluster Engine Qdevice Network Daemon
Group: System Environment/Base
Requires: nss-tools
Requires(pre): shadow-utils
%if %{with systemd}
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%endif
%description -n corosync-qnetd
This package contains the Corosync Cluster Engine Qdevice Network Daemon, script for creating
NSS certificates and an init script.
%pre -n corosync-qnetd
getent group coroqnetd >/dev/null || groupadd -r coroqnetd
getent passwd coroqnetd >/dev/null || \
useradd -r -g coroqnetd -d / -s /sbin/nologin -c "User for corosync-qnetd" coroqnetd
exit 0
%post -n corosync-qnetd
%if %{with systemd} && 0%{?systemd_post:1}
%systemd_post corosync-qnetd.service
%else
if [ $1 -eq 1 ]; then
/sbin/chkconfig --add corosync-qnetd || :
fi
%endif
%preun -n corosync-qnetd
%if %{with systemd} && 0%{?systemd_preun:1}
%systemd_preun corosync-qnetd.service
%else
if [ $1 -eq 0 ]; then
/sbin/service corosync-qnetd stop &>/dev/null || :
/sbin/chkconfig --del corosync-qnetd || :
fi
%endif
%postun -n corosync-qnetd
%if %{with systemd} && 0%{?systemd_postun:1}
%systemd_postun
%endif
%files -n corosync-qnetd
%defattr(-,root,root,-)
%dir %config(noreplace) %attr(770, coroqnetd, coroqnetd) %{_sysconfdir}/corosync/qnetd
%dir %attr(770, coroqnetd, coroqnetd) %{_localstatedir}/run/corosync-qnetd
%{_bindir}/corosync-qnetd
%{_bindir}/corosync-qnetd-certutil
%{_bindir}/corosync-qnetd-tool
%config(noreplace) %{_sysconfdir}/sysconfig/corosync-qnetd
%if %{with systemd}
%{_unitdir}/corosync-qnetd.service
%dir %{_datadir}/corosync
%{_datadir}/corosync/corosync-qnetd
%{_tmpfilesdir}/corosync-qnetd.conf
%else
%{_initrddir}/corosync-qnetd
%endif
%{_mandir}/man8/corosync-qnetd-tool.8*
%{_mandir}/man8/corosync-qnetd-certutil.8*
%{_mandir}/man8/corosync-qnetd.8*
%endif
%changelog %changelog
* Fri Mar 16 2018 Jan Friesse <jfriesse@redhat.com> - 2.99.1-1
- New upstream release
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.3-3 * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (corosync-2.4.3.tar.gz) = 3e07da606c7004846739ab9b3446a75e5026158f731e68c671716ead7c370f9d7d97bd3ace94bc3cc52144b39da96dc3cb1882fca743ac4a771b911415b3d5b2 SHA512 (corosync-2.99.1.tar.gz) = 67ac34e7ace93efeefd60a06f6ba320b55f122308a00279f7273beb9b5798694015356f060ba3155f8dede1627adf2006aa2c2c4cbf48090feb1b51152155ef3