|
|
@ -1,5 +1,5 @@
|
|
|
|
Name: galera
|
|
|
|
Name: galera
|
|
|
|
Version: 25.3.37
|
|
|
|
Version: 26.4.11
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Synchronous multi-master wsrep provider (replication engine)
|
|
|
|
Summary: Synchronous multi-master wsrep provider (replication engine)
|
|
|
|
|
|
|
|
|
|
|
@ -8,7 +8,7 @@ URL: http://galeracluster.com/
|
|
|
|
|
|
|
|
|
|
|
|
# Actually, the truth is, we do use galera source tarball provided by MariaDB on
|
|
|
|
# Actually, the truth is, we do use galera source tarball provided by MariaDB on
|
|
|
|
# following URL (without macros):
|
|
|
|
# following URL (without macros):
|
|
|
|
# https://archive.mariadb.org/mariadb-10.3.32/galera-25.3.34/src/galera-25.3.34.tar.gz
|
|
|
|
# https://archive.mariadb.org/mariadb-10.4.16/galera-26.4.6/src/galera-26.4.6.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
Source0: http://releases.galeracluster.com/source/%{name}-%{version}.tar.gz
|
|
|
|
Source0: http://releases.galeracluster.com/source/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
@ -16,35 +16,31 @@ Source1: garbd.service
|
|
|
|
Source2: garbd-wrapper
|
|
|
|
Source2: garbd-wrapper
|
|
|
|
|
|
|
|
|
|
|
|
Patch0: cmake_paths.patch
|
|
|
|
Patch0: cmake_paths.patch
|
|
|
|
Patch1: galera-va_end.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: boost-devel check-devel openssl-devel cmake systemd gcc-c++ asio-devel
|
|
|
|
BuildRequires: boost-devel check-devel openssl-devel cmake systemd gcc-c++ asio-devel
|
|
|
|
Requires(pre): /usr/sbin/useradd
|
|
|
|
Requires(pre): /usr/sbin/useradd
|
|
|
|
Requires: nmap-ncat
|
|
|
|
Requires: nmap-ncat
|
|
|
|
Requires: procps-ng
|
|
|
|
Requires: procps-ng
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?systemd_requires}
|
|
|
|
Requires(post): systemd
|
|
|
|
|
|
|
|
Requires(preun): systemd
|
|
|
|
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Galera is a fast synchronous multi-master wsrep provider (replication engine)
|
|
|
|
Galera is a fast synchronous multimaster wsrep provider (replication engine)
|
|
|
|
for transactional databases and similar applications. For more information
|
|
|
|
for transactional databases and similar applications. For more information
|
|
|
|
about wsrep API see http://launchpad.net/wsrep. For a description of Galera
|
|
|
|
about wsrep API see https://github.com/codership/wsrep-API repository. For a
|
|
|
|
replication engine see http://www.codership.com.
|
|
|
|
description of Galera replication engine see https://www.galeracluster.com web.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%{set_build_flags}
|
|
|
|
%{set_build_flags}
|
|
|
|
|
|
|
|
|
|
|
|
%cmake . \
|
|
|
|
|
|
|
|
|
|
|
|
%cmake \
|
|
|
|
-DCMAKE_BUILD_TYPE="%{?with_debug:Debug}%{!?with_debug:RelWithDebInfo}" \
|
|
|
|
-DCMAKE_BUILD_TYPE="%{?with_debug:Debug}%{!?with_debug:RelWithDebInfo}" \
|
|
|
|
-DINSTALL_LAYOUT=RPM \
|
|
|
|
-DINSTALL_LAYOUT=RPM \
|
|
|
|
-DCMAKE_RULE_MESSAGES:BOOL=OFF \
|
|
|
|
-DCMAKE_RULE_MESSAGES:BOOL=OFF \
|
|
|
@ -53,9 +49,9 @@ replication engine see http://www.codership.com.
|
|
|
|
\
|
|
|
|
\
|
|
|
|
-DINSTALL_DOCDIR="share/doc/%{name}/" \
|
|
|
|
-DINSTALL_DOCDIR="share/doc/%{name}/" \
|
|
|
|
-DINSTALL_GARBD="sbin" \
|
|
|
|
-DINSTALL_GARBD="sbin" \
|
|
|
|
-DINSTALL_GARBD-SYSTEMD="share/doc/galera" \
|
|
|
|
-DINSTALL_GARBD-SYSTEMD="sbin" \
|
|
|
|
-DINSTALL_CONFIGURATION="/etc/sysconfig/" \
|
|
|
|
-DINSTALL_CONFIGURATION="/etc/sysconfig/" \
|
|
|
|
-DINSTALL_SYSTEMD_SERVICE="share/doc/galera" \
|
|
|
|
-DINSTALL_SYSTEMD_SERVICE="lib/systemd/system" \
|
|
|
|
-DINSTALL_LIBDIR="%{_lib}/galera" \
|
|
|
|
-DINSTALL_LIBDIR="%{_lib}/galera" \
|
|
|
|
-DINSTALL_MANPAGE="share/man/man8"
|
|
|
|
-DINSTALL_MANPAGE="share/man/man8"
|
|
|
|
|
|
|
|
|
|
|
@ -74,15 +70,15 @@ cmake -B %_vpath_builddir -LAH
|
|
|
|
# Fedora downstream packaging historically used "garbd" name for the service.
|
|
|
|
# Fedora downstream packaging historically used "garbd" name for the service.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Let's stick with the Fedora legacy naming, AND provide an alias to the Galera upstream name
|
|
|
|
# Let's stick with the Fedora legacy naming, AND provide an alias to the Galera upstream name
|
|
|
|
mv %{buildroot}/usr/share/doc/galera/garb.service %{buildroot}/usr/share/doc/galera/garbd.service
|
|
|
|
mv %{buildroot}/usr/lib/systemd/system/garb.service %{buildroot}/usr/lib/systemd/system/garbd.service
|
|
|
|
sed -i 's/Alias=garbd.service/Alias=garb.service/g' %{buildroot}/usr/share/doc/galera/garbd.service
|
|
|
|
sed -i 's/Alias=garbd.service/Alias=garb.service/g' %{buildroot}/usr/lib/systemd/system/garbd.service
|
|
|
|
|
|
|
|
|
|
|
|
# PATCH 2:
|
|
|
|
# PATCH 2:
|
|
|
|
# Fix the hardcoded paths
|
|
|
|
# Fix the hardcoded paths
|
|
|
|
# In the Systemd service file:
|
|
|
|
# In the Systemd service file:
|
|
|
|
sed -i 's;/usr/bin/garb-systemd;/usr/sbin/garb-systemd;g' %{buildroot}/usr/share/doc/galera/garbd.service
|
|
|
|
sed -i 's;/usr/bin/garb-systemd;/usr/sbin/garb-systemd;g' %{buildroot}/usr/lib/systemd/system/garbd.service
|
|
|
|
# In the wrapper script:
|
|
|
|
# In the wrapper script:
|
|
|
|
sed -i 's;/usr/bin/garbd;/usr/sbin/garbd;g' %{buildroot}/usr/share/doc/galera/garb-systemd
|
|
|
|
sed -i 's;/usr/bin/garbd;/usr/sbin/garbd;g' %{buildroot}/usr/sbin/garb-systemd
|
|
|
|
|
|
|
|
|
|
|
|
# PATCH 4:
|
|
|
|
# PATCH 4:
|
|
|
|
# Use a dedicated user for the Systemd service
|
|
|
|
# Use a dedicated user for the Systemd service
|
|
|
@ -107,11 +103,12 @@ sed -i 's;/usr/bin/garbd;/usr/sbin/garbd;g' %{buildroot}/usr/share/doc/galera/ga
|
|
|
|
## in particular on systems using NFS or running containers. Allocate a user ID
|
|
|
|
## in particular on systems using NFS or running containers. Allocate a user ID
|
|
|
|
## specific to this service, either statically via systemd-sysusers or dynamically
|
|
|
|
## specific to this service, either statically via systemd-sysusers or dynamically
|
|
|
|
## via the DynamicUser= service setting.
|
|
|
|
## via the DynamicUser= service setting.
|
|
|
|
sed -i 's/User=nobody/User=garb/g' %{buildroot}/usr/share/doc/galera/garbd.service
|
|
|
|
sed -i 's/User=nobody/User=garb/g' %{buildroot}/usr/lib/systemd/system/garbd.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
%ctest
|
|
|
|
|
|
|
|
|
|
|
|
# Install old service and wrapper to maintain compatibility
|
|
|
|
|
|
|
|
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/garbd.service
|
|
|
|
|
|
|
|
install -D -m 755 %{SOURCE2} %{buildroot}%{_sbindir}/garbd-wrapper
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%pre
|
|
|
|
/usr/sbin/useradd -M -r -d /dev/null -s /sbin/nologin -c "Galera Arbitrator Daemon" garb >/dev/null 2>&1 || :
|
|
|
|
/usr/sbin/useradd -M -r -d /dev/null -s /sbin/nologin -c "Galera Arbitrator Daemon" garb >/dev/null 2>&1 || :
|
|
|
@ -135,62 +132,122 @@ install -D -m 755 %{SOURCE2} %{buildroot}%{_sbindir}/garbd-wrapper
|
|
|
|
%dir %{_libdir}/galera
|
|
|
|
%dir %{_libdir}/galera
|
|
|
|
|
|
|
|
|
|
|
|
%{_sbindir}/garbd
|
|
|
|
%{_sbindir}/garbd
|
|
|
|
%{_sbindir}/garbd-wrapper
|
|
|
|
#%{_sbindir}/garbd-wrapper
|
|
|
|
|
|
|
|
|
|
|
|
# PATCH 3:
|
|
|
|
# PATCH 3:
|
|
|
|
# Make sure the wrapper script is executable
|
|
|
|
# Make sure the wrapper script is executable
|
|
|
|
%attr(755, -, -) %{_docdir}/galera/garb-systemd
|
|
|
|
%attr(755, -, -) %{_sbindir}/garb-systemd
|
|
|
|
|
|
|
|
|
|
|
|
%{_mandir}/man8/garbd.8*
|
|
|
|
%{_mandir}/man8/garbd.8*
|
|
|
|
|
|
|
|
|
|
|
|
%{_unitdir}/garbd.service
|
|
|
|
%{_unitdir}/garbd.service
|
|
|
|
%{_docdir}/galera/garbd.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{_libdir}/galera/libgalera_smm.so
|
|
|
|
%{_libdir}/galera/libgalera_smm.so
|
|
|
|
|
|
|
|
|
|
|
|
%doc %{_docdir}/galera/AUTHORS
|
|
|
|
%doc %{_docdir}/galera/AUTHORS
|
|
|
|
%doc %{_docdir}/galera/COPYING
|
|
|
|
%doc %{_docdir}/galera/COPYING
|
|
|
|
%doc %{_docdir}/galera/LICENSE.asio
|
|
|
|
%doc %{_docdir}/galera/LICENSE.asio
|
|
|
|
%doc %{_docdir}/galera/LICENSE.chromium
|
|
|
|
|
|
|
|
%doc %{_docdir}/galera/README
|
|
|
|
%doc %{_docdir}/galera/README
|
|
|
|
#%doc %{_docdir}/galera/README-MySQL
|
|
|
|
#%doc %{_docdir}/galera/README-MySQL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Jul 04 2023 Anton Bobrov <abobrov@redhat.com> - 25.3.37-1
|
|
|
|
* Sun Feb 20 2022 Michal Schorm <mschorm@redhat.com> - 26.4.11-1
|
|
|
|
- Rebase to 25.3.37
|
|
|
|
- Rebase to 26.4.11
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 01 2022 Zuzana Miklankova <zmiklank@redhat.com> - 25.3.35-1
|
|
|
|
* Fri Nov 19 2021 Lukas Javorsky <ljavorsk@redhat.com> - 26.4.9-2
|
|
|
|
- Rebase to 25.3.35
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 03 2022 Lukas Javorsky <ljavorsk@redhat.com> - 25.3.34-4
|
|
|
|
|
|
|
|
- Explicitly require the 'procps-ng' package
|
|
|
|
- Explicitly require the 'procps-ng' package
|
|
|
|
- Otherwise it will not require it in the lightweight systems (e.g. containers)
|
|
|
|
- Otherwise it will not require it in the lightweight systems (e.g. containers)
|
|
|
|
- and Galera won't work properly
|
|
|
|
- and Galera won't work properly
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 28 2022 Lukas Javorsky <ljavorsk@redhat.com> - 25.3.34-3
|
|
|
|
* Tue Aug 17 2021 Michal Schorm <mschorm@redhat.com> - 26.4.9-1
|
|
|
|
- Use downstream garbd-wrapper and garbd.service to ensure compatibility
|
|
|
|
- Rebase to 26.4.9
|
|
|
|
- Add upstream versions of garbd-wrapper (called garbd-systemd) and garbd.service
|
|
|
|
|
|
|
|
in case user want's to use them
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 19 2022 Michal Schorm <mschorm@redhat.com> - 25.3.34-2
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com>
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 15 2021 Michal Schorm <mschorm@redhat.com> - 26.4.8-2
|
|
|
|
- Switch from SCONS build tooling to CMAKE build tooling
|
|
|
|
- Switch from SCONS build tooling to CMAKE build tooling
|
|
|
|
|
|
|
|
- Use upstream variants of Systemd service file and Systemd service file wrapper srcipt
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 19 2022 Zuzana Miklankova <zmiklank@redhat.com> - 25.3.34-1
|
|
|
|
* Thu Jun 03 2021 Lukas Javorsky <ljavorsk@redhat.com> - 26.4.8-1
|
|
|
|
- Rebase to 25.3.34
|
|
|
|
- Rebase to 26.4.8
|
|
|
|
Resolves: #2042298
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Mar 23 2021 Michal Schorm <mschorm@redhat.com> - 25.3.32-1
|
|
|
|
|
|
|
|
- Rebase to 25.3.32
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 10 2020 Michal Schorm <mschorm@redhat.com> - 25.3.31-1
|
|
|
|
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 26.4.7-3
|
|
|
|
- Rebase to 25.3.31
|
|
|
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
|
Resolves: #1731289, #1856812
|
|
|
|
Related: rhbz#1971065
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 18 2019 Michal Schorm <mschorm@redhat.com> - 25.3.26-1
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 26.4.7-2
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 23 2021 Michal Schorm <mschorm@redhat.com> - 26.4.7-1
|
|
|
|
|
|
|
|
- Rebase to 26.4.7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 26.4.6-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 22 2021 Jonathan Wakely <jwakely@redhat.com> - 26.4.6-2
|
|
|
|
|
|
|
|
- Rebuilt for Boost 1.75
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 04 2020 Michal Schorm <mschorm@redhat.com> - 26.4.6-1
|
|
|
|
|
|
|
|
- Rebase to 26.4.6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Sep 17 2020 Michal Schorm <mschorm@redhat.com> - 26.4.5-2
|
|
|
|
|
|
|
|
- Extend the workaround also to ELN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 16 2020 Michal Schorm <mschorm@redhat.com> - 26.4.5-1
|
|
|
|
|
|
|
|
- Rebase to 26.4.5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 16 2020 Michal Schorm <mschorm@redhat.com> - 26.4.4-5
|
|
|
|
|
|
|
|
- Apply workaround for FTBFS on F33+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 26.4.4-4
|
|
|
|
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 26.4.4-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 08 2020 Michal Schorm <mschorm@redhat.com> - 26.4.4-2
|
|
|
|
|
|
|
|
- Second rebuild for Boost 1.73
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 05 2020 Michal Schorm <mschorm@redhat.com> - 26.4.4-1
|
|
|
|
|
|
|
|
- Rebase to 26.4.4
|
|
|
|
|
|
|
|
Resolves: rhbz#1546787
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu May 28 2020 Jonathan Wakely <jwakely@redhat.com> - 26.4.3-4
|
|
|
|
|
|
|
|
- Rebuilt for Boost 1.73
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 26.4.3-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 18 2020 Michal Schorm <mschorm@redhat.com> - 26.4.3-2
|
|
|
|
|
|
|
|
- Rebase to 26.4.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 06 2019 Michal Schorm <mschorm@redhat.com> - 25.3.28-1
|
|
|
|
|
|
|
|
- Rebase to 25.3.28
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 01 2019 Michal Schorm <mschorm@redhat.com> - 25.3.26-3
|
|
|
|
|
|
|
|
- Fix for #1735233 and #1737108
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.26-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 19 2019 Michal Schorm <mschorm@redhat.com> - 25.3.26-1
|
|
|
|
- Rebase to 25.3.26
|
|
|
|
- Rebase to 25.3.26
|
|
|
|
Resolves: #1687879
|
|
|
|
|
|
|
|
Resolves: #1657220
|
|
|
|
* Fri Jul 19 2019 Michal Schorm <mschorm@redhat.com> - 25.3.25-4
|
|
|
|
|
|
|
|
- Use macro for setting up the compiler flags
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.25-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 29 2019 Jonathan Wakely <jwakely@redhat.com> - 25.3.25-2
|
|
|
|
|
|
|
|
- Rebuilt for Boost 1.69
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 01 2019 Michal Schorm <mschorm@redhat.com> - 25.3.25-1
|
|
|
|
|
|
|
|
- Rebase to 25.3.25
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 16 2018 Honza Horak <hhorak@redhat.com> - 25.3.23-5
|
|
|
|
* Mon Jul 16 2018 Honza Horak <hhorak@redhat.com> - 25.3.23-5
|
|
|
|
- Require asio also on rhel
|
|
|
|
- Require asio also on rhel
|
|
|
|