diff --git a/bazel-5.3.0-dist.zip b/bazel-7.4.1-dist.zip similarity index 82% rename from bazel-5.3.0-dist.zip rename to bazel-7.4.1-dist.zip index 971ff5ab1296823b71e5b19193fb025336195b51..08ecf087ad94f6a00d0b3f081ce43836c2feffac 100644 Binary files a/bazel-5.3.0-dist.zip and b/bazel-7.4.1-dist.zip differ diff --git a/bazel.spec b/bazel.spec index 39e266a31753231d51754555b08be092617a2643..cf658ebc689f3c9cc86531b7d93d7ddcca294896 100644 --- a/bazel.spec +++ b/bazel.spec @@ -1,26 +1,22 @@ %define _disable_source_fetch 0 Name: bazel -Version: 5.3.0 -Release: 2 +Version: 7.4.1 +Release: 0 Summary: Correct, reproducible, and fast builds for everyone. License: Apache License 2.0 URL: http://bazel.io/ Source0: https://github.com/bazelbuild/bazel/releases/download/%{version}/bazel-%{version}-dist.zip Source1: abseil-cpp-riscv.patch -Patch0: 01-fix-invalid-jni_md-select.patch -Patch1: 02-use-riscv64-jdk.patch -Patch2: 03-set-default-nojdk.patch -Patch3: linux-bazel-path-from-getauxval.patch -Patch4: 04-riscv-distdir_deps.patch +Patch0: 04-riscv-distdir_deps.patch # for folks with 'bazel' v1 package installed Conflicts: bazel Conflicts: bazel2 -BuildRequires: java-11-openjdk-devel zlib-devel findutils gcc-c++ which unzip zip python3 -BuildRequires: pkgconfig(bash-completion) +BuildRequires: java-21-openjdk-devel zlib-devel findutils gcc-c++ which unzip zip python3 +BuildRequires: bash-completion python3-devel -Requires: java-11-openjdk-devel +Requires: java-21-openjdk-devel %define bashcompdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null) %global debug_package %{nil} @@ -31,12 +27,8 @@ Correct, reproducible, and fast builds for everyone. %prep %setup -q -c -n bazel-%{version} -%patch0 -p1 -#%patch1 -p1 -%patch2 -p1 -%patch3 -p1 %ifarch riscv64 -%patch4 -p1 +%patch -P0 -p1 mkdir third_party/abseil-cpp cp %{SOURCE1} third_party/abseil-cpp %endif @@ -76,6 +68,7 @@ g++ --version export TMPDIR=%{_tmppath} export CC=gcc export CXX=g++ +export JAVA_HOME=/usr/lib/jvm/java-21-openjdk export EXTRA_BAZEL_ARGS="${EXTRA_BAZEL_ARGS} --sandbox_debug --tool_java_runtime_version=local_jdk --verbose_failures --subcommands --explain=build.log --show_result=2147483647" env ./compile.sh env ./scripts/generate_bash_completion.sh --bazel=output/bazel --output=output/bazel-complete.bash @@ -99,6 +92,9 @@ env ./scripts/generate_bash_completion.sh --bazel=output/bazel --output=output/b %attr(0755,root,root) %{bashcompdir}/bazel %changelog +* Fri Aug 15 2025 Yale Zhang - 7.4.1-0 +- Upgrade bazel to 7.4.1 for building TF-2.12.1 + * Tue Jul 09 2024 laokz - 5.3.0-2 - riscv64: fix 'rdcycle' SIGILL of dependency abseil-cpp