diff options
Diffstat (limited to 'tensorflow-aarch64.spec')
| -rw-r--r-- | tensorflow-aarch64.spec | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/tensorflow-aarch64.spec b/tensorflow-aarch64.spec new file mode 100644 index 0000000..4dda1be --- /dev/null +++ b/tensorflow-aarch64.spec @@ -0,0 +1,60 @@ +# 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/9c/7c/57b7ee953b40d5d837136d20af6851b20ea6ca63753fc05699e8bcfab6d5/tensorflow-2.21.0-cp311-cp311-manylinux_2_27_aarch64.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 <ai-importer@openeuler.org> - 2.21.0-1 +- Initial package for tensorflow 2.21.0 (prebuilt manylinux wheels) |
