blob: 406bec263c4ae550b5d779b8842c2ee68d650297 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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
|