From 4a250315c2ae42eacf5d4b7f889cf70e289227fa Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sun, 31 Mar 2024 09:25:34 +0000 Subject: automatic import of python-torchvision --- .gitignore | 1 + python-torchvision.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 48 insertions(+) create mode 100644 python-torchvision.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..a700c16 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/vision-0.16.2.tar.gz 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 diff --git a/sources b/sources new file mode 100644 index 0000000..a707d45 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +a0e7f9cc2aa638576fd8088813377294 vision-0.16.2.tar.gz -- cgit v1.2.3