fix packaging issue
This commit is contained in:
parent
6769bb5e9f
commit
37354dc209
@ -1,14 +1,16 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: tensorflow
|
||||
Version: 2.8.2
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: An Open Source Machine Learning Framework for Everyone
|
||||
License: Apache License 2.0
|
||||
URL: https://www.tensorflow.org/
|
||||
Source0: https://github.com/tensorflow/tensorflow/archive/v%{version}.tar.gz#/tensorflow-%{version}.tar.gz
|
||||
#sh -x updateSource1.sh
|
||||
Source1: external-%{_arch}.tar.bz2.partaa
|
||||
Source2: external-%{_arch}.tar.bz2.partab
|
||||
Source1: external-aarch64.tar.bz2.partaa
|
||||
Source2: external-aarch64.tar.bz2.partab
|
||||
Source3: external-x86_64.tar.bz2.partaa
|
||||
Source4: external-x86_64.tar.bz2.partab
|
||||
Requires: python3-future python3-numpy
|
||||
|
||||
%description
|
||||
@ -36,7 +38,12 @@ TensorFlow provides stable Python and C++ APIs, as well as non-guaranteed backwa
|
||||
%autosetup -p1
|
||||
extdir=$(bazel --output_user_root=`pwd`/../output_user_root info output_base)
|
||||
mkdir -p ${extdir}
|
||||
%ifarch aarch64
|
||||
cat %{SOURCE1} %{SOURCE2} > external-%{_arch}.tar.bz2
|
||||
#endif
|
||||
%ifarch x86_64
|
||||
cat %{SOURCE3} %{SOURCE4} > external-%{_arch}.tar.bz2
|
||||
#endif
|
||||
tar xf external-%{_arch}.tar.bz2 -C ${extdir}
|
||||
ln -sfn $(find ${extdir}/../install -name embedded_tools) ${extdir}/external/bazel_tools
|
||||
ln -sfn $(find ${extdir}/../install -maxdepth 2 -name platforms) ${extdir}/external/platforms
|
||||
@ -57,6 +64,9 @@ bazel --output_user_root=`pwd`/../output_user_root build --host_copt=-Wno-string
|
||||
%{_bindir}/*
|
||||
|
||||
%changelog
|
||||
* Tue Aug 30 2022 zhangshaoning <zhangshaoning@uniontech.com> -2.8.2-2
|
||||
- fix packaging issue
|
||||
|
||||
* Thu Jun 23 2022 zhangshaoning <zhangshaoning@uniontech.com> -2.8.2-1
|
||||
- update version to 2.8.2
|
||||
- fix some cves
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user