From 709abcece8ef9d12c2c2e40744a3901536080cc5 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 2 Apr 2024 06:52:08 +0000 Subject: automatic import of python-torchvision --- .gitignore | 1 + 0001-fix-illegal-char.patch | 13 ++++++++++++ python-torchvision.spec | 50 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 65 insertions(+) create mode 100644 0001-fix-illegal-char.patch 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/0001-fix-illegal-char.patch b/0001-fix-illegal-char.patch new file mode 100644 index 0000000..aeb0ac4 --- /dev/null +++ b/0001-fix-illegal-char.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index ce67413f41..7632e8a13d 100644 +--- a/setup.py ++++ b/setup.py +@@ -64,7 +64,7 @@ requirements = [ + ] + + # Excluding 8.3.* because of https://github.com/pytorch/vision/issues/4934 +-pillow_ver = " >= 5.3.0, !=8.3.*" ++pillow_ver = " >= 5.3.0, !=8.3.1, !=8.3.2, !=8.3.3" + pillow_req = "pillow-simd" if get_dist("pillow-simd") is not None else "pillow" + requirements.append(pillow_req + pillow_ver) + diff --git a/python-torchvision.spec b/python-torchvision.spec new file mode 100644 index 0000000..e285205 --- /dev/null +++ b/python-torchvision.spec @@ -0,0 +1,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 +* Tue Apr 2 2024 axellance +- 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