From 8ea603cc42c49b12a7780050768e3fbb92624356 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 31 May 2023 05:22:33 +0000 Subject: automatic import of python-wonderbits --- python-wonderbits.spec | 150 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 150 insertions(+) create mode 100644 python-wonderbits.spec (limited to 'python-wonderbits.spec') diff --git a/python-wonderbits.spec b/python-wonderbits.spec new file mode 100644 index 0000000..1ccdad1 --- /dev/null +++ b/python-wonderbits.spec @@ -0,0 +1,150 @@ +%global _empty_manifest_terminate_build 0 +Name: python-wonderbits +Version: 6.1.4 +Release: 1 +Summary: wonderbits by mfeducation. +License: MIT +URL: https://github.com/BigCircleLaw/wonderguy.git +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/af/36/6c97ffccc5ac82e577648a3e08dca83b9dfea5f49bb04c5dd8897a609a21/wonderbits-6.1.4.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-pyserial +Requires: python3-Click +Requires: python3-wonderbits-ampy +Requires: python3-esptool +Requires: python3-wonderbitscloud + +%description + +### 豌豆拼 +> 重写了豌豆拼python硬件交互逻辑 + + +```python +from wonderbits import Display, wb_tool, Control, Led +import random +import time +# wb_tool.show_console() + +d = Display() +c = Control() +l = Led() + +for i in range(20): + d.print(1,1,i) + v = c.get_sw4() + l.set_rgb(random.randint(0,255),random.randint(0,255),random.randint(0,255)) + print(v) + time.sleep(1) +``` + + + + +%package -n python3-wonderbits +Summary: wonderbits by mfeducation. +Provides: python-wonderbits +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-wonderbits + +### 豌豆拼 +> 重写了豌豆拼python硬件交互逻辑 + + +```python +from wonderbits import Display, wb_tool, Control, Led +import random +import time +# wb_tool.show_console() + +d = Display() +c = Control() +l = Led() + +for i in range(20): + d.print(1,1,i) + v = c.get_sw4() + l.set_rgb(random.randint(0,255),random.randint(0,255),random.randint(0,255)) + print(v) + time.sleep(1) +``` + + + + +%package help +Summary: Development documents and examples for wonderbits +Provides: python3-wonderbits-doc +%description help + +### 豌豆拼 +> 重写了豌豆拼python硬件交互逻辑 + + +```python +from wonderbits import Display, wb_tool, Control, Led +import random +import time +# wb_tool.show_console() + +d = Display() +c = Control() +l = Led() + +for i in range(20): + d.print(1,1,i) + v = c.get_sw4() + l.set_rgb(random.randint(0,255),random.randint(0,255),random.randint(0,255)) + print(v) + time.sleep(1) +``` + + + + +%prep +%autosetup -n wonderbits-6.1.4 + +%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-wonderbits -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 31 2023 Python_Bot - 6.1.4-1 +- Package Spec generated -- cgit v1.2.3