5e1c8e
Name:           galera
ce1265
Version:        25.3.28
ce1265
Release:        1%{?dist}
5e1c8e
Summary:        Synchronous multi-master wsrep provider (replication engine)
5e1c8e
5e1c8e
License:        GPLv2
071e11
URL:            http://galeracluster.com/
77b522
77b522
# Actually, the truth is, we do use galera source tarball provided by MariaDB on
77b522
# following URL (without macros):
ce1265
#   https://mirror.vpsfree.cz/mariadb/mariadb-10.3.19/galera-25.3.28/src/galera-25.3.28.tar.gz
77b522
55854e
Source0:        http://releases.galeracluster.com/source/%{name}-%{version}.tar.gz
845eea
5e1c8e
Source1:        garbd.service
5e1c8e
Source2:        garbd-wrapper
5e1c8e
d3e3b8
Patch0:         galera-python3.patch
d3e3b8
22ac6c
BuildRequires:  boost-devel check-devel openssl-devel python3-scons systemd gcc-c++ asio-devel
5e1c8e
Requires:       nmap-ncat
5e1c8e
5e1c8e
5e1c8e
Requires(post): systemd
5e1c8e
Requires(preun): systemd
5e1c8e
Requires(postun): systemd
5e1c8e
5e1c8e
5e1c8e
%description
5e1c8e
Galera is a fast synchronous multi-master wsrep provider (replication engine)
5e1c8e
for transactional databases and similar applications. For more information
5e1c8e
about wsrep API see http://launchpad.net/wsrep. For a description of Galera
5e1c8e
replication engine see http://www.codership.com.
5e1c8e
5e1c8e
5e1c8e
%prep
55854e
%setup -q
d3e3b8
%patch0 -p1
5e1c8e
5e1c8e
%build
ad8aec
%{set_build_flags}
ad8aec
ad8aec
# FTBFS with the GLIBCXX_ASSERTIONS; #1546787
1b9c8d
CPPFLAGS=`echo $CPPFLAGS| sed -e "s|-Wp,-D_GLIBCXX_ASSERTIONS||g" `
ad8aec
CFLAGS=`echo $CFLAGS| sed -e "s|-Wp,-D_GLIBCXX_ASSERTIONS||g" `
ad8aec
CXXFLAGS=`echo $CXXFLAGS| sed -e "s|-Wp,-D_GLIBCXX_ASSERTIONS||g" `
ad8aec
export CPPFLAGS CFLAGS CXXFLAGS
1b9c8d
363d52
# Print help:
4d2436
#   scons-3 --help
4d2436
#   scons-3 -H
4d2436
4d2436
# Possibly usefull arguments:
4d2436
#   --debug=findlibs
4d2436
#   --debug=stacktrace
4d2436
#   --warn=all
4d2436
#   debug=0
4d2436
10f9bc
# https://bugzilla.redhat.com/show_bug.cgi?id=1735233
10f9bc
# https://bugzilla.redhat.com/show_bug.cgi?id=1737108
10f9bc
%if 0%{?fedora} >= 31
10f9bc
alias scons-3='scons'
10f9bc
%endif
10f9bc
ad8aec
scons-3 %{?_smp_mflags} strict_build_flags=1
4d2436
363d52
363d52
# Possibly usefull arguments:
363d52
#   --debug=findlibs
363d52
#   --debug=stacktrace
363d52
#   --warn=all
363d52
#   debug=0
363d52
363d52
# Using "debug=0" as a workaround for a failing test appearing first in galera 25.3.26; and failing only on AARCH64 on Fedora>=30
363d52
scons-3 %{?_smp_mflags} strict_build_flags=0 debug=0
5e1c8e
5e1c8e
%install
5e1c8e
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/garbd.service
5e1c8e
install -D -m 755 %{SOURCE2} %{buildroot}%{_sbindir}/garbd-wrapper
5e1c8e
install -D -m 755 garb/garbd %{buildroot}%{_sbindir}/garbd
5e1c8e
install -D -m 755 libgalera_smm.so %{buildroot}%{_libdir}/galera/libgalera_smm.so
5e1c8e
install -D -m 644 garb/files/garb.cnf %{buildroot}%{_sysconfdir}/sysconfig/garb
5e1c8e
install -D -m 644 COPYING %{buildroot}%{_docdir}/galera/COPYING
5e1c8e
install -D -m 644 chromium/LICENSE %{buildroot}%{_docdir}/galera/LICENSE.chromium
5e1c8e
install -D -m 644 asio/LICENSE_1_0.txt %{buildroot}%{_docdir}/galera/LICENSE.asio
5e1c8e
install -D -m 644 www.evanjones.ca/LICENSE %{buildroot}%{_docdir}/galera/LICENSE.crc32
5e1c8e
install -D -m 644 scripts/packages/README %{buildroot}%{_docdir}/galera/README
5e1c8e
install -D -m 644 scripts/packages/README-MySQL %{buildroot}%{_docdir}/galera/README-MySQL
5e1c8e
5e1c8e
5e1c8e
%post
5e1c8e
/sbin/ldconfig
5e1c8e
%systemd_post garbd.service
5e1c8e
5e1c8e
%preun
5e1c8e
%systemd_preun garbd.service
5e1c8e
5e1c8e
%postun
5e1c8e
/sbin/ldconfig
5e1c8e
%systemd_postun_with_restart garbd.service
5e1c8e
5e1c8e
5e1c8e
%files
5e1c8e
%config(noreplace,missingok) %{_sysconfdir}/sysconfig/garb
5e1c8e
%dir %{_docdir}/galera
5e1c8e
%dir %{_libdir}/galera
5e1c8e
%{_sbindir}/garbd
5e1c8e
%{_sbindir}/garbd-wrapper
5e1c8e
%{_unitdir}/garbd.service
5e1c8e
%{_libdir}/galera/libgalera_smm.so
5e1c8e
%doc %{_docdir}/galera/COPYING
5e1c8e
%doc %{_docdir}/galera/LICENSE.asio
5e1c8e
%doc %{_docdir}/galera/LICENSE.crc32
5e1c8e
%doc %{_docdir}/galera/LICENSE.chromium
5e1c8e
%doc %{_docdir}/galera/README
5e1c8e
%doc %{_docdir}/galera/README-MySQL
5e1c8e
5e1c8e
5e1c8e
%changelog
ce1265
* Wed Nov 06 2019 Michal Schorm <mschorm@redhat.com> - 25.3.28-1
ce1265
- Rebase to 25.3.28
ce1265
ce1265
* Thu Aug 01 2019 Michal Schorm <mschorm@redhat.com> - 25.3.26-3
10f9bc
- Fix for #1735233 and #1737108
10f9bc
a134f1
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.26-2
a134f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a134f1
6c2c80
* Fri Jul 19 2019 Michal Schorm <mschorm@redhat.com> - 25.3.26-1
61a8b5
- Rebase to 25.3.26
61a8b5
ad8aec
* Fri Jul 19 2019 Michal Schorm <mschorm@redhat.com> - 25.3.25-4
ad8aec
- Use macro for setting up the compiler flags
ad8aec
ead6f8
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.25-3
ead6f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ead6f8
6748b8
* Tue Jan 29 2019 Jonathan Wakely <jwakely@redhat.com> - 25.3.25-2
6748b8
- Rebuilt for Boost 1.69
6748b8
7ab7bf
* Tue Jan 01 2019 Michal Schorm <mschorm@redhat.com> - 25.3.25-1
6096c4
- Rebase to 25.3.25
6096c4
22ac6c
* Mon Jul 16 2018 Honza Horak <hhorak@redhat.com> - 25.3.23-5
22ac6c
- Require asio also on rhel
22ac6c
07ab6d
* Fri Jul 13 2018 Honza Horak <hhorak@redhat.com> - 25.3.23-4
07ab6d
- Add explicit gcc-c++ BR
d3e3b8
- Use python3-scons
07ab6d
d61706
* Fri Jul 13 2018 Honza Horak <hhorak@redhat.com> - 25.3.23-3
d61706
- Do not require asio on rhel
d61706
357a42
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.23-2
357a42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
357a42
77b522
* Fri Feb 16 2018 Michal Schorm <mschorm@redhat.com> - 25.3.23-1
77b522
- Update to 25.3.23
77b522
ab4770
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.22-2
ab4770
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ab4770
55854e
* Fri Nov 24 2017 Honza Horak <hhorak@redhat.com> - 25.3.22-1
55854e
- Update to 25.3.22
55854e
9e4d20
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.16-6
9e4d20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9e4d20
0bfe55
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.16-5
0bfe55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0bfe55
b83f84
* Mon Jul 03 2017 Jonathan Wakely <jwakely@redhat.com> - 25.3.16-4
b83f84
- Rebuilt for Boost 1.64
b83f84
b9fd6b
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 25.3.16-3
b9fd6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
b9fd6b
25c4a4
* Sat Feb 18 2017 Jonathan Wakely <jwakely@redhat.com> - 25.3.16-2
25c4a4
- Use asio-devel instead of bundled asio library
25c4a4
181292
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.16-2
181292
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
181292
45fd9b
* Wed Jun 22 2016 Mike Bayer <mbayer@redhat.com> - 25.3.16-1
45fd9b
- Update to 25.3.16
45fd9b
4730a7
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.12-4
4730a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4730a7
b8717b
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 25.3.12-3
b8717b
- Rebuilt for Boost 1.60
b8717b
Marcin Juszkiewicz 014d98
* Wed Sep 30 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 25.3.12-2
Marcin Juszkiewicz 014d98
- Remove use of -mtune=native which breaks build on secondary architectures
Marcin Juszkiewicz 014d98
071e11
* Fri Sep 25 2015 Richard W.M. Jones <rjones@redhat.com> - 25.3.12-1
071e11
- Update to 25.3.12.
071e11
- Should fix the build on 32 bit ARM (RHBZ#1241164).
35e61c
- Remove ExcludeArch (should have read the BZ more closely).
071e11
00807d
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 25.3.10-5
00807d
- Rebuilt for Boost 1.59
00807d
7e45f8
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 25.3.10-4
7e45f8
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
7e45f8
e5fbf9
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 25.3.10-3
e5fbf9
- rebuild for Boost 1.58
e5fbf9
f953d8
* Wed Jul 08 2015 Ryan O'Hara <rohara@redhat.com> - 25.3.10-2
f953d8
- Disable ARM builds (#1241164, #1239516)
f953d8
845eea
* Mon Jul 06 2015 Ryan O'Hara <rohara@redhat.com> - 25.3.10-1
845eea
- Update to version 25.3.10
845eea
cf87c0
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 25.3.5-11
cf87c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
cf87c0
Petr Machata 2e2c46
* Mon Jan 26 2015 Petr Machata <pmachata@redhat.com> - 25.3.5-10
Petr Machata 2e2c46
- Rebuild for boost 1.57.0
Petr Machata 2e2c46
a3ca86
* Thu Nov 27 2014 Richard W.M. Jones <rjones@redhat.com> - 25.3.5-9
a3ca86
- Add aarch64 support.
a3ca86
ea2a2d
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 25.3.5-8
ea2a2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ea2a2d
ba4d71
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 25.3.5-7
ba4d71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ba4d71
Petr Machata a10e0d
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 25.3.5-6
Petr Machata a10e0d
- Rebuild for boost 1.55.0
Petr Machata a10e0d
a13dba
* Wed Apr 30 2014 Dan Horák <dan[at]danny.cz> - 25.3.5-5
a13dba
- set ExclusiveArch
a13dba
5e1c8e
* Thu Apr 24 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.5-4
5e1c8e
- Use strict_build_flags=0 to avoid -Werror
845eea
- Remove unnecessary clean section
5e1c8e
5e1c8e
* Thu Apr 24 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.5-3
5e1c8e
- Include galera directories in file list
5e1c8e
- Set CPPFLAGS to optflags
5e1c8e
5e1c8e
* Wed Apr 23 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.5-2
5e1c8e
- Fix client certificate verification (#1090604)
5e1c8e
5e1c8e
* Thu Mar 27 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.5-1
5e1c8e
- Update to version 25.3.5
5e1c8e
5e1c8e
* Mon Mar 24 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.3-2
5e1c8e
- Add systemd service
5e1c8e
5e1c8e
* Sun Mar 09 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.3-1
5e1c8e
- Initial build