summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 02:00:02 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 02:00:02 +0000
commitfc847a4d7f553a4a1ce72183a3f0cf1d8066d6ee (patch)
tree2d9581b24db0e7069cf495c5a2a6565fef1d53eb
parentd39829a93a3d07657f6d2fca7bdf34cc388673e4 (diff)
automatic import of python-gizeh
-rw-r--r--.gitignore1
-rw-r--r--python-gizeh.spec99
-rw-r--r--sources1
3 files changed, 101 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2954e36 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gizeh-0.1.11.tar.gz
diff --git a/python-gizeh.spec b/python-gizeh.spec
new file mode 100644
index 0000000..b4e972c
--- /dev/null
+++ b/python-gizeh.spec
@@ -0,0 +1,99 @@
+%global _empty_manifest_terminate_build 0
+Name: python-gizeh
+Version: 0.1.11
+Release: 1
+Summary: Simple vector graphics in Python
+License: see LICENSE.txt
+URL: https://pypi.org/project/gizeh/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/28/e4/58a0811c60f72b6a4d69b780f1b7d718061170042eb112e86f7c5c4981af/gizeh-0.1.11.tar.gz
+BuildArch: noarch
+
+
+%description
+Gizeh is a Python library for vector graphics:
+ # Let's draw a red circle !
+ import gizeh
+ surface = gizeh.Surface(width=320, height=260) # in pixels
+ circle = gizeh.circle(r=30, xy=[40,40], fill=(1,0,0))
+ circle.draw(surface) # draw the circle on the surface
+ surface.write_to_png("circle.png") # export the surface as a PNG
+You can see examples of Gizeh in action (combined with MoviePy to make animations) in `this blog post <http://zulko.github.io/blog/2014/09/20/vector-animations-with-python/>`_.
+Gizeh is written on top of the module ``cairocffi``, which is a Python binding of the popular C library Cairo_. Cairo is powerful, but difficult to learn and use. Gizeh implements a few classes on top of Cairo that make it more intuitive.
+Gizeh should work on any platform and with python 2 and 3.
+
+%package -n python3-gizeh
+Summary: Simple vector graphics in Python
+Provides: python-gizeh
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-gizeh
+Gizeh is a Python library for vector graphics:
+ # Let's draw a red circle !
+ import gizeh
+ surface = gizeh.Surface(width=320, height=260) # in pixels
+ circle = gizeh.circle(r=30, xy=[40,40], fill=(1,0,0))
+ circle.draw(surface) # draw the circle on the surface
+ surface.write_to_png("circle.png") # export the surface as a PNG
+You can see examples of Gizeh in action (combined with MoviePy to make animations) in `this blog post <http://zulko.github.io/blog/2014/09/20/vector-animations-with-python/>`_.
+Gizeh is written on top of the module ``cairocffi``, which is a Python binding of the popular C library Cairo_. Cairo is powerful, but difficult to learn and use. Gizeh implements a few classes on top of Cairo that make it more intuitive.
+Gizeh should work on any platform and with python 2 and 3.
+
+%package help
+Summary: Development documents and examples for gizeh
+Provides: python3-gizeh-doc
+%description help
+Gizeh is a Python library for vector graphics:
+ # Let's draw a red circle !
+ import gizeh
+ surface = gizeh.Surface(width=320, height=260) # in pixels
+ circle = gizeh.circle(r=30, xy=[40,40], fill=(1,0,0))
+ circle.draw(surface) # draw the circle on the surface
+ surface.write_to_png("circle.png") # export the surface as a PNG
+You can see examples of Gizeh in action (combined with MoviePy to make animations) in `this blog post <http://zulko.github.io/blog/2014/09/20/vector-animations-with-python/>`_.
+Gizeh is written on top of the module ``cairocffi``, which is a Python binding of the popular C library Cairo_. Cairo is powerful, but difficult to learn and use. Gizeh implements a few classes on top of Cairo that make it more intuitive.
+Gizeh should work on any platform and with python 2 and 3.
+
+%prep
+%autosetup -n gizeh-0.1.11
+
+%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-gizeh -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.11-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..2b80c26
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c36642771860047284fabd6a39d49697 gizeh-0.1.11.tar.gz