summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 07:35:43 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 07:35:43 +0000
commite2fa356f425fe8fab01d28da90f098159cb819b2 (patch)
treefa7f086c729760c6c735e6db5dd30355f6be6eab
parent379cb1e33b29f7034e1115cb66277507759c210f (diff)
automatic import of python-pyownetopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-pyownet.spec102
-rw-r--r--sources1
3 files changed, 104 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a4cca4c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyownet-0.10.0.post1.tar.gz
diff --git a/python-pyownet.spec b/python-pyownet.spec
new file mode 100644
index 0000000..0111d64
--- /dev/null
+++ b/python-pyownet.spec
@@ -0,0 +1,102 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyownet
+Version: 0.10.0.post1
+Release: 1
+Summary: Python OWFS client library (owserver protocol)
+License: LGPLv3
+URL: https://github.com/miccoli/pyownet
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/13/97/03560c37663b70cf503e9e0896c60646996de6b5730fd1a6f2f79bb869e2/pyownet-0.10.0.post1.tar.gz
+BuildArch: noarch
+
+
+%description
+Pyownet is a pure python package that allows network client access to
+the `OWFS 1-Wire File System`_ via an `owserver`_ and the `owserver
+network protocol`_, in short *ownet*.
+The ``pyownet.protocol`` module is an implementation of the owserver
+client protocol that exposes owserver messages as methods of a proxy
+object::
+ >>> owproxy = pyownet.protocol.proxy(host="owserver.example.com", port=4304)
+ >>> owproxy.dir()
+ ['/10.67C6697351FF/', '/05.4AEC29CDBAAB/']
+ >>> owproxy.read('/10.67C6697351FF/temperature')
+ ' 91.6195'
+
+%package -n python3-pyownet
+Summary: Python OWFS client library (owserver protocol)
+Provides: python-pyownet
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyownet
+Pyownet is a pure python package that allows network client access to
+the `OWFS 1-Wire File System`_ via an `owserver`_ and the `owserver
+network protocol`_, in short *ownet*.
+The ``pyownet.protocol`` module is an implementation of the owserver
+client protocol that exposes owserver messages as methods of a proxy
+object::
+ >>> owproxy = pyownet.protocol.proxy(host="owserver.example.com", port=4304)
+ >>> owproxy.dir()
+ ['/10.67C6697351FF/', '/05.4AEC29CDBAAB/']
+ >>> owproxy.read('/10.67C6697351FF/temperature')
+ ' 91.6195'
+
+%package help
+Summary: Development documents and examples for pyownet
+Provides: python3-pyownet-doc
+%description help
+Pyownet is a pure python package that allows network client access to
+the `OWFS 1-Wire File System`_ via an `owserver`_ and the `owserver
+network protocol`_, in short *ownet*.
+The ``pyownet.protocol`` module is an implementation of the owserver
+client protocol that exposes owserver messages as methods of a proxy
+object::
+ >>> owproxy = pyownet.protocol.proxy(host="owserver.example.com", port=4304)
+ >>> owproxy.dir()
+ ['/10.67C6697351FF/', '/05.4AEC29CDBAAB/']
+ >>> owproxy.read('/10.67C6697351FF/temperature')
+ ' 91.6195'
+
+%prep
+%autosetup -n pyownet-0.10.0.post1
+
+%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-pyownet -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.10.0.post1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..924b31b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+ae5dfb8f0b209a744415fc5f43240a51 pyownet-0.10.0.post1.tar.gz