diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 12:31:13 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 12:31:13 +0000 |
commit | 1ceca8eb9cf9685678f33553c9d4ee4da2759225 (patch) | |
tree | b0edb79a457ea36838ed10f1263749958707ddab | |
parent | 6a5432013dbf72cdc7a977b84d7704ca91e7cf83 (diff) |
automatic import of python-deodropeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-deodr.spec | 76 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 78 insertions, 0 deletions
@@ -0,0 +1 @@ +/deodr-0.2.0.tar.gz diff --git a/python-deodr.spec b/python-deodr.spec new file mode 100644 index 0000000..75178c9 --- /dev/null +++ b/python-deodr.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-deodr +Version: 0.2.0 +Release: 1 +Summary: A differentiable renderer with Pytorch,Tensorflow and Matlab interfaces. +License: BSD +URL: https://github.com/martinResearch/DEODR +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7a/00/9a36bdcfbc2f1de1b801bde5917a722a8b901a191b6dd70bbbb850c91922/deodr-0.2.0.tar.gz + +Requires: python3-numpy +Requires: python3-scipy + +%description + + +%package -n python3-deodr +Summary: A differentiable renderer with Pytorch,Tensorflow and Matlab interfaces. +Provides: python-deodr +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-deodr + + +%package help +Summary: Development documents and examples for deodr +Provides: python3-deodr-doc +%description help + + +%prep +%autosetup -n deodr-0.2.0 + +%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-deodr -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.0-1 +- Package Spec generated @@ -0,0 +1 @@ +64aec48923052145fbb4e3e43f894982 deodr-0.2.0.tar.gz |