summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 09:53:44 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 09:53:44 +0000
commiteac3bad87a085b45d7e4c8656bcd9497bba59fc5 (patch)
tree200c3798bc3b359294a94d982491da8a434adcd4
parent737a1d957adb54a2eb023823c6800ec65946461e (diff)
automatic import of python-pyspcwebgw
-rw-r--r--.gitignore1
-rw-r--r--python-pyspcwebgw.spec112
-rw-r--r--sources1
3 files changed, 114 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..be3e7d1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyspcwebgw-0.6.0.tar.gz
diff --git a/python-pyspcwebgw.spec b/python-pyspcwebgw.spec
new file mode 100644
index 0000000..abe3be5
--- /dev/null
+++ b/python-pyspcwebgw.spec
@@ -0,0 +1,112 @@
+%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 <Python_Bot@openeuler.org> - 0.6.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8178b39
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+cd65817aa48ae2d72f4d5d4fe7bf377d pyspcwebgw-0.6.0.tar.gz