Name: bazelisk Version: 1.27.0 Release: 1%{?dist} Summary: A user-friendly launcher for Bazel License: Apache-2.0 URL: https://github.com/bazelbuild/bazelisk Source0: https://github.com/bazelbuild/bazelisk/archive/refs/tags/v%{version}.tar.gz ExclusiveArch: aarch64 x86_64 BuildRequires: git BuildRequires: go-rpm-macros BuildRequires: golang BuildRequires: golang-github-bgentry-netrc-devel BuildRequires: golang-github-gofrs-flock-devel BuildRequires: golang-github-hashicorp-version-devel BuildRequires: golang-github-mitchellh-homedir-devel BuildRequires: golang-x-term-devel %description Bazelisk is a user-friendly launcher for Bazel. It automatically downloads and runs the Bazel version specified by your project, the .bazelversion file, or environment settings. %global _debugsource_packages 0 %global debug_package %{nil} %ifarch x86_64 %global bazelisk_arch amd64 %endif %ifarch aarch64 %global bazelisk_arch arm64 %endif %prep %autosetup -n %{name}-%{version} %build # Build static Bazelisk binary (main package lives at repo root) rm -rf bazelisk bin mkdir bin %gobuild -o bazelisk %install install -Dm755 bazelisk %{buildroot}%{_bindir}/bazelisk # Provide a bazel -> bazelisk symlink ln -sf bazelisk %{buildroot}%{_bindir}/bazel %check # Basic smoke-test: verify that the bazelisk binary runs and shows environment info %{buildroot}%{_bindir}/bazel --print_env || : %files %license LICENSE %doc README.md %{_bindir}/bazelisk %{_bindir}/bazel %changelog * Wed Nov 19 2025 Dragos Carp - 1.27.0-1 - Update to Bazelisk 1.27.0