1 # TODO: use system jars
2 Summary: Build and test software of any size, quickly and reliably
3 Summary(pl.UTF-8): Budowanie i testowanie oprogramowania dowolnych rozmiarów - szybko i wiarygodnie
8 Group: Development/Tools
9 #Source0Download: https://github.com/bazelbuild/bazel/releases
10 Source0: https://github.com/bazelbuild/bazel/releases/download/%{version}/%{name}-%{version}-dist.zip
11 # Source0-md5: da63b5df0eb5075d6ed3e021ae79cf6b
12 Patch0: %{name}-glibc.patch
13 Patch1: %{name}-x86.patch
14 URL: https://bazel.build/
16 BuildRequires: jdk >= 1.8
17 BuildRequires: libstdc++-devel
18 BuildRequires: python3 >= 1:3.2
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _noautostrip .*%{_bindir}/bazel
26 Build and test software of any size, quickly and reliably.
28 %description -l pl.UTF-8
29 Budowanie i testowanie oprogramowania dowolnych rozmiarów - szybko i
37 %{__sed} -i -e 's,/bin/java" ,& -Xmx2g ,' scripts/bootstrap/compile.sh
40 BAZEL_JAVAC_OPTS="-J-Xmx1g" \
41 EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk" \
45 rm -rf $RPM_BUILD_ROOT
47 install -D output/bazel $RPM_BUILD_ROOT%{_bindir}/bazel
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
54 %doc AUTHORS CHANGELOG.md CONTRIBUTORS README.md
55 %attr(755,root,root) %{_bindir}/bazel