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