From 464e655d58b7f363e98edaaf8f3a546b97df714a Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sat, 13 Apr 2024 14:11:08 +0000 Subject: automatic import of python-torchtext --- python-torchtext.spec | 25 +++++++++++++++++-------- 1 file 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 -- cgit v1.2.3