]> git.pld-linux.org Git - packages/bazel.git/blame - bazel.spec
- don't strip the binary, it has zip archive with libraries, tools and misc junk...
[packages/bazel.git] / bazel.spec
CommitLineData
d22ab1f8
JB
1# TODO: use system jars
2Summary: Build and test software of any size, quickly and reliably
3Summary(pl.UTF-8): Budowanie i testowanie oprogramowania dowolnych rozmiarów - szybko i wiarygodnie
4Name: bazel
5Version: 1.2.1
6Release: 1
7License: Apache v2.0
8Group: Development/Tools
9#Source0Download: https://github.com/bazelbuild/bazel/releases
10Source0: https://github.com/bazelbuild/bazel/releases/download/%{version}/%{name}-%{version}-dist.zip
11# Source0-md5: da63b5df0eb5075d6ed3e021ae79cf6b
12Patch0: %{name}-glibc.patch
13Patch1: %{name}-x86.patch
14URL: https://bazel.build/
15BuildRequires: bash
16BuildRequires: jdk >= 1.8
17BuildRequires: libstdc++-devel
18BuildRequires: python3 >= 1:3.2
19BuildRequires: unzip
20BuildRequires: zip
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
09cf68ea
JB
23%define _noautostrip .*%{_bindir}/bazel
24
d22ab1f8
JB
25%description
26Build and test software of any size, quickly and reliably.
27
28%description -l pl.UTF-8
29Budowanie i testowanie oprogramowania dowolnych rozmiarów - szybko i
30wiarygodnie.
31
32%prep
33%setup -q -c
34%patch0 -p1
35%patch1 -p1
36
37%{__sed} -i -e 's,/bin/java" ,& -Xmx2g ,' scripts/bootstrap/compile.sh
38
39%build
40BAZEL_JAVAC_OPTS="-J-Xmx1g" \
41EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk" \
42bash ./compile.sh
43
44%install
45rm -rf $RPM_BUILD_ROOT
46
47install -D output/bazel $RPM_BUILD_ROOT%{_bindir}/bazel
48
49%clean
50rm -rf $RPM_BUILD_ROOT
51
52%files
53%defattr(644,root,root,755)
54%doc AUTHORS CHANGELOG.md CONTRIBUTORS README.md
55%attr(755,root,root) %{_bindir}/bazel
This page took 0.103845 seconds and 4 git commands to generate.