summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 04:58:01 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 04:58:01 +0000
commitee8f7c49ac7b29c06e82c891420f712887f4d6cf (patch)
tree701038ebca5d2583c93592ab2aaf1acca023947b
parent48de91f8e6e3f947e2fe7eab8466c5f54436088b (diff)
automatic import of python-aiocasambiopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-aiocasambi.spec231
-rw-r--r--sources1
3 files changed, 233 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..dc73dc9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/aiocasambi-0.283.tar.gz
diff --git a/python-aiocasambi.spec b/python-aiocasambi.spec
new file mode 100644
index 0000000..32f339e
--- /dev/null
+++ b/python-aiocasambi.spec
@@ -0,0 +1,231 @@
+%global _empty_manifest_terminate_build 0
+Name: python-aiocasambi
+Version: 0.283
+Release: 1
+Summary: aio library to control Casambi light through cloudapi
+License: MIT
+URL: https://github.com/hellqvio86/aiocasambi
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a6/37/872c18a03aaae36d660770a0b9d843816dbd14505999d5ac6b9abd3e183c/aiocasambi-0.283.tar.gz
+BuildArch: noarch
+
+Requires: python3-aiohttp
+Requires: python3-pyyaml
+Requires: python3-pyyaml
+
+%description
+![PyPI - Python Version](https://img.shields.io/pypi/pyversions/aiocasambi) ![PyPI](https://img.shields.io/pypi/v/aiocasambi) ![GitHub](https://img.shields.io/github/license/hellqvio86/aiocasambi) ![GitHub issues](https://img.shields.io/github/issues-raw/hellqvio86/aiocasambi) ![GitHub last commit](https://img.shields.io/github/last-commit/hellqvio86/aiocasambi) ![PyPI - Downloads](https://img.shields.io/pypi/dm/aiocasambi)
+
+# Python library for controlling Casambi lights
+
+aio Python library for controlling Casambi via Cloud API
+
+## Supported modes
+
+These modes are implemented:
+
+- on/off
+- brightness
+- color temperature
+- rgb
+- rgbw
+
+## Getting Started
+
+1. Request developer api key from Casambi: https://developer.casambi.com/
+2. Setup a site in Casambi app: http://support.casambi.com/support/solutions/articles/12000041325-how-to-create-a-site
+
+## Installating
+
+Install this library through pip:
+
+```
+pip install aiocasambi
+```
+
+## Authors
+
+- **Olof Hellqvist** - _Initial work_
+
+## License
+
+This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
+
+### Test script
+
+Add the credentials to _casambi.yaml.example_ and rename the file to _casambi.yaml_
+
+#### Build localy in env
+
+```
+python3 -m venv aiocasambi
+source ./aiocasambi/bin/activate
+./aiocasambi/bin/pip3 install -r ./aiocasambi/requirements.txt
+```
+
+## Disclaimer
+
+This library is neither affiliated with nor endorsed by Casambi.
+
+
+%package -n python3-aiocasambi
+Summary: aio library to control Casambi light through cloudapi
+Provides: python-aiocasambi
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-aiocasambi
+![PyPI - Python Version](https://img.shields.io/pypi/pyversions/aiocasambi) ![PyPI](https://img.shields.io/pypi/v/aiocasambi) ![GitHub](https://img.shields.io/github/license/hellqvio86/aiocasambi) ![GitHub issues](https://img.shields.io/github/issues-raw/hellqvio86/aiocasambi) ![GitHub last commit](https://img.shields.io/github/last-commit/hellqvio86/aiocasambi) ![PyPI - Downloads](https://img.shields.io/pypi/dm/aiocasambi)
+
+# Python library for controlling Casambi lights
+
+aio Python library for controlling Casambi via Cloud API
+
+## Supported modes
+
+These modes are implemented:
+
+- on/off
+- brightness
+- color temperature
+- rgb
+- rgbw
+
+## Getting Started
+
+1. Request developer api key from Casambi: https://developer.casambi.com/
+2. Setup a site in Casambi app: http://support.casambi.com/support/solutions/articles/12000041325-how-to-create-a-site
+
+## Installating
+
+Install this library through pip:
+
+```
+pip install aiocasambi
+```
+
+## Authors
+
+- **Olof Hellqvist** - _Initial work_
+
+## License
+
+This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
+
+### Test script
+
+Add the credentials to _casambi.yaml.example_ and rename the file to _casambi.yaml_
+
+#### Build localy in env
+
+```
+python3 -m venv aiocasambi
+source ./aiocasambi/bin/activate
+./aiocasambi/bin/pip3 install -r ./aiocasambi/requirements.txt
+```
+
+## Disclaimer
+
+This library is neither affiliated with nor endorsed by Casambi.
+
+
+%package help
+Summary: Development documents and examples for aiocasambi
+Provides: python3-aiocasambi-doc
+%description help
+![PyPI - Python Version](https://img.shields.io/pypi/pyversions/aiocasambi) ![PyPI](https://img.shields.io/pypi/v/aiocasambi) ![GitHub](https://img.shields.io/github/license/hellqvio86/aiocasambi) ![GitHub issues](https://img.shields.io/github/issues-raw/hellqvio86/aiocasambi) ![GitHub last commit](https://img.shields.io/github/last-commit/hellqvio86/aiocasambi) ![PyPI - Downloads](https://img.shields.io/pypi/dm/aiocasambi)
+
+# Python library for controlling Casambi lights
+
+aio Python library for controlling Casambi via Cloud API
+
+## Supported modes
+
+These modes are implemented:
+
+- on/off
+- brightness
+- color temperature
+- rgb
+- rgbw
+
+## Getting Started
+
+1. Request developer api key from Casambi: https://developer.casambi.com/
+2. Setup a site in Casambi app: http://support.casambi.com/support/solutions/articles/12000041325-how-to-create-a-site
+
+## Installating
+
+Install this library through pip:
+
+```
+pip install aiocasambi
+```
+
+## Authors
+
+- **Olof Hellqvist** - _Initial work_
+
+## License
+
+This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
+
+### Test script
+
+Add the credentials to _casambi.yaml.example_ and rename the file to _casambi.yaml_
+
+#### Build localy in env
+
+```
+python3 -m venv aiocasambi
+source ./aiocasambi/bin/activate
+./aiocasambi/bin/pip3 install -r ./aiocasambi/requirements.txt
+```
+
+## Disclaimer
+
+This library is neither affiliated with nor endorsed by Casambi.
+
+
+%prep
+%autosetup -n aiocasambi-0.283
+
+%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-aiocasambi -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.283-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..9fd032b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7292060c4cce865d2f64abac8076e108 aiocasambi-0.283.tar.gz