use standard macro

This commit is contained in:
Funda Wang 2024-12-28 20:02:40 +08:00
parent 50e8cf28e7
commit 8e7e09643f

View File

@ -28,7 +28,6 @@ The %{name}-devel package contains libraries and header files for %{name}.
%build %build
%{cmake} \ %{cmake} \
-B %{__cmake_builddir} \
-DBUILD_ONLY="s3" \ -DBUILD_ONLY="s3" \
-DCMAKE_CXX_FLAGS="%{build_cxxflags} -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector-strong" \ -DCMAKE_CXX_FLAGS="%{build_cxxflags} -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector-strong" \
-DCMAKE_C_FLAGS="%{build_cflags} -std=c99 -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector-strong" \ -DCMAKE_C_FLAGS="%{build_cflags} -std=c99 -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector-strong" \
@ -37,10 +36,10 @@ The %{name}-devel package contains libraries and header files for %{name}.
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DAUTORUN_UNIT_TESTS=OFF -DAUTORUN_UNIT_TESTS=OFF
%cmake_build %make_build
%install %install
%cmake_install %make_install
%files %files
%{_libdir}/*.so %{_libdir}/*.so