!26 修复bazel安装文件名
From: @wisespreading Reviewed-by: @zhunaipan Signed-off-by: @zhunaipan
This commit is contained in:
commit
ac689c25df
15
bazel.spec
15
bazel.spec
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: bazel
|
Name: bazel
|
||||||
Version: 5.3.0
|
Version: 5.3.0
|
||||||
Release: 0
|
Release: 1
|
||||||
Summary: Correct, reproducible, and fast builds for everyone.
|
Summary: Correct, reproducible, and fast builds for everyone.
|
||||||
License: Apache License 2.0
|
License: Apache License 2.0
|
||||||
URL: http://bazel.io/
|
URL: http://bazel.io/
|
||||||
@ -30,7 +30,7 @@ Correct, reproducible, and fast builds for everyone.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -c -n bazel-%{version}
|
%setup -q -c -n bazel-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
#%patch1 -p1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
|
|
||||||
@ -77,9 +77,7 @@ env ./scripts/generate_bash_completion.sh --bazel=output/bazel --output=output/b
|
|||||||
%{__mkdir_p} %{buildroot}/%{_bindir}
|
%{__mkdir_p} %{buildroot}/%{_bindir}
|
||||||
%{__mkdir_p} %{buildroot}/%{bashcompdir}
|
%{__mkdir_p} %{buildroot}/%{bashcompdir}
|
||||||
%{__cp} output/bazel %{buildroot}/%{_bindir}/bazel-real
|
%{__cp} output/bazel %{buildroot}/%{_bindir}/bazel-real
|
||||||
%ifarch riscv64
|
%{__cp} output/bazel %{buildroot}/%{_bindir}/bazel-%{version}-%{_os}-%{_arch}
|
||||||
%{__cp} output/bazel %{buildroot}/%{_bindir}/bazel-%{version}-linux-riscv64
|
|
||||||
%endif
|
|
||||||
%{__cp} ./scripts/packages/bazel.sh %{buildroot}/%{_bindir}/bazel
|
%{__cp} ./scripts/packages/bazel.sh %{buildroot}/%{_bindir}/bazel
|
||||||
%{__cp} output/bazel-complete.bash %{buildroot}/%{bashcompdir}/bazel
|
%{__cp} output/bazel-complete.bash %{buildroot}/%{bashcompdir}/bazel
|
||||||
|
|
||||||
@ -89,13 +87,14 @@ env ./scripts/generate_bash_completion.sh --bazel=output/bazel --output=output/b
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%attr(0755,root,root) %{_bindir}/bazel
|
%attr(0755,root,root) %{_bindir}/bazel
|
||||||
%ifarch riscv64
|
|
||||||
%attr(0755,root,root) %{_bindir}/bazel-%{version}-linux-riscv64
|
|
||||||
%endif
|
|
||||||
%attr(0755,root,root) %{_bindir}/bazel-real
|
%attr(0755,root,root) %{_bindir}/bazel-real
|
||||||
|
%attr(0755,root,root) %{_bindir}/bazel-%{version}-%{_os}-%{_arch}
|
||||||
%attr(0755,root,root) %{bashcompdir}/bazel
|
%attr(0755,root,root) %{bashcompdir}/bazel
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 12 2023 Jincheng Miao <jincheng.miao@intel.com> - 5.3.0-1
|
||||||
|
- add bazel-%{version}-%{_os}-%{_arch} to install root path
|
||||||
|
|
||||||
* Fri Sep 08 2023 Jincheng Miao <jincheng.miao@intel.com> - 5.3.0-0
|
* Fri Sep 08 2023 Jincheng Miao <jincheng.miao@intel.com> - 5.3.0-0
|
||||||
- upgrade bazel to 5.3.0 for building TF-2.12.1
|
- upgrade bazel to 5.3.0 for building TF-2.12.1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user