diff options
author | CoprDistGit <infra@openeuler.org> | 2024-03-31 09:25:34 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-03-31 09:25:34 +0000 |
commit | 4a250315c2ae42eacf5d4b7f889cf70e289227fa (patch) | |
tree | 9ef41e8bb305fe8805e83ef44a15b49e9c61fd07 /python-torchvision.spec | |
parent | 13798894e4c4a38124d1a70dc442c48cd9b8409e (diff) |
automatic import of python-torchvision
Diffstat (limited to 'python-torchvision.spec')
-rw-r--r-- | python-torchvision.spec | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/python-torchvision.spec b/python-torchvision.spec new file mode 100644 index 0000000..608f9c6 --- /dev/null +++ b/python-torchvision.spec @@ -0,0 +1,46 @@ +%global pypi_name torchvision +%global pypi_version 0.16.2 + +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 + +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} + +%changelog +* Sun Mar 31 2024 YunShu +- add torchvision |