diff options
author | CoprDistGit <infra@openeuler.org> | 2024-04-16 02:51:39 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-04-16 02:51:39 +0000 |
commit | 1a5801c88a57fab5df6cc7effff6a73dad398700 (patch) | |
tree | 1fb6044a023f308f4d20f74931ec6077f9496e5f /pytorch3d.spec | |
parent | d604ebf7a4415c1fba74096d62f6b2f31860f0ba (diff) |
automatic import of pytorch3d
Diffstat (limited to 'pytorch3d.spec')
-rw-r--r-- | pytorch3d.spec | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/pytorch3d.spec b/pytorch3d.spec new file mode 100644 index 0000000..9c2fd36 --- /dev/null +++ b/pytorch3d.spec @@ -0,0 +1,71 @@ +%global _empty_manifest_terminate_build 0 +%global _unpackaged_files_terminate_build 0 + +# using global macro to speed up the spec editing +%global pkg_name pytorch3d +%global version 0.7.6 +%global pkg_summary %{pkg_name} is a library for 3D deep learning, built on top of PyTorch. +%global pkg_desc %{expand:%{pkg_summary}} +%global open_license BSD-License + +Name: %{pkg_name} +Version: %{version} +Release: 1 +Summary: %{pkg_summary} +License: %{open_license} + +# the url and source0 url here +URL: https://pytorch3d.org/ +Source0: https://github.com/facebookresearch/%{pkg_name}/archive/refs/tags/v%{version}.tar.gz#/pytorch3d-%{version}.tar.gz + +# build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-setuptools_scm + +BuildRequires: python3-pytorch + +# higharchy desc +%description +%{pkg_summary} + +# sub pkg section 1 +%package -n python3-%{pkg_name} +Summary: %{pkg_summary} + +%description -n python3-%{pkg_name} +%{pkg_desc} + +# pkg section: help optional +# %package -n help +# Summary: docs for the transformers +# Provides: python3-transformers-doc +# %description -n help +# description for the doc of the python3-transformers + +# the name here should match the name of the dir of the source code zip +# which got from the .tar.gz unzipped +%prep +%autosetup -p1 -n pytorch3d-%{version} + +# using python poject build, supplied by setup.py or pyproject.toml +%build +%pyproject_build + +# using python project install, supplied by setup.py or pyproject.toml +%install +%pyproject_install + +# point out the files here +%files -n python3-%{pkg_name} +%doc *.md +%license LICENSE* +%{python3_sitearch}/{pkg_name}* + + +%changelog +* Mon Apr 15 2024 youser<1328699220@qq.com> +- pkg init |