summaryrefslogtreecommitdiff
path: root/python-torchgeometry.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 10:05:58 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 10:05:58 +0000
commit350c02995f5004fd1e4d6eb982c86d0388149ce9 (patch)
tree9e2d5033fb74c7b3ce2abd8c9b934a1c4f740e71 /python-torchgeometry.spec
parent2db5c415d8dcf2caa193434e813cf693bb3ce396 (diff)
automatic import of python-torchgeometryopeneuler20.03
Diffstat (limited to 'python-torchgeometry.spec')
-rw-r--r--python-torchgeometry.spec88
1 files changed, 88 insertions, 0 deletions
diff --git a/python-torchgeometry.spec b/python-torchgeometry.spec
new file mode 100644
index 0000000..d8162ce
--- /dev/null
+++ b/python-torchgeometry.spec
@@ -0,0 +1,88 @@
+%global _empty_manifest_terminate_build 0
+Name: python-torchgeometry
+Version: 0.1.2
+Release: 1
+Summary: differential geometric computer vision for deep learning
+License: BSD
+URL: https://github.com/arraiyopensource/torchgeometry
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3e/bb/5a7c43067349a2e85a3ccb249e4a2ff6518358e40be1a3062f94f34ca8e9/torchgeometry-0.1.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-torch
+
+%description
+**From pip:**
+ pip install torchgeometry
+**From source:**
+ python setup.py install
+**From source using pip:**
+ pip install git+https://github.com/arraiyopensource/torchgeometry
+
+%package -n python3-torchgeometry
+Summary: differential geometric computer vision for deep learning
+Provides: python-torchgeometry
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-torchgeometry
+**From pip:**
+ pip install torchgeometry
+**From source:**
+ python setup.py install
+**From source using pip:**
+ pip install git+https://github.com/arraiyopensource/torchgeometry
+
+%package help
+Summary: Development documents and examples for torchgeometry
+Provides: python3-torchgeometry-doc
+%description help
+**From pip:**
+ pip install torchgeometry
+**From source:**
+ python setup.py install
+**From source using pip:**
+ pip install git+https://github.com/arraiyopensource/torchgeometry
+
+%prep
+%autosetup -n torchgeometry-0.1.2
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-torchgeometry -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.2-1
+- Package Spec generated