galera/galera.spec

97 lines
3.3 KiB
RPMSpec
Raw Normal View History

2020-03-07 16:35:37 +08:00
%global galeradoc %{buildroot}%{_docdir}/galera
Name: galera
2023-12-06 14:44:09 +08:00
Version: 26.4.16
2023-10-31 16:23:41 +08:00
Release: 1
2020-03-07 16:35:37 +08:00
Summary: Synchronous multi-master replication library
License: GPLv2
URL: http://galeracluster.com/
2023-12-06 14:44:09 +08:00
Source0: http://releases.galeracluster.com/%{name}-4.16/source/%{name}-4-%{version}.tar.gz
2020-03-07 16:35:37 +08:00
Source1: garbd.service
#systemd startup script
Source2: garbd-wrapper
#Use decode to make the SConstruct Python3 compatible
#https://github.com/codership/galera/commit/71685db8da72b81a0950c19269281d10ae179706.patch
Patch0000: galera-python3.patch
2023-12-06 14:44:09 +08:00
# https://salsa.debian.org/mariadb-team/galera-4/-/commit/19f010d78a98d8c481b57de27b0b59cdad8b979d
Patch0001: Apply-upstream-patches-from-codership-galera-558.patch
2020-03-07 16:35:37 +08:00
2021-07-23 10:03:46 +08:00
BuildRequires: asio-devel boost-devel check-devel gcc-c++ openssl-devel python3-scons systemd
2020-03-07 16:35:37 +08:00
Requires: nmap-ncat
Requires(post,preun,postun): systemd
%description
This is Galera replication - Codership's implementation of the write set replication (wsrep) interface.
%prep
2021-08-25 20:22:21 +08:00
%autosetup -n %{name}-4-%{version} -p1
sed -i '/^GALERA_VER/s/API + //' wsrep/tests/SConscript
2020-03-07 16:35:37 +08:00
%build
%{set_build_flags}
CPPFLAGS=`echo $CPPFLAGS| sed -e "s|-Wp,-D_GLIBCXX_ASSERTIONS||g" `
CFLAGS=`echo $CFLAGS| sed -e "s|-Wp,-D_GLIBCXX_ASSERTIONS||g" `
CXXFLAGS=`echo $CXXFLAGS| sed -e "s|-Wp,-D_GLIBCXX_ASSERTIONS||g" `
export CPPFLAGS CFLAGS CXXFLAGS
2022-12-22 10:20:04 +08:00
scons-3 %{?_smp_mflags} strict_build_flags=0
2020-03-07 16:35:37 +08:00
%install
install -D -m 644 COPYING %{galeradoc}/COPYING
install -D -m 644 asio/LICENSE_1_0.txt %{galeradoc}/LICENSE.asio
install -D -m 644 scripts/packages/README %{galeradoc}/README
install -D -m 644 scripts/packages/README-MySQL %{galeradoc}/README-MySQL
install -D -m 644 garb/files/garb.cnf %{buildroot}%{_sysconfdir}/sysconfig/garb
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/garbd.service
install -D -m 755 %{SOURCE2} %{buildroot}%{_sbindir}/garbd-wrapper
install -D -m 755 garb/garbd %{buildroot}%{_sbindir}/garbd
install -D -m 755 libgalera_smm.so %{buildroot}%{_libdir}/galera/libgalera_smm.so
%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
%changelog
2023-12-06 14:44:09 +08:00
* Wed Dec 06 2023 yaoxin <yao_xin001@hoperun.com> - 26.4.16-1
- Upgrade to 26.4.16 and fix build error
2023-10-31 16:23:41 +08:00
* Tue Oct 31 2023 wangkai <13474090681@163.com> - 26.4.14-1
- Update to 26.4.14
2022-12-22 10:20:04 +08:00
* Thu Dec 22 2022 wanglin <wangl29@chinatelecom.cn> - 26.4.8-2
- Set strict_build_flags=0 and fix changelog date
2021-08-25 20:22:21 +08:00
* Wed Aug 25 2021 lingsheng <lingsheng@huawei.com> - 26.4.8-1
- Update to 26.4.8
2021-08-16 15:09:58 +08:00
* Mon Aug 16 2021 lingsheng <lingsheng@huawei.com> - 25.3.26-5
- Remove unsupported reload option
2021-07-23 10:03:46 +08:00
* Wed Jul 21 2021 lingsheng <lingsheng@huawei.com> - 25.3.26-4
- Remove unnecessary buildrequire gdb
2020-03-22 00:28:33 +08:00
* Sat Mar 21 2020 songnannan <songnannan2@huawei.com> - 25.3.26-3
- add gdb in buildrequires
2022-12-22 10:20:04 +08:00
* Wed Mar 4 2020 zhouyihang<zhouyihang1@huawei.com> - 25.3.26-2
2020-03-07 16:35:37 +08:00
- Pakcage init