summaryrefslogtreecommitdiff
path: root/python-torchvision.spec
blob: 3da79e73af72be26e2b270bc7f5a2515dbe4b94a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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
Requires:	python3-pytorch == 2.1

%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

%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
* Fri Jan 26 2024 menma <1316818279@qq.com> - 0.16.2-1
- Package init