diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 17:11:05 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 17:11:05 +0000 |
commit | 21a15ee6f0261c6cea1a433522d58637d89d622e (patch) | |
tree | ce053ed0ffb5e7b8c1c3fb0a97440ace1b80525a | |
parent | 60e2d70e304d6d720f52de0415eb6482c7b72b12 (diff) |
automatic import of python-pychromecast
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pychromecast.spec | 108 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 110 insertions, 0 deletions
@@ -0,0 +1 @@ +/PyChromecast-13.0.7.tar.gz diff --git a/python-pychromecast.spec b/python-pychromecast.spec new file mode 100644 index 0000000..f41bba8 --- /dev/null +++ b/python-pychromecast.spec @@ -0,0 +1,108 @@ +%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 <https://home-assistant.io>`_ *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 <https://home-assistant.io>`_ *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 <https://home-assistant.io>`_ *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 +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 13.0.7-1 +- Package Spec generated @@ -0,0 +1 @@ +bb48bced920a239ec2d2e7fc024b4253 PyChromecast-13.0.7.tar.gz |