%global _empty_manifest_terminate_build 0 Name: python-epson-projector Version: 0.5.0 Release: 1 Summary: Epson projector support for Python License: MIT URL: https://github.com/pszafer/epson_projector Source0: https://mirrors.nju.edu.cn/pypi/web/packages/26/4c/70d8f13492095c48ba640f246ce2e1fdb57e0c7cae89aa31fbf7e80efe0b/epson_projector-0.5.0.tar.gz BuildArch: noarch Requires: python3-aiohttp Requires: python3-pyserial-asyncio Requires: python3-async-timeout %description # Epson-projector module ## Asynchronous library to control epson projectors Requires Python 3.5. asyncio, aiohttp. Created mostly to use with Home Assistant. ### Usage Check out test.py and const.py to see all posibilities to send to projector. ```python """Test and example of usage of Epson module.""" import epson_projector as epson from epson_projector.const import (POWER) import asyncio import aiohttp async def main(): """Run main with aiohttp ClientSession.""" async with aiohttp.ClientSession() as session: await run(session) async def run(websession): """Use Projector class of epson module and check if it is turned on.""" projector = epson.Projector( host='HOSTNAME', websession=websession, encryption=False) data = await projector.get_property(POWER) print(data) asyncio.get_event_loop().run_until_complete(main()) ``` %package -n python3-epson-projector Summary: Epson projector support for Python Provides: python-epson-projector BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-epson-projector # Epson-projector module ## Asynchronous library to control epson projectors Requires Python 3.5. asyncio, aiohttp. Created mostly to use with Home Assistant. ### Usage Check out test.py and const.py to see all posibilities to send to projector. ```python """Test and example of usage of Epson module.""" import epson_projector as epson from epson_projector.const import (POWER) import asyncio import aiohttp async def main(): """Run main with aiohttp ClientSession.""" async with aiohttp.ClientSession() as session: await run(session) async def run(websession): """Use Projector class of epson module and check if it is turned on.""" projector = epson.Projector( host='HOSTNAME', websession=websession, encryption=False) data = await projector.get_property(POWER) print(data) asyncio.get_event_loop().run_until_complete(main()) ``` %package help Summary: Development documents and examples for epson-projector Provides: python3-epson-projector-doc %description help # Epson-projector module ## Asynchronous library to control epson projectors Requires Python 3.5. asyncio, aiohttp. Created mostly to use with Home Assistant. ### Usage Check out test.py and const.py to see all posibilities to send to projector. ```python """Test and example of usage of Epson module.""" import epson_projector as epson from epson_projector.const import (POWER) import asyncio import aiohttp async def main(): """Run main with aiohttp ClientSession.""" async with aiohttp.ClientSession() as session: await run(session) async def run(websession): """Use Projector class of epson module and check if it is turned on.""" projector = epson.Projector( host='HOSTNAME', websession=websession, encryption=False) data = await projector.get_property(POWER) print(data) asyncio.get_event_loop().run_until_complete(main()) ``` %prep %autosetup -n epson-projector-0.5.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-epson-projector -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Thu Mar 09 2023 Python_Bot - 0.5.0-1 - Package Spec generated