5e1c8ef
Name:           galera
6c2c804
Version:        25.3.26
10f9bc2
Release:        3%{?dist}
5e1c8ef
Summary:        Synchronous multi-master wsrep provider (replication engine)
5e1c8ef
5e1c8ef
License:        GPLv2
071e117
URL:            http://galeracluster.com/
77b5226
77b5226
# Actually, the truth is, we do use galera source tarball provided by MariaDB on
77b5226
# following URL (without macros):
77b5226
#   https://mirror.vpsfree.cz/mariadb/mariadb-10.2.13/galera-25.3.23/src/galera-25.3.23.tar.gz
77b5226
55854e3
Source0:        http://releases.galeracluster.com/source/%{name}-%{version}.tar.gz
845eea4
5e1c8ef
Source1:        garbd.service
5e1c8ef
Source2:        garbd-wrapper
5e1c8ef
d3e3b83
Patch0:         galera-python3.patch
d3e3b83
22ac6c0
BuildRequires:  boost-devel check-devel openssl-devel python3-scons systemd gcc-c++ asio-devel
5e1c8ef
Requires:       nmap-ncat
5e1c8ef
5e1c8ef
5e1c8ef
Requires(post): systemd
5e1c8ef
Requires(preun): systemd
5e1c8ef
Requires(postun): systemd
5e1c8ef
5e1c8ef
5e1c8ef
%description
5e1c8ef
Galera is a fast synchronous multi-master wsrep provider (replication engine)
5e1c8ef
for transactional databases and similar applications. For more information
5e1c8ef
about wsrep API see http://launchpad.net/wsrep. For a description of Galera
5e1c8ef
replication engine see http://www.codership.com.
5e1c8ef
5e1c8ef
5e1c8ef
%prep
55854e3
%setup -q
d3e3b83
%patch0 -p1
5e1c8ef
5e1c8ef
%build
ad8aec2
%{set_build_flags}
ad8aec2
ad8aec2
# FTBFS with the GLIBCXX_ASSERTIONS; #1546787
1b9c8d9
CPPFLAGS=`echo $CPPFLAGS| sed -e "s|-Wp,-D_GLIBCXX_ASSERTIONS||g" `
ad8aec2
CFLAGS=`echo $CFLAGS| sed -e "s|-Wp,-D_GLIBCXX_ASSERTIONS||g" `
ad8aec2
CXXFLAGS=`echo $CXXFLAGS| sed -e "s|-Wp,-D_GLIBCXX_ASSERTIONS||g" `
ad8aec2
export CPPFLAGS CFLAGS CXXFLAGS
1b9c8d9
4d24362
# Print help:
4d24362
#   scons-3 --help
4d24362
#   scons-3 -H
4d24362
4d24362
# Possibly usefull arguments:
4d24362
#   --debug=findlibs
4d24362
#   --debug=stacktrace
4d24362
#   --warn=all
4d24362
#   debug=0
4d24362
10f9bc2
# https://bugzilla.redhat.com/show_bug.cgi?id=1735233
10f9bc2
# https://bugzilla.redhat.com/show_bug.cgi?id=1737108
10f9bc2
%if 0%{?fedora} >= 31
10f9bc2
alias scons-3='scons'
10f9bc2
%endif
10f9bc2
4d24362
%if 0%{?fedora} == 30 && %_arch == ppc64le
4d24362
# Workaround for a bug which was solved in Rawhide
4d24362
scons-3 %{?_smp_mflags} strict_build_flags=0
4d24362
%else
ad8aec2
scons-3 %{?_smp_mflags} strict_build_flags=1
4d24362
%endif
4d24362
5e1c8ef
5e1c8ef
5e1c8ef
%install
5e1c8ef
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/garbd.service
5e1c8ef
install -D -m 755 %{SOURCE2} %{buildroot}%{_sbindir}/garbd-wrapper
5e1c8ef
install -D -m 755 garb/garbd %{buildroot}%{_sbindir}/garbd
5e1c8ef
install -D -m 755 libgalera_smm.so %{buildroot}%{_libdir}/galera/libgalera_smm.so
5e1c8ef
install -D -m 644 garb/files/garb.cnf %{buildroot}%{_sysconfdir}/sysconfig/garb
5e1c8ef
install -D -m 644 COPYING %{buildroot}%{_docdir}/galera/COPYING
5e1c8ef
install -D -m 644 chromium/LICENSE %{buildroot}%{_docdir}/galera/LICENSE.chromium
5e1c8ef
install -D -m 644 asio/LICENSE_1_0.txt %{buildroot}%{_docdir}/galera/LICENSE.asio
5e1c8ef
install -D -m 644 www.evanjones.ca/LICENSE %{buildroot}%{_docdir}/galera/LICENSE.crc32
5e1c8ef
install -D -m 644 scripts/packages/README %{buildroot}%{_docdir}/galera/README
5e1c8ef
install -D -m 644 scripts/packages/README-MySQL %{buildroot}%{_docdir}/galera/README-MySQL
5e1c8ef
5e1c8ef
5e1c8ef
%post
5e1c8ef
/sbin/ldconfig
5e1c8ef
%systemd_post garbd.service
5e1c8ef
5e1c8ef
%preun
5e1c8ef
%systemd_preun garbd.service
5e1c8ef
5e1c8ef
%postun
5e1c8ef
/sbin/ldconfig
5e1c8ef
%systemd_postun_with_restart garbd.service
5e1c8ef
5e1c8ef
5e1c8ef
%files
5e1c8ef
%config(noreplace,missingok) %{_sysconfdir}/sysconfig/garb
5e1c8ef
%dir %{_docdir}/galera
5e1c8ef
%dir %{_libdir}/galera
5e1c8ef
%{_sbindir}/garbd
5e1c8ef
%{_sbindir}/garbd-wrapper
5e1c8ef
%{_unitdir}/garbd.service
5e1c8ef
%{_libdir}/galera/libgalera_smm.so
5e1c8ef
%doc %{_docdir}/galera/COPYING
5e1c8ef
%doc %{_docdir}/galera/LICENSE.asio
5e1c8ef
%doc %{_docdir}/galera/LICENSE.crc32
5e1c8ef
%doc %{_docdir}/galera/LICENSE.chromium
5e1c8ef
%doc %{_docdir}/galera/README
5e1c8ef
%doc %{_docdir}/galera/README-MySQL
5e1c8ef
5e1c8ef
5e1c8ef
%changelog
10f9bc2
* Fri Aug 01 2019 Michal Schorm <mschorm@redhat.com> - 25.3.26-3
10f9bc2
- Fix for #1735233 and #1737108
10f9bc2
a134f18
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.26-2
a134f18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a134f18
6c2c804
* Fri Jul 19 2019 Michal Schorm <mschorm@redhat.com> - 25.3.26-1
6c2c804
- Rebase to 25.3.26
6c2c804
ad8aec2
* Fri Jul 19 2019 Michal Schorm <mschorm@redhat.com> - 25.3.25-4
ad8aec2
- Use macro for setting up the compiler flags
ad8aec2
ead6f82
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.25-3
ead6f82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ead6f82
6748b88
* Tue Jan 29 2019 Jonathan Wakely <jwakely@redhat.com> - 25.3.25-2
6748b88
- Rebuilt for Boost 1.69
6748b88
7ab7bf6
* Tue Jan 01 2019 Michal Schorm <mschorm@redhat.com> - 25.3.25-1
6096c48
- Rebase to 25.3.25
6096c48
22ac6c0
* Mon Jul 16 2018 Honza Horak <hhorak@redhat.com> - 25.3.23-5
22ac6c0
- Require asio also on rhel
22ac6c0
07ab6dd
* Fri Jul 13 2018 Honza Horak <hhorak@redhat.com> - 25.3.23-4
07ab6dd
- Add explicit gcc-c++ BR
d3e3b83
- Use python3-scons
07ab6dd
d617063
* Fri Jul 13 2018 Honza Horak <hhorak@redhat.com> - 25.3.23-3
d617063
- Do not require asio on rhel
d617063
357a424
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.23-2
357a424
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
357a424
77b5226
* Fri Feb 16 2018 Michal Schorm <mschorm@redhat.com> - 25.3.23-1
77b5226
- Update to 25.3.23
77b5226
ab4770c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.22-2
ab4770c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ab4770c
55854e3
* Fri Nov 24 2017 Honza Horak <hhorak@redhat.com> - 25.3.22-1
55854e3
- Update to 25.3.22
55854e3
9e4d202
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.16-6
9e4d202
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9e4d202
0bfe553
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.16-5
0bfe553
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0bfe553
b83f844
* Mon Jul 03 2017 Jonathan Wakely <jwakely@redhat.com> - 25.3.16-4
b83f844
- Rebuilt for Boost 1.64
b83f844
b9fd6b9
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 25.3.16-3
b9fd6b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
b9fd6b9
25c4a44
* Sat Feb 18 2017 Jonathan Wakely <jwakely@redhat.com> - 25.3.16-2
25c4a44
- Use asio-devel instead of bundled asio library
25c4a44
181292b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.16-2
181292b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
181292b
45fd9b1
* Wed Jun 22 2016 Mike Bayer <mbayer@redhat.com> - 25.3.16-1
45fd9b1
- Update to 25.3.16
45fd9b1
4730a7e
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.12-4
4730a7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4730a7e
b8717bf
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 25.3.12-3
b8717bf
- Rebuilt for Boost 1.60
b8717bf
Marcin Juszkiewicz 014d987
* Wed Sep 30 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 25.3.12-2
Marcin Juszkiewicz 014d987
- Remove use of -mtune=native which breaks build on secondary architectures
Marcin Juszkiewicz 014d987
071e117
* Fri Sep 25 2015 Richard W.M. Jones <rjones@redhat.com> - 25.3.12-1
071e117
- Update to 25.3.12.
071e117
- Should fix the build on 32 bit ARM (RHBZ#1241164).
35e61c0
- Remove ExcludeArch (should have read the BZ more closely).
071e117
00807d3
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 25.3.10-5
00807d3
- Rebuilt for Boost 1.59
00807d3
7e45f8b
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 25.3.10-4
7e45f8b
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
7e45f8b
e5fbf99
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 25.3.10-3
e5fbf99
- rebuild for Boost 1.58
e5fbf99
f953d85
* Wed Jul 08 2015 Ryan O'Hara <rohara@redhat.com> - 25.3.10-2
f953d85
- Disable ARM builds (#1241164, #1239516)
f953d85
845eea4
* Mon Jul 06 2015 Ryan O'Hara <rohara@redhat.com> - 25.3.10-1
845eea4
- Update to version 25.3.10
845eea4
cf87c0d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 25.3.5-11
cf87c0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
cf87c0d
Petr Machata 2e2c463
* Mon Jan 26 2015 Petr Machata <pmachata@redhat.com> - 25.3.5-10
Petr Machata 2e2c463
- Rebuild for boost 1.57.0
Petr Machata 2e2c463
a3ca861
* Thu Nov 27 2014 Richard W.M. Jones <rjones@redhat.com> - 25.3.5-9
a3ca861
- Add aarch64 support.
a3ca861
ea2a2d2
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 25.3.5-8
ea2a2d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ea2a2d2
ba4d716
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 25.3.5-7
ba4d716
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ba4d716
Petr Machata a10e0df
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 25.3.5-6
Petr Machata a10e0df
- Rebuild for boost 1.55.0
Petr Machata a10e0df
a13dba7
* Wed Apr 30 2014 Dan HorĂ¡k <dan[at]danny.cz> - 25.3.5-5
a13dba7
- set ExclusiveArch
a13dba7
5e1c8ef
* Thu Apr 24 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.5-4
5e1c8ef
- Use strict_build_flags=0 to avoid -Werror
845eea4
- Remove unnecessary clean section
5e1c8ef
5e1c8ef
* Thu Apr 24 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.5-3
5e1c8ef
- Include galera directories in file list
5e1c8ef
- Set CPPFLAGS to optflags
5e1c8ef
5e1c8ef
* Wed Apr 23 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.5-2
5e1c8ef
- Fix client certificate verification (#1090604)
5e1c8ef
5e1c8ef
* Thu Mar 27 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.5-1
5e1c8ef
- Update to version 25.3.5
5e1c8ef
5e1c8ef
* Mon Mar 24 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.3-2
5e1c8ef
- Add systemd service
5e1c8ef
5e1c8ef
* Sun Mar 09 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.3-1
5e1c8ef
- Initial build