diff options
author | CoprDistGit <infra@openeuler.org> | 2024-04-13 14:11:08 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-04-13 14:11:08 +0000 |
commit | 464e655d58b7f363e98edaaf8f3a546b97df714a (patch) | |
tree | e985ae826bee39485887a9e1a35a6d197950cb91 /python-torchtext.spec | |
parent | 760689a82989dda50b91981948d05599066ceb9f (diff) |
automatic import of python-torchtext
Diffstat (limited to 'python-torchtext.spec')
-rw-r--r-- | python-torchtext.spec | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/python-torchtext.spec b/python-torchtext.spec index 8c55b74..874b193 100644 --- a/python-torchtext.spec +++ b/python-torchtext.spec @@ -1,10 +1,13 @@ %global pypi_name torchtext %global pypi_version 0.16.2 +%global pkg_summary Models, data loaders and abstractions for language processing, powered by PyTorch +%global pkg_description %{expand: +%{pkg_summary}} Name: python-%{pypi_name} Version: %{pypi_version} Release: 1%{?dist} -Summary: Models, data loaders and abstractions for language processing, powered by PyTorch +Summary: %{pkg_summary} License: BSD 3-Clause URL: https://github.com/pytorch/text @@ -21,31 +24,37 @@ BuildRequires: double-conversion-devel BuildRequires: python3-tqdm BuildRequires: python3-requests BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling + BuildRequires: python3-pytorch >= 2.1.2 %description -Models, data loaders and abstractions for language processing, powered by PyTorch +%{pkg_description} %package -n python3-%{pypi_name} -Summary: %{summary} +Summary: %{pkg_summary} %description -n python3-%{pypi_name} -Models, data loaders and abstractions for language processing, powered by PyTorch +%{pkg_description} %prep %autosetup -p1 -n text-%{pypi_version} %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install %files -n python3-%{pypi_name} %license LICENSE %doc README.rst -%{python3_sitearch}/%{pypi_name} -%{python3_sitearch}/%{pypi_name}-*.egg-info/ +%{python3_sitearch}/%{pypi_name}* %changelog * Sun Mar 31 2024 YunShu |