%global pypi_name tensorflow %global py_version 37 %global __requires_exclude ^python3.*$ Name: python3-%{pypi_name} Version: 1.13.1 Release: 2%{?dist} Summary: TensorFlow helps the tensors flow License: Apache 2.0 URL: http://tensorflow.org/ # https://www.tensorflow.org/install/install_linux#the_url_of_the_tensorflow_python_package Source0: https://storage.googleapis.com/tensorflow/linux/cpu/%{pypi_name}-%{version}-cp%{py_version}-cp%{py_version}m-linux_x86_64.whl BuildArch: x86_64 BuildRequires: python3-setuptools BuildRequires: python3-six >= 1.10.0 BuildRequires: python3-devel BuildRequires: python3-mock >= 2.0.0 BuildRequires: python3-numpy >= 1.11.0 BuildRequires: python3-protobuf >= 3.6.1 BuildRequires: python3-scipy >= 0.15.1 BuildRequires: python3-wheel BuildRequires: python3-pip BuildRequires: python3-absl Requires: python3-six >= 1.10.0 Requires: python3-mock >= 2.0.0 Requires: python3-numpy >= 1.11.0 Requires: python3-protobuf >= 3.6.0 Requires: python3-h5py >= 2.8.0 Requires: python3-gast >= 0.2 Requires: python3-astor >= 0.6 Requires: python3-absl Requires: python3-grpcio Requires: python3-wheel Requires: python3-keras-preprocessing Requires: python3-keras-applications Requires: python3-termcolor Conflicts: python3-tensorflow-gpu %description TensorFlow is an open source software library for numerical computation using data flow graphs. Nodes in the graph represent mathematical operations, while the graph edges represent the multidimensional data arrays (tensors) that flow between them. This flexible architecture lets you deploy computation to one or more CPUs or GPUs in a desktop, server, or mobile device without rewriting code. TensorFlow also includes TensorBoard, a data visualization toolkit. %prep %build %install pip3 install --no-deps --disable-pip-version-check -I %{SOURCE0} --root %{buildroot} --strip-file-prefix %{buildroot} # fix for wheel package weirdness installing to inconsistent package/directory names mv %{buildroot}/%{python3_sitearch}/%{pypi_name}-%{version}.dist-info %{buildroot}/%{python3_sitelib}/%{pypi_name}-%{version}.dist-info rm -rf %{buildroot}/%{python3_sitelib}/external # Fix python shebang sed -i -e "s|#!/usr/bin/env python|#!/usr/bin/python2|g" %{buildroot}%{python3_sitelib}/tensorflow/aux-bin/tflite_convert %files %{_bindir}/freeze_graph %{_bindir}/saved_model_cli %{_bindir}/tensorboard %{_bindir}/tflite_convert %{_bindir}/tf_upgrade_v2 %{_bindir}/toco %{_bindir}/toco_from_protos %{python3_sitelib}/%{pypi_name}* %changelog * Thu Mar 14 2019 Yupeng Chang - 1.13.1-1 - Update to 1.13.1 * Tue Nov 13 2018 Yupeng Chang - 1.12.0-1 - Update to 1.12.0 * Mon Oct 15 2018 Yupeng Chang - 1.10.1-1 - Update to 1.10.1 * Mon Oct 15 2018 Yupeng Chang - 1.10.0-1 - Update to 1.10.0 * Thu Jul 19 2018 Yupeng Chang - 1.9.0-1 - Update to 1.9.0 * Thu Jul 19 2018 Yupeng Chang - 1.7.1-1 - Update to 1.7.1 * Mon Apr 02 2018 David Goerger - 1.7.0-1 - update to 1.7.0 - deprecate python2 flavour * Wed Nov 08 2017 David Goerger - 1.4.0-1 - update to 1.4.0 * Fri Nov 11 2016 David Goerger - 0.11.0-1 - Initial package.