已开启
fix build warnings:patchN is deprecated, use patch N (or %patch -P N ) #36
AtomGit-Bot创建于 2024年12月13日
fix build warnings:patchN is deprecated, use patch N (or %patch -P N ) #36
已开启
从refs/pull/36/head合入到master
共 1 个文件变更+7-4
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | Name: bazel | 3 | Name: bazel |
| 4 | Version: 5.3.0 | 4 | Version: 5.3.0 |
| 5 | -Release: 1 | 5 | +Release: 2 |
| 6 | Summary: Correct, reproducible, and fast builds for everyone. | 6 | Summary: Correct, reproducible, and fast builds for everyone. |
| 7 | License: Apache License 2.0 | 7 | License: Apache License 2.0 |
| 8 | URL: http://bazel.io/ | 8 | URL: http://bazel.io/ |
| @@ -29,10 +29,10 @@ Correct, reproducible, and fast builds for everyone. | |||
| 29 | 29 | ||
| 30 | %prep | 30 | %prep |
| 31 | %setup -q -c -n bazel-%{version} | 31 | %setup -q -c -n bazel-%{version} |
| 32 | -%patch0 -p1 | 32 | +%patch 0 -p1 |
| 33 | #%patch1 -p1 | 33 | #%patch1 -p1 |
| 34 | -%patch2 -p1 | 34 | +%patch 2 -p1 |
| 35 | -%patch3 -p1 | 35 | +%patch 3 -p1 |
| 36 | 36 | ||
| 37 | %build | 37 | %build |
| 38 | 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|' "{}" \; | 38 | 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 | |||
| 92 | %attr(0755,root,root) %{bashcompdir}/bazel | 92 | %attr(0755,root,root) %{bashcompdir}/bazel |
| 93 | 93 | ||
| 94 | %changelog | 94 | %changelog |
| 95 | +* Fri Dec 13 2024 chenhao <dev11201@linx-info.com> - 5.3.0-2 | ||
| 96 | +- Fix %patchN is deprecated warning | ||
| 97 | + | ||
| 95 | * Tue Sep 12 2023 Jincheng Miao <jincheng.miao@intel.com> - 5.3.0-1 | 98 | * Tue Sep 12 2023 Jincheng Miao <jincheng.miao@intel.com> - 5.3.0-1 |
| 96 | - add bazel-%{version}-%{_os}-%{_arch} to install root path | 99 | - add bazel-%{version}-%{_os}-%{_arch} to install root path |
| 97 | 100 | ||