%global _empty_manifest_terminate_build 0 Name: python-PyChromecast Version: 13.0.7 Release: 1 Summary: Python module to talk to Google Chromecast. License: MIT URL: https://github.com/balloob/pychromecast Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d9/cb/d3e8dd7384e2bb4db859486b7a73355934288d65c6f45c65ae59f6abea25/PyChromecast-13.0.7.tar.gz BuildArch: noarch Requires: python3-protobuf Requires: python3-zeroconf Requires: python3-casttube %description Library for Python 3.6+ to communicate with the Google Chromecast. It currently supports: - Auto discovering connected Chromecasts on the network - Start the default media receiver and play any online media - Control playback of current playing media - Implement Google Chromecast api v2 - Communicate with apps via channels - Easily extendable to add support for unsupported namespaces - Multi-room setups with Audio cast devices *Check out* `Home Assistant `_ *for a ready-made solution using PyChromecast for controlling and automating your Chromecast or Cast-enabled device like Google Home.* %package -n python3-PyChromecast Summary: Python module to talk to Google Chromecast. Provides: python-PyChromecast BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-PyChromecast Library for Python 3.6+ to communicate with the Google Chromecast. It currently supports: - Auto discovering connected Chromecasts on the network - Start the default media receiver and play any online media - Control playback of current playing media - Implement Google Chromecast api v2 - Communicate with apps via channels - Easily extendable to add support for unsupported namespaces - Multi-room setups with Audio cast devices *Check out* `Home Assistant `_ *for a ready-made solution using PyChromecast for controlling and automating your Chromecast or Cast-enabled device like Google Home.* %package help Summary: Development documents and examples for PyChromecast Provides: python3-PyChromecast-doc %description help Library for Python 3.6+ to communicate with the Google Chromecast. It currently supports: - Auto discovering connected Chromecasts on the network - Start the default media receiver and play any online media - Control playback of current playing media - Implement Google Chromecast api v2 - Communicate with apps via channels - Easily extendable to add support for unsupported namespaces - Multi-room setups with Audio cast devices *Check out* `Home Assistant `_ *for a ready-made solution using PyChromecast for controlling and automating your Chromecast or Cast-enabled device like Google Home.* %prep %autosetup -n PyChromecast-13.0.7 %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-PyChromecast -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri Apr 21 2023 Python_Bot - 13.0.7-1 - Package Spec generated