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