aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/packages/fedora/bazel.spec
blob: 14cabfc5c1495aa8932cedfec878dc15076d2e20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Name: bazel
Version: devel
Release: 1
Summary: Correct, reproducible, and fast builds for everyone.
URL: https://bazel.build
License: Apache License, v2.0

Source0: bazel
Source1: bazel-real
Source2: bazel.bazelrc
Source3: bazel-complete.bash

Requires: java-1.8.0-openjdk-headless

%description
Bazel is a build tool that builds code quickly and reliably. It is used to build the majority of Google's software, and thus it has been designed to handle build problems present in Google's development environment.

%global _enable_debug_package 0
%global debug_package %{nil}
%global __os_install_post /usr/lib/rpm/brp-compress %{nil}

%prep

%build

%install
export DONT_STRIP=1
mkdir -p %{buildroot}%{_bindir}/
install -m 755 bazel %{buildroot}%{_bindir}/bazel
install -m 755 bazel-real %{buildroot}%{_bindir}/bazel-real
mkdir -p %{buildroot}%{_sysconfdir}/
install -m 644 bazel.bazelrc %{buildroot}%{_sysconfdir}/bazel.bazelrc
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/
install -m 644 bazel-complete.bash %{buildroot}%{_sysconfdir}/bash_completion.d/bazel

%files
%{_bindir}/bazel
%{_bindir}/bazel-real
%{_sysconfdir}/bazel.bazelrc
%{_sysconfdir}/bash_completion.d/bazel

%changelog
* Fri Jan 27 2017 jcater@google.com - devel-1
- Initial package version released.