From 6b608c368be51ebd63ae848895a9dadcc2a40192 Mon Sep 17 00:00:00 2001 From: Chen Hao Date: Fri, 13 Dec 2024 19:53:30 +0000 Subject: [PATCH] fix build warnings:patchN is deprecated, use patch N (or %patch -P N ) Signed-off-by: Chen Hao --- bazel.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bazel.spec b/bazel.spec index 45af5ab..7acecd6 100644 --- a/bazel.spec +++ b/bazel.spec @@ -2,7 +2,7 @@ Name: bazel Version: 5.3.0 -Release: 1 +Release: 2 Summary: Correct, reproducible, and fast builds for everyone. License: Apache License 2.0 URL: http://bazel.io/ @@ -29,10 +29,10 @@ Correct, reproducible, and fast builds for everyone. %prep %setup -q -c -n bazel-%{version} -%patch0 -p1 +%patch 0 -p1 #%patch1 -p1 -%patch2 -p1 -%patch3 -p1 +%patch 2 -p1 +%patch 3 -p1 %build find . -type f -regextype posix-extended -iregex '.*(sh|txt|py|_stub|stub_.*|bazel|get_workspace_status|protobuf_support|_so)' -exec %{__sed} -i -e '1s|^#!/usr/bin/env python$|#!/usr/bin/env python3|' "{}" \; @@ -92,6 +92,9 @@ env ./scripts/generate_bash_completion.sh --bazel=output/bazel --output=output/b %attr(0755,root,root) %{bashcompdir}/bazel %changelog +* Fri Dec 13 2024 chenhao - 5.3.0-2 +- Fix %patchN is deprecated warning + * Tue Sep 12 2023 Jincheng Miao - 5.3.0-1 - add bazel-%{version}-%{_os}-%{_arch} to install root path -- Gitee