forked from pool/bazel
Accepting request 708165 from home:mrostecki:branches:devel:tools:building
- Convert to a multiversion package. The real bazel binary is now shipped in packages like bazel0.26, bazel0.25 etc. OBS-URL: https://build.opensuse.org/request/show/708165 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/bazel?expand=0&rev=33
This commit is contained in:
parent
c2b4646dc7
commit
2c886896c8
1
README
Normal file
1
README
Normal file
@ -0,0 +1 @@
|
||||
This is just a dummy package to pull the default bazel for the current distribution.
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f624fe9ca8d51de192655369ac538c420afb7cde16e1ad052554b582fff09287
|
||||
size 275802597
|
Binary file not shown.
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 6 14:31:10 UTC 2019 - Michał Rostecki <mrostecki@opensuse.org>
|
||||
|
||||
- Convert to a multiversion package. The real bazel binary is now
|
||||
shipped in packages like bazel0.26, bazel0.25 etc.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 7 09:12:59 UTC 2019 - Michal Rostecki <mrostecki@opensuse.org>
|
||||
|
||||
|
39
bazel.spec
39
bazel.spec
@ -18,23 +18,15 @@
|
||||
|
||||
%define bashcompdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null)
|
||||
Name: bazel
|
||||
Version: 0.25.0
|
||||
Version: 0.26
|
||||
Release: 0
|
||||
Summary: Tool for the automation of building and testing of software
|
||||
License: Apache-2.0
|
||||
Group: Development/Tools/Building
|
||||
URL: http://bazel.io/
|
||||
Source0: https://github.com/bazelbuild/bazel/releases/download/%{version}/%{name}-%{version}-dist.zip
|
||||
Source1: https://github.com/bazelbuild/bazel/releases/download/%{version}/%{name}-%{version}-dist.zip.sig
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: java-1_8_0-openjdk-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python
|
||||
BuildRequires: unzip
|
||||
BuildRequires: zip
|
||||
BuildRequires: pkgconfig(bash-completion)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
Requires: java-1_8_0-openjdk-devel
|
||||
Source: README
|
||||
Provides: bazel = %{version}
|
||||
Requires: bazel%{version}
|
||||
%ifarch armv7l
|
||||
ExclusiveArch: do_not_build
|
||||
%endif
|
||||
@ -45,32 +37,13 @@ C++ and Go as programing languages. It also has a support for Android and iOS
|
||||
as mobile operating systems.
|
||||
|
||||
%prep
|
||||
%setup -q -c
|
||||
# Remove executable permissions
|
||||
chmod 0644 AUTHORS CHANGELOG.md CONTRIBUTORS LICENSE
|
||||
cp %{SOURCE0} .
|
||||
|
||||
%build
|
||||
%ifarch aarch64 %arm
|
||||
export BAZEL_JAVAC_OPTS="-J-Xmx2g -J-Xms200m"
|
||||
%endif
|
||||
CC=gcc
|
||||
CXX=g++
|
||||
EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk" ./compile.sh
|
||||
./output/bazel shutdown
|
||||
|
||||
%install
|
||||
export NO_BRP_STRIP_DEBUG=true
|
||||
export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%define __debug_install_post %{nil}
|
||||
: >debugfiles.list
|
||||
: >debugsources.list
|
||||
: >debugsourcefiles.list
|
||||
|
||||
install -Dm0755 output/bazel %{buildroot}%{_bindir}/bazel
|
||||
|
||||
%files
|
||||
%doc AUTHORS CHANGELOG.md CONTRIBUTORS
|
||||
%license LICENSE
|
||||
%{_bindir}/bazel
|
||||
%doc README
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user