From b0573bf09ce2e4b28f269ec84b1269a5790b2a04 Mon Sep 17 00:00:00 2001 From: wxm Date: Mon, 17 Jun 2024 06:04:02 +0000 Subject: [PATCH] Fix build error by mock -r xx.cfg --rebuild src.rpm Signed-off-by: wxm --- tensorflow.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tensorflow.spec b/tensorflow.spec index 6530e7c..67b8e14 100644 --- a/tensorflow.spec +++ b/tensorflow.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: tensorflow Version: 2.12.1 -Release: 1 +Release: 2 Summary: An Open Source Machine Learning Framework for Everyone License: Apache License 2.0 URL: https://www.tensorflow.org/ @@ -49,7 +49,7 @@ patch -d ${extdir} -p0 < %{SOURCE4} %endif 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 "*/rpmbuild/*"); do OLDLINK=$(readlink $f); echo $OLDLINK; NEWLINK=${HOME}/rpmbuild/${OLDLINK#*rpmbuild}; ln -sf $NEWLINK $f-newlink; mv -Tf $f-newlink $f;done +for f in $(find $extdir/external -lname "*/rpmbuild/*"); do OLDLINK=$(readlink $f); echo $OLDLINK; NEWLINK=%{_topdir}/${OLDLINK#*rpmbuild}; ln -sf $NEWLINK $f-newlink; mv -Tf $f-newlink $f;done #rm -rf ${extdir}/external/local_config* %build @@ -67,6 +67,9 @@ bazel --output_user_root=`pwd`/../output_user_root build --nofetch --host_copt=- %{_bindir}/* %changelog +* Mon Jun 17 2024 wangxiaomeng - 2.12.1-2 +* Fix build error by mock -r xx.cfg --rebuild src.rpm + * Tue Apr 02 2024 zhangxianting - 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 -- Gitee