From 10f9bc2546dbca48532af1578563ababecc5a07c Mon Sep 17 00:00:00 2001
From: Michal Schorm <mschorm@redhat.com>
Date: Fri, 2 Aug 2019 19:36:11 +0200
Subject: [PATCH] Fix for #1735233 and #1737108

---
 galera.spec | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/galera.spec b/galera.spec
index 69f0956..442d603 100644
--- a/galera.spec
+++ b/galera.spec
@@ -1,6 +1,6 @@
 Name:           galera
 Version:        25.3.26
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Synchronous multi-master wsrep provider (replication engine)
 
 License:        GPLv2
@@ -56,6 +56,12 @@ export CPPFLAGS CFLAGS CXXFLAGS
 #   --warn=all
 #   debug=0
 
+# https://bugzilla.redhat.com/show_bug.cgi?id=1735233
+# https://bugzilla.redhat.com/show_bug.cgi?id=1737108
+%if 0%{?fedora} >= 31
+alias scons-3='scons'
+%endif
+
 %if 0%{?fedora} == 30 && %_arch == ppc64le
 # Workaround for a bug which was solved in Rawhide
 scons-3 %{?_smp_mflags} strict_build_flags=0
@@ -108,6 +114,9 @@ install -D -m 644 scripts/packages/README-MySQL %{buildroot}%{_docdir}/galera/RE
 
 
 %changelog
+* Fri 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