blob: 75ca150db838ea13ca9576f4da630045a090c697 (
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
|
%global pypi_name torchvision
%global pypi_version 0.16.2
%global debug_package %{nil}
Name: python-%{pypi_name}
Version: %{pypi_version}
Release: 1%{?dist}
Summary: Datasets, Transforms and Models specific to Computer Vision
License: BSD 3-Clause
URL: https://github.com/pytorch/vision
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/vision-%{version}.tar.gz
Patch0: 0001-fix-illegal-char.patch
BuildRequires: cmake
BuildRequires: ninja-build
BuildRequires: python3-tqdm
BuildRequires: python3-requests
BuildRequires: python3-devel
BuildRequires: python3-pytorch
%description
Datasets, Transforms and Models specific to Computer Vision
%package -n python3-%{pypi_name}
Summary: %{summary}
%description -n python3-%{pypi_name}
Datasets, Transforms and Models specific to Computer Vision
%prep
%autosetup -p1 -n vision-%{pypi_version}
%build
%py3_build
%install
%py3_install
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitearch}/%{pypi_name}
%{python3_sitearch}/%{pypi_name}-*.egg-info/
%changelog
* Sun Mar 31 2024 YunShu
- add torchvision
|