summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-10-05 14:34:10 +0000
committerCoprDistGit <infra@openeuler.org>2024-10-05 14:34:10 +0000
commitbb058f1ab85535511f75065679aea3dff8c192bf (patch)
tree5f87256093952cefb32df0eadfb21b2fb567ee4e
parent663c210db5685f5440f939d6ba4219e1cd56a0bf (diff)
automatic import of ccache
-rw-r--r--ccache.spec5
1 files changed, 4 insertions, 1 deletions
diff --git a/ccache.spec b/ccache.spec
index d018c38..8efb9f6 100644
--- a/ccache.spec
+++ b/ccache.spec
@@ -27,6 +27,7 @@ BuildRequires: hiredis-devel
BuildRequires: libzstd-devel
BuildRequires: xxhash-devel
BuildRequires: clang clang-tools-extra
+BuildRequires: coreutils grep awk
Requires: coreutils
Requires(pre): shadow-utils
@@ -45,7 +46,9 @@ sed -e 's|@LIBDIR@|%{_libdir}|g' -e 's|@CACHEDIR@|%{_var}/cache/ccache|g' \
sed -e 's|@LIBDIR@|%{_libdir}|g' -e 's|@CACHEDIR@|%{_var}/cache/ccache|g' \
%{S:2} > %{name}.csh
-install -Dm 644 src/third_party/doctest/doctest.h %{S:3}
+grep "SHA256 `sha256sum %{S:3} | awk '{print $1}'`" cmake/FindDoctest.cmake
+
+install -Dm 644 %{S:3} src/third_party/doctest/doctest.h
%build
%cmake -B %{_vpath_builddir} -DDEPS=LOCAL