From 770c3c1fde3c1eff8471b7c3fe8de4358e6f6307 Mon Sep 17 00:00:00 2001 From: xuezhixin Date: Thu, 31 Oct 2024 16:52:15 +0800 Subject: [PATCH] use the new cmake macros --- brotli.spec | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/brotli.spec b/brotli.spec index c0c99af..5038466 100644 --- a/brotli.spec +++ b/brotli.spec @@ -1,6 +1,6 @@ Name: brotli Version: 1.1.0 -Release: 1 +Release: 2 Summary: Lossless compression algorithm License: MIT @@ -42,19 +42,15 @@ This package installs the development files %{__chmod} 644 c/tools/brotli.c %build -mkdir -p build -pushd build -%cmake .. -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ +%cmake_conf \ + -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ -DCMAKE_INSTALL_LIBDIR="%{_libdir}" -%make_build -popd +%cmake_build %py3_build %install -pushd build -%make_install -popd +%cmake_install %py3_install %{__install} -dm755 "%{buildroot}%{_mandir}/man3" @@ -67,9 +63,7 @@ done %ldconfig_scriptlets %check -pushd build -ctest -V -popd +%ctest %files %license LICENSE @@ -89,6 +83,9 @@ popd %{_mandir}/man3/* %changelog +* Wed Oct 30 2024 xuezhixin - 1.1.0-2 +- use the new cmake macros + * Thu Nov 09 2023 lvcongqing - 1.1.0-1 - upgrade version to 1.1.0 -- Gitee