Add Tensorflow to CBL-Mariner (#4337)
This commit is contained in:
parent
41a1861cae
commit
7bcc3e9d19
File diff suppressed because one or more lines are too long
|
@ -2209,6 +2209,7 @@
|
|||
"swupdate",
|
||||
"SymCrypt",
|
||||
"SymCrypt-OpenSSL",
|
||||
"tensorflow",
|
||||
"terraform",
|
||||
"tinyxml2",
|
||||
"toml11",
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
%global srcname Markdown
|
||||
%global pkgname markdown
|
||||
|
||||
Summary: Markdown implementation in Python
|
||||
Name: python-%{pkgname}
|
||||
Version: 3.2.2
|
||||
Release: 3%{?dist}
|
||||
Summary: Markdown implementation in Python
|
||||
Release: 4%{?dist}
|
||||
License: BSD
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
|
@ -17,26 +16,23 @@ This is a Python implementation of John Gruber’s Markdown. It is
|
|||
almost completely compliant with the reference implementation, though
|
||||
there are a few very minor differences.
|
||||
|
||||
|
||||
%package -n python%{python3_pkgversion}-%{pkgname}
|
||||
Summary: Markdown implementation in Python
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: python%{python3_pkgversion}-PyYAML
|
||||
BuildRequires: python%{python3_pkgversion}-tidy
|
||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||
BuildRequires: python%{python3_pkgversion}-zipp
|
||||
BuildRequires: python%{python3_pkgversion}-importlib-metadata
|
||||
Requires: python%{python3_pkgversion}-importlib-metadata
|
||||
|
||||
Conflicts: python2-%{pkgname} < 3.1-2
|
||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
|
||||
Summary: Markdown implementation in Python
|
||||
BuildRequires: PyYAML
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: python%{python3_pkgversion}-importlib-metadata
|
||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||
BuildRequires: python%{python3_pkgversion}-tidy
|
||||
BuildRequires: python%{python3_pkgversion}-zipp
|
||||
Requires: python%{python3_pkgversion}-importlib-metadata
|
||||
Conflicts: python2-%{pkgname} < 3.1-2
|
||||
|
||||
%description -n python%{python3_pkgversion}-%{pkgname}
|
||||
This is a Python implementation of John Gruber's Markdown. It is
|
||||
almost completely compliant with the reference implementation, though
|
||||
there are a few known issues.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{srcname}-%{version}
|
||||
|
||||
|
@ -65,8 +61,11 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
|||
%{python3_sitelib}/*
|
||||
%{_bindir}/markdown_py
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Nov 30 2022 Riken Maharjan <rmaharjan@microsoft.com> - 3.2.2-4
|
||||
- Move to Core.
|
||||
- License verified.
|
||||
|
||||
* Mon Dec 14 2020 Ruying <v-ruyche@microsoft.com> - 3.2.2-3
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
- Make python3-importlib-metadata requirements default.
|
|
@ -1,73 +1,43 @@
|
|||
%global oname uTidylib
|
||||
|
||||
|
||||
|
||||
%global _description\
|
||||
Python wrapper (bindings) for tidylib, this allows you to tidy HTML\
|
||||
files through a Pythonic interface.
|
||||
Summary: Python wrapper for tidy, from the HTML tidy project
|
||||
Name: python-tidy
|
||||
Version: 0.6
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
License: MIT
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
URL: https://cihar.com/software/utidylib/
|
||||
Source0: http://dl.cihar.com/utidylib/uTidylib-%{version}.tar.bz2
|
||||
%if 0%{?py2}
|
||||
BuildRequires: libtidy
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
BuildRequires: python2-six
|
||||
BuildRequires: python2-tools
|
||||
%endif
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-six
|
||||
BuildArch: noarch
|
||||
%global _description\
|
||||
Python wrapper (bindings) for tidylib, this allows you to tidy HTML\
|
||||
files through a Pythonic interface.
|
||||
|
||||
%description %_description
|
||||
|
||||
%if 0%{?py2}
|
||||
%package -n python2-tidy
|
||||
Summary: %summary
|
||||
%{?python_provide:%python_provide python2-tidy}
|
||||
Requires: libtidy
|
||||
Requires: python2-six
|
||||
%description -n python2-tidy %_description
|
||||
%endif
|
||||
%description %{_description}
|
||||
|
||||
%package -n python3-tidy
|
||||
Summary: %summary
|
||||
%{?python_provide:%python_provide python3-tidy}
|
||||
Summary: %{summary}
|
||||
Requires: libtidy
|
||||
Requires: python3-six
|
||||
%description -n python3-tidy %_description
|
||||
|
||||
%description -n python3-tidy %{_description}
|
||||
|
||||
%prep
|
||||
%setup -q -n %{oname}-%{version}
|
||||
|
||||
%build
|
||||
%{?py2:%{py2_build}}
|
||||
%{py3_build}
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%{?py2:%{py2_install}}
|
||||
%{py3_install}
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
# fail after tidy 5.6
|
||||
%{?py2:%{__python2} setup.py test || :}
|
||||
# todo: fails
|
||||
%{__python3} setup.py test || :
|
||||
python3 setup.py test || :
|
||||
|
||||
%if 0%{?py2}
|
||||
%files -n python2-tidy
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python2_sitelib}/tidy
|
||||
%{python2_sitelib}/uTidylib-*-py2*.egg-info
|
||||
%endif
|
||||
|
||||
%files -n python3-tidy
|
||||
%license LICENSE
|
||||
|
@ -76,6 +46,10 @@ Requires: python3-six
|
|||
%{python3_sitelib}/uTidylib-*-py3*.egg-info
|
||||
|
||||
%changelog
|
||||
* Wed Nov 30 2022 Riken Maharjan <rmaharjan@microsoft.com> - 0.6-5
|
||||
- Move to Core.
|
||||
- License verified.
|
||||
|
||||
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.6-4
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
|
||||
|
@ -184,4 +158,3 @@ Requires: python3-six
|
|||
|
||||
* Sat Feb 16 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.2-1
|
||||
- Initial build.
|
||||
|
|
@ -1,38 +1,28 @@
|
|||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
# Created by pyp2rpm-1.1.1
|
||||
%global sname wrapt
|
||||
|
||||
|
||||
%global with_docs 1
|
||||
|
||||
|
||||
%{!?_licensedir: %global license %%doc}
|
||||
|
||||
Name: python-%{sname}
|
||||
Version: 1.11.2
|
||||
Release: 6%{?dist}
|
||||
Summary: A Python module for decorators, wrappers and monkey patching
|
||||
|
||||
License: BSD
|
||||
URL: https://github.com/GrahamDumpleton/wrapt
|
||||
Source0: https://github.com/GrahamDumpleton/%{sname}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc
|
||||
|
||||
BuildRequires: python3-devel
|
||||
|
||||
%global _description\
|
||||
The aim of the wrapt module is to provide a transparent object proxy\
|
||||
for Python, which can be used as the basis for the construction of\
|
||||
function wrappers and decorator functions.
|
||||
Summary: A Python module for decorators, wrappers and monkey patching
|
||||
Name: python-%{sname}
|
||||
Version: 1.11.2
|
||||
Release: 7%{?dist}
|
||||
License: BSD
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
URL: https://github.com/GrahamDumpleton/wrapt
|
||||
Source0: https://github.com/GrahamDumpleton/%{sname}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
BuildRequires: gcc
|
||||
BuildRequires: python3-devel
|
||||
|
||||
%description %_description
|
||||
%description %{_description}
|
||||
|
||||
%if 0%{?with_docs}
|
||||
%package doc
|
||||
Summary: Documentation for the wrapt module
|
||||
|
||||
BuildRequires: python3-sphinx
|
||||
BuildRequires: python3-sphinx_rtd_theme
|
||||
|
||||
|
@ -41,8 +31,8 @@ Documentation for the wrapt module
|
|||
%endif
|
||||
|
||||
%package -n python3-wrapt
|
||||
Summary: A Python module for decorators, wrappers and monkey patching
|
||||
%{?python_provide:%python_provide python3-wrapt}
|
||||
Summary: A Python module for decorators, wrappers and monkey patching
|
||||
|
||||
%description -n python3-wrapt
|
||||
The aim of the wrapt module is to provide a transparent object proxy
|
||||
|
@ -80,6 +70,10 @@ popd
|
|||
%{python3_sitearch}/%{sname}-%{version}-py?.?.egg-info
|
||||
|
||||
%changelog
|
||||
* Wed Nov 30 2022 Riken Maharjan <rmaharjan@microsoft.com> - 1.11.2-7
|
||||
- Move to Core.
|
||||
- License verified.
|
||||
|
||||
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.11.2-6
|
||||
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"Signatures": {
|
||||
"tensorflow-2.8.3.tar.gz": "4b7ecbe50b36887e1615bc2a582cb86df1250004d8bb540e18336d539803b5a7",
|
||||
"tensorflow-2.8.3-cache.tar.gz":"700bec907a2f762adf0ca5b65112dfd0e4e3e26cdaa4a02de024131b8f1114e0"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,108 @@
|
|||
Summary: TensorFlow is an open source machine learning framework for everyone.
|
||||
Name: tensorflow
|
||||
Version: 2.8.3
|
||||
Release: 1%{?dist}
|
||||
License: ASL 2.0
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Mariner
|
||||
Group: Development/Languages/Python
|
||||
URL: https://www.tensorflow.org/
|
||||
Source0: https://github.com/tensorflow/tensorflow/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Source1: %{name}-%{version}-cache.tar.gz
|
||||
BuildRequires: bazel = 4.2.1
|
||||
BuildRequires: binutils
|
||||
BuildRequires: build-essential
|
||||
BuildRequires: git
|
||||
BuildRequires: libstdc++-devel
|
||||
BuildRequires: pyproject-rpm-macros
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-numpy
|
||||
BuildRequires: python3-packaging
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-requests
|
||||
BuildRequires: python3-wheel
|
||||
BuildRequires: tar
|
||||
BuildRequires: which
|
||||
ExclusiveArch: x86_64
|
||||
|
||||
%description
|
||||
TensorFlow is an open source machine learning framework for everyone.
|
||||
|
||||
%package -n python3-tensorflow
|
||||
Summary: python-tensorflow
|
||||
Requires: python3-MarkupSafe
|
||||
Requires: python3-absl-py
|
||||
Requires: python3-astunparse
|
||||
Requires: python3-cachetools
|
||||
Requires: python3-charset-normalizer
|
||||
Requires: python3-devel
|
||||
Requires: python3-flatbuffers
|
||||
Requires: python3-gast
|
||||
Requires: python3-google-auth
|
||||
Requires: python3-google-auth-oauthlib
|
||||
Requires: python3-grpcio
|
||||
Requires: python3-h5py
|
||||
Requires: python3-idna
|
||||
Requires: python3-importlib-metadata
|
||||
Requires: python3-libclang
|
||||
Requires: python3-markdown
|
||||
Requires: python3-numpy = 1.22.3
|
||||
Requires: python3-oauthlib
|
||||
Requires: python3-opt-einsum
|
||||
Requires: python3-protobuf
|
||||
Requires: python3-pyasn1
|
||||
Requires: python3-pyasn1-modules
|
||||
Requires: python3-requests-oauthlib
|
||||
Requires: python3-rsa
|
||||
Requires: python3-six
|
||||
Requires: python3-termcolor
|
||||
Requires: python3-typing-extensions
|
||||
Requires: python3-werkzeug
|
||||
Requires: python3-wrapt
|
||||
Requires: python3-zipp
|
||||
|
||||
%description -n python3-tensorflow
|
||||
Python 3 version.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
|
||||
%build
|
||||
tar -xf %{SOURCE1} -C /root/
|
||||
|
||||
ln -s %{_bindir}/python3 %{_bindir}/python
|
||||
|
||||
bazel --batch build --verbose_explanations //tensorflow/tools/pip_package:build_pip_package
|
||||
# ---------
|
||||
# steps to create the cache tar. network connection is required to create the cache.
|
||||
#----------------------------------
|
||||
# pushd /root
|
||||
# tar -czvf cacheroot.tar.gz .cache #creating the cache using the /root/.cache directory
|
||||
# popd
|
||||
# mv /root/cacheroot.tar.gz /usr/
|
||||
|
||||
./bazel-bin/tensorflow/tools/pip_package/build_pip_package pyproject-wheeldir/
|
||||
# --------
|
||||
|
||||
|
||||
%install
|
||||
%{pyproject_install}
|
||||
|
||||
|
||||
%files -n python3-tensorflow
|
||||
%license LICENSE
|
||||
%{python3_sitelib}/*
|
||||
%{_bindir}/estimator_ckpt_converter
|
||||
%{_bindir}/import_pb_to_tensorboard
|
||||
%{_bindir}/saved_model_cli
|
||||
%{_bindir}/tensorboard
|
||||
%{_bindir}/tf_upgrade_v2
|
||||
%{_bindir}/tflite_convert
|
||||
%{_bindir}/toco
|
||||
%{_bindir}/toco_from_protos
|
||||
|
||||
%changelog
|
||||
* Thu Sep 22 2022 Riken Maharjan <rmaharjan@microsoft> - 2.8.3-1
|
||||
- License verified
|
||||
- Original version for CBL-Mariner
|
|
@ -26262,6 +26262,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "other",
|
||||
"other": {
|
||||
"name": "tensorflow",
|
||||
"version": "2.8.3",
|
||||
"downloadUrl": "https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.8.3.tar.gz"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"component": {
|
||||
"type": "other",
|
||||
|
|
Loading…
Reference in New Issue