From b43b96905b228383c67a79da2b859ed8d3ea2b53 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 2 Dec 2026 09:17:08 +0000 Subject: automatic import of tensorflow --- .gitignore | 1 + sources | 1 + tensorflow-aarch64.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 sources create mode 100644 tensorflow-aarch64.spec diff --git a/.gitignore b/.gitignore index e69de29..02b6b0e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/tensorflow-2.21.0-cp311-cp311-manylinux_2_27_aarch64.whl diff --git a/sources b/sources new file mode 100644 index 0000000..477ec8b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +e280ee38999f714997dd400103abdaee tensorflow-2.21.0-cp311-cp311-manylinux_2_27_aarch64.whl 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 - 2.21.0-1 +- Initial package for tensorflow 2.21.0 (prebuilt manylinux wheels) -- cgit v1.2.3