Projects
home:Kaguya
tensorflow-oerv
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 18
View file
tensorflow.spec
Changed
@@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: tensorflow Version: 2.12.1 -Release: 2 +Release: 3 Summary: An Open Source Machine Learning Framework for Everyone License: Apache License 2.0 URL: https://www.tensorflow.org/ @@ -10,12 +10,16 @@ Source2: external.tar.bz2.partab Source3: external.tar.bz2.partac Source4: aarch64_external_files.patch -Source5: riscv64_external_files.patch Patch0: modify-deps-on-libclang-gcsfs-gast.patch Patch1: fix-boringssl-compile.patch 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-flatbuffers python3-gast +%ifarch riscv64 +%define arch_config "--define=build_with_mkl=false --define=enable_mkl=false --define=tensorflow_mkldnn_contraction_kernel=0 --define=build_with_mkl_dnn_v1_only=false --define=tensorflow_use_mkldnn=false --define=build_with_openmp=false" +%else +%define arch_config "--nofetch" +%endif %description TensorFlow is an end-to-end open source platform for machine learning. It has a comprehensive, flexible ecosystem of tools, libraries, and community resources that lets researchers push the state-of-the-art in ML and developers easily build and deploy ML-powered applications. @@ -45,7 +49,6 @@ instdir=$(bazel --output_user_root=`pwd`/../output_user_root info install_base) cat %{SOURCE1} %{SOURCE2} %{SOURCE3} > external.tar.bz2 tar xf external.tar.bz2 -C ${extdir} -ls ${extdir} %ifarch aarch64 patch -d ${extdir} -p0 < %{SOURCE4} %endif @@ -61,12 +64,8 @@ mkdir -p ${HOME}/.local/bin ln -s -f -T $(command -v python3) ${HOME}/.local/bin/python export PATH=${HOME}/.local/bin:$PATH -bazel --output_user_root=`pwd`/../output_user_root build \ - --nofetch \ - --define=build_with_mkl=false --define=enable_mkl=false --define=tensorflow_mkldnn_contraction_kernel=0 \ - --define=build_with_mkl_dnn_v1_only=false --define=tensorflow_use_mkldnn=false --define=build_with_openmp=false \ - --host_copt=-Wno-stringop-truncation //tensorflow/tools/pip_package:build_pip_package \ - --verbose_failures --experimental_local_memory_estimate --jobs=64 + +bazel --output_user_root=`pwd`/../output_user_root build --host_copt=-Wno-stringop-truncation //tensorflow/tools/pip_package:build_pip_package --verbose_failures --experimental_local_memory_estimate --jobs=16 %{arch_config} ./bazel-bin/tensorflow/tools/pip_package/build_pip_package dist %install @@ -77,6 +76,12 @@ %{_bindir}/* %changelog +* Thu Sep 30 2024 Yuntian Liu <570706213@qq.com> - 2.12.1-3 +- Increase the upper limit version of typing_extensions to fix install + +* Thu Sep 19 2024 Jincheng Miao <jincheng.miao@intel.com> - 2.12.1-2 +- Increase the upper limit version of typing_extensions to fix install + * 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
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2