%global _empty_manifest_terminate_build 0 Name: python-pyspcwebgw Version: 0.6.0 Release: 1 Summary: A Python library for communicating with SPC Web Gateway. License: MIT URL: https://github.com/mbrrg/pyspcwebgw Source0: https://mirrors.nju.edu.cn/pypi/web/packages/08/f8/ce9b1ec83c0bdf801bb31089925848108eb95df09949f980ba6f50e87a6e/pyspcwebgw-0.6.0.tar.gz BuildArch: noarch Requires: python3-aiohttp %description Python library for communicating with [Vanderbilt SPC alarm systems](https://vanderbiltindustries.com/spc) via the REST/websocket API provided by the SPC Web Gateway software made by [Lundix IT](http://www.lundix.se/smarta-losningar/). Using this library you can: - Retrieve information for all alarm areas and zones. - Change the alarm mode, i.e. arming and disarming of the alarm system. - Get real-time updates when attributes of areas and zones change, e.g. if motion detector connected to the systems triggers or when the alarm goes off. ## Usage ### Library To use the library in your own application see the example file. %package -n python3-pyspcwebgw Summary: A Python library for communicating with SPC Web Gateway. Provides: python-pyspcwebgw BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-pyspcwebgw Python library for communicating with [Vanderbilt SPC alarm systems](https://vanderbiltindustries.com/spc) via the REST/websocket API provided by the SPC Web Gateway software made by [Lundix IT](http://www.lundix.se/smarta-losningar/). Using this library you can: - Retrieve information for all alarm areas and zones. - Change the alarm mode, i.e. arming and disarming of the alarm system. - Get real-time updates when attributes of areas and zones change, e.g. if motion detector connected to the systems triggers or when the alarm goes off. ## Usage ### Library To use the library in your own application see the example file. %package help Summary: Development documents and examples for pyspcwebgw Provides: python3-pyspcwebgw-doc %description help Python library for communicating with [Vanderbilt SPC alarm systems](https://vanderbiltindustries.com/spc) via the REST/websocket API provided by the SPC Web Gateway software made by [Lundix IT](http://www.lundix.se/smarta-losningar/). Using this library you can: - Retrieve information for all alarm areas and zones. - Change the alarm mode, i.e. arming and disarming of the alarm system. - Get real-time updates when attributes of areas and zones change, e.g. if motion detector connected to the systems triggers or when the alarm goes off. ## Usage ### Library To use the library in your own application see the example file. %prep %autosetup -n pyspcwebgw-0.6.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-pyspcwebgw -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Wed May 10 2023 Python_Bot - 0.6.0-1 - Package Spec generated