python-estimator/python-tensorflow-estimator.spec
hubin 13b0f54d6e upgrade to version 2.11.0 for tensorflow 2.10 build
Signed-off-by: hubin <hubin73@huawei.com>
2022-11-21 15:46:00 +08:00

67 lines
2.0 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: tensorflow-estimator
Version: 2.11.0
Release: 1
Summary: TensorFlow Estimator.
License: Apache 2.0
URL: https://www.tensorflow.org/
Source0: https://files.pythonhosted.org/packages/bb/e2/8bf618c7c30a525054230ee6d40b036d3e5abc2c4ff67cf7c7420a519204/tensorflow_estimator-2.11.0-py2.py3-none-any.whl
BuildArch: noarch
%description
TensorFlow Estimator is a high-level API that encapsulates model training,
evaluation, prediction, and exporting.
%package -n python3-tensorflow-estimator
Summary: TensorFlow Estimator.
Provides: python-tensorflow-estimator
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-six
BuildRequires: bazel
%description -n python3-tensorflow-estimator
TensorFlow Estimator is a high-level API that encapsulates model training,
evaluation, prediction, and exporting.
%package help
Summary: Development documents and examples for tensorflow-estimator
Provides: python3-tensorflow-estimator-doc
%description help
TensorFlow Estimator is a high-level API that encapsulates model training,
evaluation, prediction, and exporting.
%prep
%build
mkdir dist
cp %{SOURCE0} dist
%install
%py3_install_wheel *
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/doclist.lst .
%files -n python3-tensorflow-estimator
%{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Mon Nov 21 2022 Bin Hu <hubin73@huawei.com> - 2.11.0-1
- upgrade to version 2.11.0 for tensorflow 2.10 build
* Thu Oct 08 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated