2021-07-13 11:08:14 +08:00
|
|
|
%define __os_install_post %{nil}
|
2020-09-28 08:40:02 -04:00
|
|
|
Name: bazel
|
|
|
|
|
Version: 3.5.0
|
2021-08-09 17:40:05 +08:00
|
|
|
Release: 4
|
2020-09-28 08:40:02 -04:00
|
|
|
Summary: a fast, scalable, multi-language and extensible build system
|
|
|
|
|
License: Apache License 2.0
|
|
|
|
|
URL: https://www.bazel.build/
|
|
|
|
|
Source0: https://github.com/bazelbuild/bazel/releases/download/%{version}/bazel-%{version}-dist.zip
|
|
|
|
|
|
2021-08-09 17:40:05 +08:00
|
|
|
Patch1: fix-build-error-with-gcc10.patch
|
|
|
|
|
|
2021-06-01 15:33:42 +08:00
|
|
|
BuildRequires: java-11-openjdk-devel python3 zip unzip python3-unversioned-command gcc-g++
|
2020-09-28 08:40:02 -04:00
|
|
|
|
|
|
|
|
Requires: libstdc++ libgcc java-11-openjdk-devel python3 zip unzip python3-unversioned-command
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
{Fast, Correct} - Choose two
|
|
|
|
|
|
|
|
|
|
Build and test software of any size, quickly and reliably.
|
|
|
|
|
|
|
|
|
|
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
|
|
|
|
|
|
|
|
|
|
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
|
|
|
|
|
|
|
|
|
|
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
|
|
|
|
|
|
|
|
|
|
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
unzip %{SOURCE0}
|
2021-08-09 17:40:05 +08:00
|
|
|
%patch1 -p1
|
2020-09-28 08:40:02 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
env EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk" bash ./compile.sh
|
|
|
|
|
chmod a+x output/bazel
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
|
install -m755 output/bazel %{buildroot}%{_bindir}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%attr(0755,root,root) %{_bindir}/bazel
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-08-09 17:40:05 +08:00
|
|
|
* Mon 9 Aug 2021 zhangtao <zhangtao221@huawei.com> - 3.5.0-4
|
|
|
|
|
- fix build error with gcc10
|
|
|
|
|
|
2021-07-13 11:08:14 +08:00
|
|
|
* Tue Jul 13 2021 guoxiaoqi <guoxiaoqi2@huawei.com> - 3.5.0-3
|
|
|
|
|
- Not strip %{_bindir}/bazel after install
|
|
|
|
|
|
2021-06-01 15:33:42 +08:00
|
|
|
* Mon May 31 2021 baizhonggui <baizhonggui@huawei.com> - 3.5.0-2
|
|
|
|
|
- Add gcc-g++ in BuildRequires
|
|
|
|
|
|
2020-09-28 08:40:02 -04:00
|
|
|
* Sun Sep 28 2020 Zhipeng Xie<xiezhipeng1@huawei.com> - 3.5.0-1
|
|
|
|
|
- Package init
|