From 1ff73a22d33572055dee7d69cea872ad23c5689b Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sun, 31 Mar 2024 09:29:34 +0000 Subject: automatic import of python-torchvision --- .gitignore | 1 + sources | 1 + torchvision.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 sources create mode 100644 torchvision.spec diff --git a/.gitignore b/.gitignore index e69de29..3a44dbe 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/python-torchvision-0.16.2.tar.gz diff --git a/sources b/sources new file mode 100644 index 0000000..aa95b86 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +a0e7f9cc2aa638576fd8088813377294 python-torchvision-0.16.2.tar.gz diff --git a/torchvision.spec b/torchvision.spec new file mode 100644 index 0000000..da0baa5 --- /dev/null +++ b/torchvision.spec @@ -0,0 +1,51 @@ +%global _empty_manifest_terminate_build 0 +Name: python-torchvision +Version: 0.16.2 +Release: 1 +Summary: torchvision package for python3 +License: BSD 3-Clause +URL: https://pytorch.org/vision/stable/index.html +Source0: https://github.com/pytorch/vision/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz + +Requires: python3 >= 3.8 + +%description +PyTorchVision is a computer vision library based on PyTorch. This package provides tools and pre-trained models for various computer vision tasks. + +%package -n python3-torchvision +Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration +Provides: python-torchvision +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-pytorch + +%description -n python3-torchvision +The torchvision package consists of popular datasets, model architectures, and common image transformations for computer vision. + +%package help +Summary: Development documents and examples for torch +Provides: python3-torchvision-doc +%description help +torchvision help docs + +%prep +%autosetup -p1 -n vision-%{version} + +%build +%py3_build + +%install +%py3_install + +%files -n python3-torchvision +%doc *.md +%license LICENSE +%{python3_sitearch}/torchvision/* +%{python3_sitearch}/torchvision-%{version}-py%{python3_version}.egg-info/* + +%changelog +* Sat. Mar 30 2024 JackLiu - 0.16.2-1 +- Package init -- cgit v1.2.3