%global _empty_manifest_terminate_build 0 Name: python-casttube Version: 0.2.1 Release: 1 Summary: YouTube chromecast api License: MIT URL: http://github.com/ur1katz/casttube Source0: https://mirrors.nju.edu.cn/pypi/web/packages/78/54/f7e80d701c587940cf1c871fb6327b4a2682df4287896fbf9400cd0bbf21/casttube-0.2.1.tar.gz BuildArch: noarch Requires: python3-requests %description # CastTube casttube provides a way to interact with the Youtube Chromecast api. **Install:** ``` pip install casttube ``` **Features** * Play video * Play a playlist * Add video to the end of the play queue * Play next * Remove video * Clear the entire queue ``` from casttube import YouTubeSession session = YouTubeSession(screen_id) # YouTube video id is http://youtube.com/watch?v=video_id session.play_video(video_id) ``` The library requires 2 things: 1. screen id 2. The Chromecast youtube app needs to be open There is a small script in https://github.com/ur1katz/CastTube-Scripts to print the screen id and launch the app. %package -n python3-casttube Summary: YouTube chromecast api Provides: python-casttube BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-casttube # CastTube casttube provides a way to interact with the Youtube Chromecast api. **Install:** ``` pip install casttube ``` **Features** * Play video * Play a playlist * Add video to the end of the play queue * Play next * Remove video * Clear the entire queue ``` from casttube import YouTubeSession session = YouTubeSession(screen_id) # YouTube video id is http://youtube.com/watch?v=video_id session.play_video(video_id) ``` The library requires 2 things: 1. screen id 2. The Chromecast youtube app needs to be open There is a small script in https://github.com/ur1katz/CastTube-Scripts to print the screen id and launch the app. %package help Summary: Development documents and examples for casttube Provides: python3-casttube-doc %description help # CastTube casttube provides a way to interact with the Youtube Chromecast api. **Install:** ``` pip install casttube ``` **Features** * Play video * Play a playlist * Add video to the end of the play queue * Play next * Remove video * Clear the entire queue ``` from casttube import YouTubeSession session = YouTubeSession(screen_id) # YouTube video id is http://youtube.com/watch?v=video_id session.play_video(video_id) ``` The library requires 2 things: 1. screen id 2. The Chromecast youtube app needs to be open There is a small script in https://github.com/ur1katz/CastTube-Scripts to print the screen id and launch the app. %prep %autosetup -n casttube-0.2.1 %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-casttube -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri Apr 21 2023 Python_Bot - 0.2.1-1 - Package Spec generated