代码拉取完成,页面将自动刷新
同步操作将从 OpenCloudOS Stream/galera 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Summary: Synchronous multi-master wsrep provider (replication engine)
Name: galera
Version: 26.4.13
Release: 5%{?dist}
License: GPLv2
URL: http://galeracluster.com/
Source0: http://releases.galeracluster.com/%{name}-4.13/source/%{name}-4-%{version}.tar.gz
Source1: garbd.service
Source2: garbd-wrapper
Patch3000: cmake_paths.patch
BuildRequires: boost-devel check-devel openssl-devel cmake systemd gcc-c++ asio-devel
Requires(pre): /usr/sbin/useradd
Requires: nmap-ncat procps-ng
%{?systemd_requires}
%description
Galera implements a fast synchronous multimaster wsrep provider (replication engine) for
transactional databases and similar applications.
%prep
%autosetup -p1 -n %{name}-4-%{version}
%build
%cmake \
-DCMAKE_BUILD_TYPE="%{?with_debug:Debug}%{!?with_debug:RelWithDebInfo}" \
-DINSTALL_LAYOUT=RPM \
-DCMAKE_RULE_MESSAGES:BOOL=OFF \
-DBUILD_SHARED_LIBS:BOOL=OFF \
-DINSTALL_DOCDIR="share/doc/%{name}/" \
-DINSTALL_GARBD="sbin" \
-DINSTALL_GARBD-SYSTEMD="sbin" \
-DINSTALL_CONFIGURATION="/etc/sysconfig/" \
-DINSTALL_SYSTEMD_SERVICE="lib/systemd/system" \
-DINSTALL_LIBDIR="%{_lib}/galera" \
-DINSTALL_MANPAGE="share/man/man8"
cmake -B %_vpath_builddir -LAH
%cmake_build
%install
%cmake_install
# rename the Systemd service from "garb" to "garbd"
mv %{buildroot}/usr/lib/systemd/system/garb.service %{buildroot}/usr/lib/systemd/system/garbd.service
sed -i 's/Alias=garbd.service/Alias=garb.service/g' %{buildroot}/usr/lib/systemd/system/garbd.service
# fix hardcoded paths in the Systemd service file
sed -i 's;/usr/bin/garb-systemd;/usr/sbin/garb-systemd;g' %{buildroot}/usr/lib/systemd/system/garbd.service
sed -i 's;/usr/bin/garbd;/usr/sbin/garbd;g' %{buildroot}/usr/sbin/garb-systemd
# fix an security issue reported by Systemd
# https://lists.freedesktop.org/mailman/listinfo/systemd-devel
sed -i 's/User=nobody/User=garb/g' %{buildroot}/usr/lib/systemd/system/garbd.service
%check
%ctest
%pre
/usr/sbin/useradd -M -r -d /dev/null -s /sbin/nologin -c "Galera Arbitrator Daemon" garb >/dev/null 2>&1 || :
%post
%systemd_post garbd.service
%preun
%systemd_preun garbd.service
%postun
%systemd_postun_with_restart garbd.service
%files
%license %{_docdir}/galera/COPYING
%license %{_docdir}/galera/LICENSE.asio
%doc %{_docdir}/galera/AUTHORS
%doc %{_docdir}/galera/README
%dir %{_docdir}/galera
%dir %{_libdir}/galera
%config(noreplace,missingok) %{_sysconfdir}/sysconfig/garb
%attr(755, -, -) %{_sbindir}/garb-systemd
%{_sbindir}/garbd
%{_libdir}/galera/libgalera_smm.so
%{_unitdir}/garbd.service
%{_mandir}/man8/garbd.8*
%changelog
* Mon Jul 31 2023 rockerzhu rockerzhu@tencent.com - 26.4.13-5
- Rebuilt for boost 1.82.0
* Fri Apr 28 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 26.4.13-4
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Mar 31 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 26.4.13-3
- Rebuilt for OpenCloudOS Stream 23
* Mon Feb 6 2023 Wang Guodong <gordonwwang@tencent.com> - 26.4.13-2
- Modify the source file.
* Wed Dec 14 2022 Wang Guodong <gordonwwang@tencent.com> - 26.4.13-1
- package init.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。