opengauss-dcf/opengauss-dcf.spec

55 lines
1.3 KiB
RPMSpec
Raw Normal View History

2021-12-01 16:08:49 +08:00
Name: DCF
Version: 1.0.0
2022-08-02 16:17:47 +08:00
Release: 3
2021-12-01 16:08:49 +08:00
Summary: A distributed consensus framework library
License: MulanPSL-2.0
URL: https://gitee.com/opengauss/DCF
Source0: %{name}-%{version}.tar.gz
Patch1: 01-boundcheck.patch
2022-08-02 16:17:47 +08:00
Patch2: DCF-1.0.0-sw.patch
2021-12-01 16:08:49 +08:00
BuildRequires: cmake gcc gcc-c++ lz4-devel openssl-devel zstd-devel libboundscheck cjson-devel
%description
DCF is A distributed consensus framework library for openGauss
%prep
%setup -q
%patch1 -p1
2022-08-02 16:42:19 +08:00
%ifarch sw_64
2022-08-02 16:17:47 +08:00
%patch2 -p1
2022-08-02 16:42:19 +08:00
%endif
2021-12-01 16:08:49 +08:00
%build
cmake -DCMAKE_BUILD_TYPE=Release -DUSE32BIT=OFF -DTEST=OFF -DENABLE_EXPORT_API=OFF CMakeLists.txt
%make_build all -s %{?_smp_mflags}
%install
mkdir -p %{buildroot}/%{_prefix}/include
2022-02-10 11:37:15 +08:00
mkdir -p %{buildroot}/%{_prefix}/lib64
2021-12-01 16:08:49 +08:00
cp src/interface/dcf_interface.h %{buildroot}/%{_prefix}/include
2022-02-10 11:37:15 +08:00
cp output/lib/libdcf.* %{buildroot}/%{_prefix}/lib64
2021-12-01 16:08:49 +08:00
%post
%preun
%files
%defattr (-,root,root)
%{_prefix}/include/dcf_interface.h
2022-02-10 11:37:15 +08:00
%{_prefix}/lib64/libdcf.so
2021-12-01 16:08:49 +08:00
%changelog
2022-08-02 16:17:47 +08:00
* Thu Jul 28 2022 wuzx<wuzx1226@qq.com> - 1.0.0-3
- add sw64 patch
2022-02-10 11:37:15 +08:00
* Thu Feb 10 2022 zhangxubo <zhangxubo1@huawei.com> - 1.0.0-2
- #I4T3R3 move library file to /usr/lib64 path.
2021-12-01 16:08:49 +08:00
* Wed Dec 1 2021 zhangxubo <zhangxubo1@huawei.com> - 1.0.0-1
- Package init