%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 - 0.10.0.post1-1 - Package Spec generated