diff options
author | CoprDistGit <infra@openeuler.org> | 2024-04-15 18:27:00 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-04-15 18:27:00 +0000 |
commit | e3c0c89d3f7691effa6a68524b5319e3d7bc77e7 (patch) | |
tree | 13ce605cb4e866930fe13aa14a2690e93f119c79 | |
parent | fdc5ddd2ffd11733e63da6e764a5b847e2a1fae9 (diff) |
automatic import of torchtext
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | sources | 1 | ||||
-rw-r--r-- | torchtext.spec | 66 |
3 files changed, 68 insertions, 0 deletions
@@ -0,0 +1 @@ +/v0.17.2.tar.gz @@ -0,0 +1 @@ +68518753c6146f84382b0183846452fe v0.17.2.tar.gz diff --git a/torchtext.spec b/torchtext.spec new file mode 100644 index 0000000..54447e5 --- /dev/null +++ b/torchtext.spec @@ -0,0 +1,66 @@ +%global _empty_manifest_terminate_build 0 +%global _unpackaged_files_terminate_build 0 + +# set global to speedup the spec editing +%global pkg_name torchtext +%global version 0.17.2 +%global pkg_summary torchtext is used to process text data +%global pkg_desc %{pkg_summary} +%global pkg_license BSD 3-Clause + +Name: %{pkg_name} +Version: %{version} +Release: 1 +Summary: %{pkg_summary} +License: %{pkg_license} + +# the url and source +URL: https://pytorch.org/text/stable/index.html +Source0: https://github.com/pytorch/text/archive/refs/tags/v%{version}.tar.gz + +# build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-setuptools_scm + +%description +%{pkg_summary} + +# sub pkg section 1 +%package -n python3-%{pkg_name} +Summary: a python3-lib provides text processing functionality + +%description -n python3-%{pkg_name} +python3-transformers provides APIs for transformers realize. + +# pkg section: help optional +# %package -n help +# Summary: docs for the transformers +# Provides: python3-transformers-doc +# %description -n help +# description for the doc of the python3-transformers + + +# the name here should match the name of tar.gz file +%prep +%autosetup -p1 -n text-%{version} + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-%{pkg_name} +%doc README* +%license LICENSE* +%{python3_sitearch}/python_%{pkg_name}/* +# %{python3_sitelib}/python_%{pkg_name}/* + + +%changelog +* Sat April 15 2024 youser<1328699220@qq.com> +- pkg init |