From 36a3d0200815073a3502c847de399a89d7a67c30 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 05:43:52 +0000 Subject: automatic import of python-saleae --- .gitignore | 1 + python-saleae.spec | 129 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 131 insertions(+) create mode 100644 python-saleae.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..5d9e02d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/saleae-0.12.0.tar.gz diff --git a/python-saleae.spec b/python-saleae.spec new file mode 100644 index 0000000..8394fdf --- /dev/null +++ b/python-saleae.spec @@ -0,0 +1,129 @@ +%global _empty_manifest_terminate_build 0 +Name: python-saleae +Version: 0.12.0 +Release: 1 +Summary: Library to control a Saleae +License: MIT +URL: https://github.com/ppannuto/python-saleae +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3a/22/8817b6c010bff926e77a2ad3485682a49a430fa6695b9ad1b4aa0a6fd123/saleae-0.12.0.tar.gz +BuildArch: noarch + + +%description +|travisci| |docs| +This library implements the control protocol for the +`Saleae Logic Analyzer `__. It is based off of the +documentation and example here: +https://github.com/saleae/SaleaeSocketApi +**IMPORTANT: You must enable the 'Remote Scripting Server' in Saleae.** Click +on "Options" in the top-right, the "Developer" tab, and check "Enable scripting +socket server". This should not require a restart. +This library requires Saleae Logic 1.2.x or greater. Unfortunately there is no +way to check the version of Logic running using the scripting protocol so this +is difficult to check at runtime. +Currently, this is basically a direct mapping of API calls with some small +sanity checking and conveniences. It has not been extensively tested beyond +my immediate needs, but it also should not have any known problems. +To get a feel for how the library works and what it can do, try the built-in demo: + #!/usr/bin/env python3 + import saleae + saleae.demo() +Issues, updates, pull requests, etc should be directed +`to github `__. + +%package -n python3-saleae +Summary: Library to control a Saleae +Provides: python-saleae +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-saleae +|travisci| |docs| +This library implements the control protocol for the +`Saleae Logic Analyzer `__. It is based off of the +documentation and example here: +https://github.com/saleae/SaleaeSocketApi +**IMPORTANT: You must enable the 'Remote Scripting Server' in Saleae.** Click +on "Options" in the top-right, the "Developer" tab, and check "Enable scripting +socket server". This should not require a restart. +This library requires Saleae Logic 1.2.x or greater. Unfortunately there is no +way to check the version of Logic running using the scripting protocol so this +is difficult to check at runtime. +Currently, this is basically a direct mapping of API calls with some small +sanity checking and conveniences. It has not been extensively tested beyond +my immediate needs, but it also should not have any known problems. +To get a feel for how the library works and what it can do, try the built-in demo: + #!/usr/bin/env python3 + import saleae + saleae.demo() +Issues, updates, pull requests, etc should be directed +`to github `__. + +%package help +Summary: Development documents and examples for saleae +Provides: python3-saleae-doc +%description help +|travisci| |docs| +This library implements the control protocol for the +`Saleae Logic Analyzer `__. It is based off of the +documentation and example here: +https://github.com/saleae/SaleaeSocketApi +**IMPORTANT: You must enable the 'Remote Scripting Server' in Saleae.** Click +on "Options" in the top-right, the "Developer" tab, and check "Enable scripting +socket server". This should not require a restart. +This library requires Saleae Logic 1.2.x or greater. Unfortunately there is no +way to check the version of Logic running using the scripting protocol so this +is difficult to check at runtime. +Currently, this is basically a direct mapping of API calls with some small +sanity checking and conveniences. It has not been extensively tested beyond +my immediate needs, but it also should not have any known problems. +To get a feel for how the library works and what it can do, try the built-in demo: + #!/usr/bin/env python3 + import saleae + saleae.demo() +Issues, updates, pull requests, etc should be directed +`to github `__. + +%prep +%autosetup -n saleae-0.12.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-saleae -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot - 0.12.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..02ac20c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +d5dc9a0b25cf19488d654d89ba222b3a saleae-0.12.0.tar.gz -- cgit v1.2.3