summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 09:38:06 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 09:38:06 +0000
commita109dce9887c423ad082a615d39f966e8742609c (patch)
tree4b04ebdd67795c755e1486018977f6afbfbee552
parent0cbb2b2b35625bf4dbe29d3229af3222f2de28a4 (diff)
automatic import of python-pytinyrenderer
-rw-r--r--.gitignore1
-rw-r--r--python-pytinyrenderer.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..87dff11 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pytinyrenderer-0.0.14.tar.gz
diff --git a/python-pytinyrenderer.spec b/python-pytinyrenderer.spec
new file mode 100644
index 0000000..df85b57
--- /dev/null
+++ b/python-pytinyrenderer.spec
@@ -0,0 +1,78 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pytinyrenderer
+Version: 0.0.14
+Release: 1
+Summary: Python bindings for Tiny Renderer
+License: Zlib/PNG License
+URL: https://github.com/erwincoumans/tinyrenderer
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6b/c8/0b12f5b4065e2a7efc8e91949dfc2b6bb26b8c3b9db0f96127b1aac72ae9/pytinyrenderer-0.0.14.tar.gz
+BuildArch: noarch
+
+
+%description
+Python bindings for Tiny Renderer
+
+
+
+%package -n python3-pytinyrenderer
+Summary: Python bindings for Tiny Renderer
+Provides: python-pytinyrenderer
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pytinyrenderer
+Python bindings for Tiny Renderer
+
+
+
+%package help
+Summary: Development documents and examples for pytinyrenderer
+Provides: python3-pytinyrenderer-doc
+%description help
+Python bindings for Tiny Renderer
+
+
+
+%prep
+%autosetup -n pytinyrenderer-0.0.14
+
+%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-pytinyrenderer -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.14-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..5584432
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+3a4ec481fd1384a8c17ac6c4329011a0 pytinyrenderer-0.0.14.tar.gz