c808d4
Name:           galera
c808d4
Version:        26.4.7
c808d4
Release:        1%{?dist}
c808d4
Summary:        Synchronous multi-master wsrep provider (replication engine)
c808d4
c808d4
License:        GPLv2
c808d4
URL:            http://galeracluster.com/
c808d4
c808d4
# Actually, the truth is, we do use galera source tarball provided by MariaDB on
c808d4
# following URL (without macros):
c808d4
#   https://mirror.vpsfree.cz/mariadb/mariadb-10.4.11/galera-26.4.3/src/galera-26.4.3.tar.gz
c808d4
c808d4
Source0:        http://releases.galeracluster.com/source/%{name}-%{version}.tar.gz
c808d4
c808d4
Source1:        garbd.service
c808d4
Source2:        garbd-wrapper
c808d4
c808d4
Patch0:         galera-python3.patch
c808d4
c808d4
BuildRequires:  boost-devel check-devel openssl-devel python3-scons systemd gcc-c++ asio-devel
c808d4
Requires:       nmap-ncat
c808d4
c808d4
%{?systemd_requires}
c808d4
c808d4
c808d4
%description
c808d4
Galera is a fast synchronous multi-master wsrep provider (replication engine)
c808d4
for transactional databases and similar applications. For more information
c808d4
about wsrep API see http://launchpad.net/wsrep. For a description of Galera
c808d4
replication engine see http://www.codership.com.
c808d4
c808d4
c808d4
%prep
c808d4
%setup -q
c808d4
%patch0 -p1
c808d4
c808d4
%build
c808d4
%{set_build_flags}
c808d4
c808d4
# Print help:
c808d4
#   scons-3 --help
c808d4
#   scons-3 -H
c808d4
c808d4
# Possibly usefull arguments:
c808d4
#   --debug=findlibs
c808d4
#   --debug=stacktrace
c808d4
#   --warn=all
c808d4
#   debug=0
c808d4
c808d4
# Update for 26.4.6: The strict_build_flags FTBFS on armv7hl and i686; fails to find check.h on RHEL
c808d4
# Update for 26.4.7: The strict_build_flags FTBFS ppc64le, failing tests
c808d4
%ifarch i686 ppc64le
c808d4
scons-3 %{?_smp_mflags} strict_build_flags=0
c808d4
%else
c808d4
scons-3 %{?_smp_mflags} strict_build_flags=1
c808d4
%endif
c808d4
c808d4
%install
c808d4
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/garbd.service
c808d4
install -D -m 755 %{SOURCE2} %{buildroot}%{_sbindir}/garbd-wrapper
c808d4
install -D -m 755 garb/garbd %{buildroot}%{_sbindir}/garbd
c808d4
install -D -m 755 libgalera_smm.so %{buildroot}%{_libdir}/galera/libgalera_smm.so
c808d4
install -D -m 644 garb/files/garb.cnf %{buildroot}%{_sysconfdir}/sysconfig/garb
c808d4
install -D -m 644 COPYING %{buildroot}%{_docdir}/galera/COPYING
c808d4
install -D -m 644 asio/LICENSE_1_0.txt %{buildroot}%{_docdir}/galera/LICENSE.asio
c808d4
install -D -m 644 scripts/packages/README %{buildroot}%{_docdir}/galera/README
c808d4
install -D -m 644 scripts/packages/README-MySQL %{buildroot}%{_docdir}/galera/README-MySQL
c808d4
c808d4
c808d4
%post
c808d4
/sbin/ldconfig
c808d4
%systemd_post garbd.service
c808d4
c808d4
%preun
c808d4
%systemd_preun garbd.service
c808d4
c808d4
%postun
c808d4
/sbin/ldconfig
c808d4
%systemd_postun_with_restart garbd.service
c808d4
c808d4
c808d4
%files
c808d4
%config(noreplace,missingok) %{_sysconfdir}/sysconfig/garb
c808d4
%dir %{_docdir}/galera
c808d4
%dir %{_libdir}/galera
c808d4
%{_sbindir}/garbd
c808d4
%{_sbindir}/garbd-wrapper
c808d4
%{_unitdir}/garbd.service
c808d4
%{_libdir}/galera/libgalera_smm.so
c808d4
%doc %{_docdir}/galera/COPYING
c808d4
%doc %{_docdir}/galera/LICENSE.asio
c808d4
%doc %{_docdir}/galera/README
c808d4
%doc %{_docdir}/galera/README-MySQL
c808d4
c808d4
c808d4
%changelog
c808d4
* Mon Mar 22 2021 Michal Schorm <mschorm@redhat.com> - 26.4.7-1
c808d4
- Rebase to 26.4.7
c808d4
c808d4
* Mon Dec 07 2020 Honza Horak <hhorak@redhat.com> - 26.4.6-2
c808d4
- Do not use scrict flags on RHEL-8, it does not find check.h that way
c808d4
  Related: #1855781
c808d4
c808d4
* Wed Nov 04 2020 Michal Schorm <mschorm@redhat.com> - 26.4.6-1
c808d4
- Rebase to 26.4.6
c808d4
c808d4
* Thu Sep 17 2020 Michal Schorm <mschorm@redhat.com> - 26.4.5-2
c808d4
- Extend the workaround also to ELN
c808d4
c808d4
* Wed Sep 16 2020 Michal Schorm <mschorm@redhat.com> - 26.4.5-1
c808d4
- Rebase to 26.4.5
c808d4
c808d4
* Wed Sep 16 2020 Michal Schorm <mschorm@redhat.com> - 26.4.4-5
c808d4
- Apply workaround for FTBFS on F33+
c808d4
c808d4
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 26.4.4-4
c808d4
- Second attempt - Rebuilt for
c808d4
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c808d4
c808d4
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 26.4.4-3
c808d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c808d4
c808d4
* Mon Jun 08 2020 Michal Schorm <mschorm@redhat.com> - 26.4.4-2
c808d4
- Second rebuild for Boost 1.73
c808d4
c808d4
* Fri Jun 05 2020 Michal Schorm <mschorm@redhat.com> - 26.4.4-1
c808d4
- Rebase to 26.4.4
c808d4
  Resolves: rhbz#1546787
c808d4
c808d4
* Thu May 28 2020 Jonathan Wakely <jwakely@redhat.com> - 26.4.3-4
c808d4
- Rebuilt for Boost 1.73
c808d4
c808d4
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 26.4.3-3
c808d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c808d4
c808d4
* Sat Jan 18 2020 Michal Schorm <mschorm@redhat.com> - 26.4.3-2
c808d4
- Rebase to 26.4.3
c808d4
c808d4
* Wed Nov 06 2019 Michal Schorm <mschorm@redhat.com> - 25.3.28-1
c808d4
- Rebase to 25.3.28
c808d4
c808d4
* Thu Aug 01 2019 Michal Schorm <mschorm@redhat.com> - 25.3.26-3
c808d4
- Fix for #1735233 and #1737108
c808d4
c808d4
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.26-2
c808d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c808d4
c808d4
* Fri Jul 19 2019 Michal Schorm <mschorm@redhat.com> - 25.3.26-1
c808d4
- Rebase to 25.3.26
c808d4
c808d4
* Fri Jul 19 2019 Michal Schorm <mschorm@redhat.com> - 25.3.25-4
c808d4
- Use macro for setting up the compiler flags
c808d4
c808d4
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.25-3
c808d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c808d4
c808d4
* Tue Jan 29 2019 Jonathan Wakely <jwakely@redhat.com> - 25.3.25-2
c808d4
- Rebuilt for Boost 1.69
c808d4
c808d4
* Tue Jan 01 2019 Michal Schorm <mschorm@redhat.com> - 25.3.25-1
c808d4
- Rebase to 25.3.25
c808d4
c808d4
* Mon Jul 16 2018 Honza Horak <hhorak@redhat.com> - 25.3.23-5
c808d4
- Require asio also on rhel
c808d4
c808d4
* Fri Jul 13 2018 Honza Horak <hhorak@redhat.com> - 25.3.23-4
c808d4
- Add explicit gcc-c++ BR
c808d4
- Use python3-scons
c808d4
c808d4
* Fri Jul 13 2018 Honza Horak <hhorak@redhat.com> - 25.3.23-3
c808d4
- Do not require asio on rhel
c808d4
c808d4
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.23-2
c808d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c808d4
c808d4
* Fri Feb 16 2018 Michal Schorm <mschorm@redhat.com> - 25.3.23-1
c808d4
- Update to 25.3.23
c808d4
c808d4
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.22-2
c808d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c808d4
c808d4
* Fri Nov 24 2017 Honza Horak <hhorak@redhat.com> - 25.3.22-1
c808d4
- Update to 25.3.22
c808d4
c808d4
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.16-6
c808d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c808d4
c808d4
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.16-5
c808d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c808d4
c808d4
* Mon Jul 03 2017 Jonathan Wakely <jwakely@redhat.com> - 25.3.16-4
c808d4
- Rebuilt for Boost 1.64
c808d4
c808d4
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 25.3.16-3
c808d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
c808d4
c808d4
* Sat Feb 18 2017 Jonathan Wakely <jwakely@redhat.com> - 25.3.16-2
c808d4
- Use asio-devel instead of bundled asio library
c808d4
c808d4
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.16-2
c808d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c808d4
c808d4
* Wed Jun 22 2016 Mike Bayer <mbayer@redhat.com> - 25.3.16-1
c808d4
- Update to 25.3.16
c808d4
c808d4
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 25.3.12-4
c808d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c808d4
c808d4
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 25.3.12-3
c808d4
- Rebuilt for Boost 1.60
c808d4
c808d4
* Wed Sep 30 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 25.3.12-2
c808d4
- Remove use of -mtune=native which breaks build on secondary architectures
c808d4
c808d4
* Fri Sep 25 2015 Richard W.M. Jones <rjones@redhat.com> - 25.3.12-1
c808d4
- Update to 25.3.12.
c808d4
- Should fix the build on 32 bit ARM (RHBZ#1241164).
c808d4
- Remove ExcludeArch (should have read the BZ more closely).
c808d4
c808d4
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 25.3.10-5
c808d4
- Rebuilt for Boost 1.59
c808d4
c808d4
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 25.3.10-4
c808d4
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
c808d4
c808d4
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 25.3.10-3
c808d4
- rebuild for Boost 1.58
c808d4
c808d4
* Wed Jul 08 2015 Ryan O'Hara <rohara@redhat.com> - 25.3.10-2
c808d4
- Disable ARM builds (#1241164, #1239516)
c808d4
c808d4
* Mon Jul 06 2015 Ryan O'Hara <rohara@redhat.com> - 25.3.10-1
c808d4
- Update to version 25.3.10
c808d4
c808d4
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 25.3.5-11
c808d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c808d4
c808d4
* Mon Jan 26 2015 Petr Machata <pmachata@redhat.com> - 25.3.5-10
c808d4
- Rebuild for boost 1.57.0
c808d4
c808d4
* Thu Nov 27 2014 Richard W.M. Jones <rjones@redhat.com> - 25.3.5-9
c808d4
- Add aarch64 support.
c808d4
c808d4
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 25.3.5-8
c808d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c808d4
c808d4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 25.3.5-7
c808d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c808d4
c808d4
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 25.3.5-6
c808d4
- Rebuild for boost 1.55.0
c808d4
c808d4
* Wed Apr 30 2014 Dan HorĂ¡k <dan[at]danny.cz> - 25.3.5-5
c808d4
- set ExclusiveArch
c808d4
c808d4
* Thu Apr 24 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.5-4
c808d4
- Use strict_build_flags=0 to avoid -Werror
c808d4
- Remove unnecessary clean section
c808d4
c808d4
* Thu Apr 24 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.5-3
c808d4
- Include galera directories in file list
c808d4
- Set CPPFLAGS to optflags
c808d4
c808d4
* Wed Apr 23 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.5-2
c808d4
- Fix client certificate verification (#1090604)
c808d4
c808d4
* Thu Mar 27 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.5-1
c808d4
- Update to version 25.3.5
c808d4
c808d4
* Mon Mar 24 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.3-2
c808d4
- Add systemd service
c808d4
c808d4
* Sun Mar 09 2014 Ryan O'Hara <rohara@redhat.com> - 25.3.3-1
c808d4
- Initial build