summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 06:27:26 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 06:27:26 +0000
commit856538298ae75ab4931f7bd1e3270b8f2def9d55 (patch)
tree7f73e6e351007e61c981438ce7dea6f830a813c3
parentd6f9c8de17d39510f8df4e4d7e98becdbdbeb25a (diff)
automatic import of python-jacdac-python
-rw-r--r--.gitignore1
-rw-r--r--python-jacdac-python.spec123
-rw-r--r--sources1
3 files changed, 125 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b0b8c9d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jacdac-python-0.2.15.tar.gz
diff --git a/python-jacdac-python.spec b/python-jacdac-python.spec
new file mode 100644
index 0000000..6b46d88
--- /dev/null
+++ b/python-jacdac-python.spec
@@ -0,0 +1,123 @@
+%global _empty_manifest_terminate_build 0
+Name: python-jacdac-python
+Version: 0.2.15
+Release: 1
+Summary: Python client package for Jacdac
+License: MIT
+URL: https://microsoft.github.io/jacdac-docs/clients/python/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/cf/5e/5bc9cab617f0067df1d0e2e868b4edd6e62fb7fd04a492414cef0325f6aa/jacdac-python-0.2.15.tar.gz
+BuildArch: noarch
+
+Requires: python3-websocket-client
+Requires: python3-websockets
+Requires: python3-requests
+Requires: python3-spidev
+Requires: python3-pyserial
+Requires: python3-spidev
+
+%description
+# Jacdac Python
+
+A Python client and server SDK for Jacdac.
+
+**Jacdac** is a plug-and-play hardware/software stack
+for **microcontrollers** and their peripherals (sensors/actuators),
+with applications to rapid prototyping, making, and physical computing.
+
+- **[Jacdac Home](https://aka.ms/jacdac/)**
+- **[Jacdac Python Documentation](https://microsoft.github.io/jacdac-docs/clients/python/)**
+- **[API Reference](https://jacdac-python.readthedocs.io/)**
+- Discussions at https://github.com/microsoft/jacdac/discussions
+- Issues are tracked on https://github.com/microsoft/jacdac/issues
+
+
+
+
+%package -n python3-jacdac-python
+Summary: Python client package for Jacdac
+Provides: python-jacdac-python
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-jacdac-python
+# Jacdac Python
+
+A Python client and server SDK for Jacdac.
+
+**Jacdac** is a plug-and-play hardware/software stack
+for **microcontrollers** and their peripherals (sensors/actuators),
+with applications to rapid prototyping, making, and physical computing.
+
+- **[Jacdac Home](https://aka.ms/jacdac/)**
+- **[Jacdac Python Documentation](https://microsoft.github.io/jacdac-docs/clients/python/)**
+- **[API Reference](https://jacdac-python.readthedocs.io/)**
+- Discussions at https://github.com/microsoft/jacdac/discussions
+- Issues are tracked on https://github.com/microsoft/jacdac/issues
+
+
+
+
+%package help
+Summary: Development documents and examples for jacdac-python
+Provides: python3-jacdac-python-doc
+%description help
+# Jacdac Python
+
+A Python client and server SDK for Jacdac.
+
+**Jacdac** is a plug-and-play hardware/software stack
+for **microcontrollers** and their peripherals (sensors/actuators),
+with applications to rapid prototyping, making, and physical computing.
+
+- **[Jacdac Home](https://aka.ms/jacdac/)**
+- **[Jacdac Python Documentation](https://microsoft.github.io/jacdac-docs/clients/python/)**
+- **[API Reference](https://jacdac-python.readthedocs.io/)**
+- Discussions at https://github.com/microsoft/jacdac/discussions
+- Issues are tracked on https://github.com/microsoft/jacdac/issues
+
+
+
+
+%prep
+%autosetup -n jacdac-python-0.2.15
+
+%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-jacdac-python -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.15-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..c22fe20
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+d2ac7f69b6b7a18d2b3fa851b1ab4f45 jacdac-python-0.2.15.tar.gz