From 8dfb995a43e5a842cb790f3546b3ce5068bec9eb Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sun, 28 Jan 2024 18:15:57 +0000 Subject: automatic import of python-torchtext --- python-torchtext.spec | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 python-torchtext.spec (limited to 'python-torchtext.spec') diff --git a/python-torchtext.spec b/python-torchtext.spec new file mode 100644 index 0000000..fe04130 --- /dev/null +++ b/python-torchtext.spec @@ -0,0 +1,63 @@ +%global _empty_manifest_terminate_build 0 +%global pypi_name torchtext +%global source_name torchtext + +Name: python-%{pypi_name} +Version: 0.16.2 +Release: 1%{?dist} +Summary: torchtext package for Python3 +URL: https://pytorch.org/text/stable/index.html +Source0: https://github.com/pytorch/text/archive/refs/tags/v0.16.2.tar.gz#/%{name}-%{version}.tar.gz +License: BSD 3-Clause + +Requires: python3-multipledispatch +Requires: python3-tqdm +Requires: python3-requests +Requires: python3-pytorch_package_dep +Requires: python3-numpy +Requires: python3-torchdata_package_dep +Requires: python3-scipy +Requires: python3-torch >= 1.13.1 +Requires: python3-pyro-ppl >= 1.8.4 +Requires: python3-gpytorch >= 1.11 +Requires: python3-linear_operator == 0.5.1 + +%description +The torchtext package consists of data processing utilities and popular datasets for natural language. + +%package -n python3-%{pypi_name} +Summary: Botorch package for Python3 +Provides: python-%{pypi_name} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling + +%description -n python3-%{pypi_name} + +%package help +Summary: Development documents and examples for torchtext +Provides: python3-%{pypi_name}-doc +%description help +documents of torchtext package for python3 + +%prep +%autosetup -p1 -n text-%{version} + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%doc *.md +%license LICENSE +%{python3_sitelib}/* + + +%changelog +* Mon Jan 22 2024 menma <1316818279@qq.com> - 0.9.5-1 +- Package init -- cgit v1.2.3