diff options
author | CoprDistGit <infra@openeuler.org> | 2025-01-02 11:45:30 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-01-02 11:45:30 +0000 |
commit | 0c7cee0ded8e93647df65a46426e86d26e6be703 (patch) | |
tree | 6a521fe908c77a0b86341328e3cf424d98e686ac /galera.spec | |
parent | a2858c41aefd6ade0911bb326602534f73ea2b28 (diff) |
automatic import of galeraopeneuler24.09
Diffstat (limited to 'galera.spec')
-rw-r--r-- | galera.spec | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/galera.spec b/galera.spec new file mode 100644 index 0000000..406bec2 --- /dev/null +++ b/galera.spec @@ -0,0 +1,107 @@ +Name: galera +Version: 26.4.21 +Release: 1 +Summary: Synchronous multi-master replication library +License: GPL-2.0-only +URL: http://galeracluster.com/ +Source0: http://releases.galeracluster.com/%{name}-4.21/source/%{name}-4-%{version}.tar.gz + +Patch0: cmake_paths.patch +Patch1: docs.patch +Patch2: network.patch +Patch3: fix-garb-service.patch + +BuildRequires: asio-devel boost-devel check-devel gcc-c++ openssl-devel cmake systemd +Requires(pre): /usr/sbin/useradd +Requires: nmap-ncat +Requires: procps-ng + +%{?systemd_requires} + +%description +This is Galera replication - Codership's implementation of the write set replication (wsrep) interface. + +%prep +%autosetup -n %{name}-4-%{version} -p1 + +%build +%{set_build_flags} + +%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 + +mv %{buildroot}%{_unitdir}/garb.service %{buildroot}%{_unitdir}/garbd.service + +%check +%ctest + +%post +/sbin/ldconfig +%systemd_post garbd.service + +%preun +%systemd_preun garbd.service + +%postun +/sbin/ldconfig +%systemd_postun_with_restart garbd.service + +%files +%config(noreplace,missingok) %{_sysconfdir}/sysconfig/garb +%dir %{_docdir}/galera +%doc %{_docdir}/galera/* +%dir %{_libdir}/galera +%{_libdir}/galera/libgalera_smm.so +%{_sbindir}/garbd* +%{_unitdir}/garbd.service + +%attr(755, -, -) %{_sbindir}/garb-systemd +%{_mandir}/man8/garbd.8* + +%changelog +* Thu Jan 02 2025 wangkai <13474090681@163.com> - 26.4.21-1 +- Upgrade to 26.4.21 +- Switch scons build to cmake build + +* Wed Dec 06 2023 yaoxin <yao_xin001@hoperun.com> - 26.4.16-1 +- Upgrade to 26.4.16 and fix build error + +* Tue Oct 31 2023 wangkai <13474090681@163.com> - 26.4.14-1 +- Update to 26.4.14 + +* Thu Dec 22 2022 wanglin <wangl29@chinatelecom.cn> - 26.4.8-2 +- Set strict_build_flags=0 and fix changelog date + +* Wed Aug 25 2021 lingsheng <lingsheng@huawei.com> - 26.4.8-1 +- Update to 26.4.8 + +* Mon Aug 16 2021 lingsheng <lingsheng@huawei.com> - 25.3.26-5 +- Remove unsupported reload option + +* Wed Jul 21 2021 lingsheng <lingsheng@huawei.com> - 25.3.26-4 +- Remove unnecessary buildrequire gdb + +* Sat Mar 21 2020 songnannan <songnannan2@huawei.com> - 25.3.26-3 +- add gdb in buildrequires + +* Wed Mar 4 2020 zhouyihang<zhouyihang1@huawei.com> - 25.3.26-2 +- Pakcage init |