From 9d1036792a12d57ab4f3a5d70ec6b13012d509c6 Mon Sep 17 00:00:00 2001 From: chendexi Date: Thu, 22 Sep 2022 06:31:22 +0000 Subject: [PATCH] Add provides and fix build error Signed-off-by: chendexi update tensorflow.spec. Signed-off-by: chendexi modify changelog email --- tensorflow.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tensorflow.spec b/tensorflow.spec index adb6816..3af9635 100644 --- a/tensorflow.spec +++ b/tensorflow.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: tensorflow Version: 2.8.2 -Release: 2 +Release: 3 Summary: An Open Source Machine Learning Framework for Everyone License: Apache License 2.0 URL: https://www.tensorflow.org/ @@ -23,6 +23,7 @@ TensorFlow provides stable Python and C++ APIs, as well as non-guaranteed backwa %package -n python3-tensorflow Summary: An Open Source Machine Learning Framework for Everyone Provides: python-tensorflow +Provides: python%{python3_version}dist(tensorflow) = %{version} #It is because external-$(arch).tar.bz2 is built on bazel 3.5.0 BuildRequires: bazel == 4.2.1 gcc gcc-c++ git BuildRequires: python3-numpy python3-devel python3-Keras-Preprocessing python3-pip python3-wheel @@ -40,10 +41,10 @@ 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 +%endif %ifarch x86_64 cat %{SOURCE3} %{SOURCE4} > external-%{_arch}.tar.bz2 -#endif +%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 @@ -64,6 +65,9 @@ bazel --output_user_root=`pwd`/../output_user_root build --host_copt=-Wno-string %{_bindir}/* %changelog +* Thu Sep 22 2022 chendexi -2.8.2-3 +- Add provides and fix build error + * Tue Aug 30 2022 zhangshaoning -2.8.2-2 - fix packaging issue -- Gitee