From b681f9a98787d5159a12f8fe7ccd968b2d4bff0e Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sat, 13 Apr 2024 13:41:37 +0000 Subject: automatic import of python-pytorch3d --- python-pytorch3d.spec | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/python-pytorch3d.spec b/python-pytorch3d.spec index 675a0b3..71738ba 100644 --- a/python-pytorch3d.spec +++ b/python-pytorch3d.spec @@ -1,13 +1,16 @@ %global pypi_name pytorch3d %global pypi_version 0.7.5 +%global pkg_summary PyTorch3D is FAIR's library of reusable components for deep learning with 3D data +%global pkg_description %{expand: +%{pkg_summary}} %global debug_package %{nil} Name: python-%{pypi_name} Version: %{pypi_version} Release: 1%{?dist} -Summary: PyTorch3D is FAIR's library of reusable components for deep learning with 3D data +Summary: %{pkg_summary} -License: BSD 3-Clause +License: BSD URL: https://github.com/facebookresearch/pytorch3d Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/pytorch3d-%{version}.tar.gz @@ -15,36 +18,42 @@ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: g++ -BuildRequires: python3-tqdm -BuildRequires: python3-requests BuildRequires: python3-devel -BuildRequires: python3-numpy +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling + BuildRequires: python3-pytorch >= 2.1.2 +BuildRequires: python3-fvcore +BuildRequires: python3-iopath +BuildRequires: python3-torchvision + %description -PyTorch3D is FAIR's library of reusable components for deep learning with 3D data +%{pkg_description} %package -n python3-%{pypi_name} -Summary: %{summary} +Summary: %{pkg_summary} %description -n python3-%{pypi_name} -PyTorch3D is FAIR's library of reusable components for deep learning with 3D data +%{pkg_description} %prep -%autosetup -p1 -n pytorch3d-%{pypi_version} +%autosetup -p1 -n %{pypi_name}-%{pypi_version} %build -export MAX_JOBS=4 -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install %files -n python3-%{pypi_name} %license LICENSE %doc README.md -%{python3_sitearch}/%{pypi_name} -%{python3_sitearch}/%{pypi_name}-*.egg-info/ +%{python3_sitearch}/%{pypi_name}* %changelog * Sun Mar 31 2024 YunShu -- cgit v1.2.3