diff --git a/tensorflow.spec b/tensorflow.spec index 6530e7c8ae2705ec408273ed9cad245854fcb7bd..a0dd2e82eef5506fabafdcf4f2fd8d3c4b5371e3 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/ @@ -47,6 +47,10 @@ tar xf external.tar.bz2 -C ${extdir} %ifarch aarch64 patch -d ${extdir} -p0 < %{SOURCE4} %endif +%if "%{_vendor}" != "openEuler" +sed -i 's/openEuler/%{_vendor}/g' ${extdir}/external/local_config_cc/BUILD +sed -i 's/openEuler/%{_vendor}/g' ${extdir}/external/local_config_cc/builtin_include_directory_paths +%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 @@ -67,6 +71,9 @@ bazel --output_user_root=`pwd`/../output_user_root build --nofetch --host_copt=- %{_bindir}/* %changelog +* Fri Dec 20 2024 xiaochn - 2.12.1-2 +* fix the build error when use custom vendor + * 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