Name: tensorflow Version: 1.13.1 Release: 1%{?dist} Summary: A framework used for deep learning Group: Development/Languages/Python License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND FSFUL AND MIT AND MPL-2.0 AND OpenSSL AND Python-2.0 URL: https://www.tensorflow.org/ Source0: https://github.com/tensorflow/tensorflow/archive/v%{version}.tar.gz#/tensorflow-%{version}.tar.gz Patch0: adding_config_cpu.patch Patch1: adding_python_bin_path.patch Patch2: rules_closure-tensorflow-1.13.patch BuildRequires: python2-devel BuildRequires: patch BuildRequires: gcc < 5.0 BuildRequires: gcc-c++ < 5.0 BuildRequires: python2-six >= 1.12 BuildRequires: python2-pip BuildRequires: bazel >= 0.21 BuildRequires: python2-keras-applications >= 1.0.6 BuildRequires: python2-keras-preprocessing BuildRequires: numpy >= 1.16.1 BuildRequires: python-google-apputils BuildRequires: protobuf >= 3.6.1 BuildRequires: python2-protobuf >= 3.6.1 BuildRequires: python-enum34 >= 1.1.6 BuildRequires: python2-astor >= 0.6.0 BuildRequires: python2-termcolor >= 1.1.0 BuildRequires: python2-werkzeug >= 0.11.15 BuildRequires: python2-markdown >= 2.6.8 BuildRequires: python2-setuptools > 30 Provides: python2-tensorflow Provides: python2-tensorflow-cpu Requires: numpy >= 1.16.1 Requires: python2-pip Requires: python2-protobuf >= 3.6.1 Requires: python-enum34 >= 1.1.6 Requires: python2-astor >= 0.6.0 Requires: python2-termcolor >= 1.1.0 Requires: python2-werkzeug >= 0.11.15 Requires: python2-markdown >= 2.6.8 %description This open source software library for numerical computation is used for data flow graphs. The graph nodes represent mathematical operations, while the graph edges represent the multidimensional data arrays (tensors) that flow between them. This flexible architecture enables you to deploy computation to one or more CPUs in a desktop, server, or mobile device without rewriting code. %prep %setup -q %patch0 -p0 %patch1 -p0 %patch2 -p0 %build yes | pip install --user --upgrade pip yes | pip install --user wheel mock bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package ./bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg %install pip install --root=%{buildroot} /tmp/tensorflow_pkg/tensorflow-%{version}-cp27-cp27mu-linux_x86_64.whl rm -rf %{buildroot}/usr/lib64/python2.7/site-packages/grpc rm -rf %{buildroot}/usr/lib64/python2.7/site-packages/grpcio-1.19.0.dist-info rm -rf %{buildroot}/usr/lib64/python2.7/site-packages/tensorflow-1.13.1.dist-info %files %{python_sitelib}/* #%{python2_sitelib}/tensorflow-%{version}-py?.?.egg-info %{_bindir}/freeze_graph %{_bindir}/saved_model_cli %{_bindir}/tf_upgrade_v2 %{_bindir}/tensorboard %{_bindir}/tflite_convert %{_bindir}/toco %{_bindir}/toco_from_protos %changelog * Fri Mar 08 2019 Ruslan Pisarev - 1.13.1 - Build for Centos 7 CPU-only