# Prebuilt manylinux wheels are used as Sources because building TensorFlow # from source requires Bazel plus a version-matched vendored external # dependency cache (the src-openeuler reference ships one for 2.12.1 only, # which is incompatible with 2.21.0) and therefore cannot be done offline. %global debug_package %{nil} %global __os_install_post %{nil} %global _empty_manifest_terminate_build 0 Name: tensorflow Version: 2.21.0 Release: 1%{?dist} Summary: An Open Source Machine Learning Framework for Everyone License: Apache-2.0 URL: https://www.tensorflow.org/ ExclusiveArch: x86_64 aarch64 Source0: https://mirrors.aliyun.com/pypi/packages/26/a1/23b9b39c046c723db63a1c2c93397703efa3400a36f98d9c717b473aafb8/tensorflow-2.21.0-cp311-cp311-manylinux_2_27_x86_64.whl # topdir: none - wheels are prebuilt and unpacked directly into buildroot %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. TensorFlow was originally developed by researchers and engineers working on the Google Brain team within Google's Machine Intelligence Research organization to conduct machine learning and deep neural networks research. %package -n python3-tensorflow Summary: An Open Source Machine Learning Framework for Everyone Provides: python-tensorflow = %{version}-%{release} BuildRequires: unzip BuildRequires: python3-devel BuildRequires: python3-rpm-macros Requires: python3-numpy Requires: python3-protobuf Requires: python3-grpcio Requires: python3-h5py Requires: python3-Keras %description -n python3-tensorflow TensorFlow is an end-to-end open source platform for machine learning. This package provides the TensorFlow Python 3 bindings. %prep %setup -q -c -T -n %{name}-%{version} %build %install mkdir -p %{buildroot}%{python3_sitearch} unzip -q %{SOURCE0} -d %{buildroot}%{python3_sitearch} %files -n python3-tensorflow %{python3_sitearch}/tensorflow %{python3_sitearch}/tensorflow-*.dist-info %changelog * Wed Dec 02 2026 openEuler AI Importer - 2.21.0-1 - Initial package for tensorflow 2.21.0 (prebuilt manylinux wheels)