diff --git a/opengauss-dcf.spec b/opengauss-dcf.spec index 3798735e79178c0c096c9e0c0348f30882a9fcec..15df266a87a22cf9dc653e503481e140c2bb996e 100644 --- a/opengauss-dcf.spec +++ b/opengauss-dcf.spec @@ -1,6 +1,6 @@ Name: DCF Version: 5.0.1 -Release: 7 +Release: 8 Summary: A distributed consensus framework library License: MulanPSL-2.0 URL: https://gitee.com/opengauss/DCF @@ -19,21 +19,26 @@ DCF is A distributed consensus framework library for openGauss %prep -%setup -q -%patch1 -p1 +%setup -qn %{name}-%{version} +%patch -P1 -p1 %ifarch sw_64 -%patch2 -p1 +%patch -P2 -p1 %endif %ifarch loongarch64 -%patch3 -p1 +%patch -P3 -p1 %endif %ifarch riscv64 -%patch4 -p1 +%patch -P4 -p1 %endif %build -cmake -DCMAKE_BUILD_TYPE=Release -DTEST=OFF -DENABLE_EXPORT_API=OFF CMakeLists.txt -%make_build all -s %{?_smp_mflags} +%define _warning_options %{nil} +%cmake \ + -S. -B %{_vpath_builddir} \ + -DCMAKE_BUILD_TYPE=Release \ + -DTEST=OFF \ + -DENABLE_EXPORT_API=OFF +%cmake_build %install @@ -50,13 +55,8 @@ cp output/lib/libdcf.* %{buildroot}/%{_prefix}/lib cp output/lib/libdcf.* %{buildroot}/%{_prefix}/lib64 %endif -%post - -%preun - %files -%defattr (-,root,root) -%{_prefix}/include/dcf_interface.h +%{_includedir}/dcf_interface.h %ifarch sw_64 %{_prefix}/lib/libdcf.so %else @@ -64,6 +64,9 @@ cp output/lib/libdcf.* %{buildroot}/%{_prefix}/lib64 %endif %changelog +* Mon Oct 28 2024 Funda Wang - 5.0.1-8 +- adopt to cmake macro change + * Mon May 6 2024 liuheng - 5.0.1-7 - Update version to 5.0.1