diff options
Diffstat (limited to 'python-aiocasambi.spec')
-rw-r--r-- | python-aiocasambi.spec | 231 |
1 files changed, 231 insertions, 0 deletions
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 +      + +# 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 +      + +# 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 +      + +# 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 |