!99 [sync] PR-95: Use patch macro instead of patch command
From: @openeuler-sync-bot Reviewed-by: @jimmy_hero Signed-off-by: @jimmy_hero
This commit is contained in:
commit
e5c84b82e5
@ -1,7 +1,7 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: tensorflow
|
Name: tensorflow
|
||||||
Version: 2.12.1
|
Version: 2.12.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: An Open Source Machine Learning Framework for Everyone
|
Summary: An Open Source Machine Learning Framework for Everyone
|
||||||
License: Apache License 2.0
|
License: Apache License 2.0
|
||||||
URL: https://www.tensorflow.org/
|
URL: https://www.tensorflow.org/
|
||||||
@ -9,9 +9,11 @@ Source0: https://github.com/tensorflow/tensorflow/archive/v%{version}.tar
|
|||||||
Source1: external.tar.bz2.partaa
|
Source1: external.tar.bz2.partaa
|
||||||
Source2: external.tar.bz2.partab
|
Source2: external.tar.bz2.partab
|
||||||
Source3: external.tar.bz2.partac
|
Source3: external.tar.bz2.partac
|
||||||
Source4: aarch64_external_files.patch
|
|
||||||
Patch0: modify-deps-on-libclang-gcsfs-gast.patch
|
Patch0: modify-deps-on-libclang-gcsfs-gast.patch
|
||||||
Patch1: fix-boringssl-compile.patch
|
Patch1: fix-boringssl-compile.patch
|
||||||
|
%ifarch aarch64
|
||||||
|
Patch1000: aarch64_external_files.patch
|
||||||
|
%endif
|
||||||
Requires: python3-future python3-numpy python3-six python3-astunparse python3-google-pasta python3-opt-einsum
|
Requires: python3-future python3-numpy python3-six python3-astunparse python3-google-pasta python3-opt-einsum
|
||||||
Requires: python3-typing-extensions python3-wrapt python3-h5py python3-protobuf python3-grpcio python3-absl-py
|
Requires: python3-typing-extensions python3-wrapt python3-h5py python3-protobuf python3-grpcio python3-absl-py
|
||||||
Requires: python3-flatbuffers python3-gast
|
Requires: python3-flatbuffers python3-gast
|
||||||
@ -38,14 +40,16 @@ TensorFlow was originally developed by researchers and engineers working on the
|
|||||||
TensorFlow provides stable Python and C++ APIs, as well as non-guaranteed backward compatible API for other languages.
|
TensorFlow provides stable Python and C++ APIs, as well as non-guaranteed backward compatible API for other languages.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%setup -n %{name}-%{version}
|
||||||
|
%patch 0 -p1
|
||||||
|
%patch 1 -p1
|
||||||
extdir=$(bazel --output_user_root=`pwd`/../output_user_root info output_base)
|
extdir=$(bazel --output_user_root=`pwd`/../output_user_root info output_base)
|
||||||
mkdir -p ${extdir}
|
mkdir -p ${extdir}
|
||||||
instdir=$(bazel --output_user_root=`pwd`/../output_user_root info install_base)
|
instdir=$(bazel --output_user_root=`pwd`/../output_user_root info install_base)
|
||||||
cat %{SOURCE1} %{SOURCE2} %{SOURCE3} > external.tar.bz2
|
cat %{SOURCE1} %{SOURCE2} %{SOURCE3} > external.tar.bz2
|
||||||
tar xf external.tar.bz2 -C ${extdir}
|
tar xf external.tar.bz2 -C ${extdir}
|
||||||
%ifarch aarch64
|
%ifarch aarch64
|
||||||
patch -d ${extdir} -p0 < %{SOURCE4}
|
%patch 1000 -p0 -d ${extdir}
|
||||||
%endif
|
%endif
|
||||||
ln -sfn ${instdir}/embedded_tools ${extdir}/external/bazel_tools
|
ln -sfn ${instdir}/embedded_tools ${extdir}/external/bazel_tools
|
||||||
for f in $(find $extdir/external -lname "*/external/*"); do OLDLINK=$(readlink $f); echo $OLDLINK; NEWLINK=${extdir}/external/${OLDLINK#*external}; ln -sf $NEWLINK $f-newlink; mv -Tf $f-newlink $f; done
|
for f in $(find $extdir/external -lname "*/external/*"); do OLDLINK=$(readlink $f); echo $OLDLINK; NEWLINK=${extdir}/external/${OLDLINK#*external}; ln -sf $NEWLINK $f-newlink; mv -Tf $f-newlink $f; done
|
||||||
@ -67,8 +71,11 @@ bazel --output_user_root=`pwd`/../output_user_root build --nofetch --host_copt=-
|
|||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 03 2025 misaka00251 <liuxin@iscas.ac.cn> - 2.12.1-2
|
||||||
|
- Use patch macro instead of patch command
|
||||||
|
|
||||||
* Tue Apr 02 2024 zhangxianting <zhangxianting@unionech.com> - 2.12.1-1
|
* Tue Apr 02 2024 zhangxianting <zhangxianting@unionech.com> - 2.12.1-1
|
||||||
* Increase the upper limit version of typing_extensions to fix install, typing_extensions>=3.6.6,<4.6.0 to typing_extensions>=3.6.6,<=4.10.0
|
- Increase the upper limit version of typing_extensions to fix install, typing_extensions>=3.6.6,<4.6.0 to typing_extensions>=3.6.6,<=4.10.0
|
||||||
|
|
||||||
* Wed Sep 13 2023 Jincheng Miao <jincheng.miao@intel.com> - 2.12.1-0
|
* Wed Sep 13 2023 Jincheng Miao <jincheng.miao@intel.com> - 2.12.1-0
|
||||||
- update version to 2.12.1
|
- update version to 2.12.1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user