diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-03-08 07:08:00 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-03-08 07:08:00 +0000 |
commit | aa77e1bf4cfa3fec4350408d470f65f806b08490 (patch) | |
tree | b7930c42bbcb43c7f3bc6642e000622f0f79658d | |
parent | feb24639c9db833c47ee8abb3c4bef5839febd09 (diff) |
automatic import of python-casttube
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-casttube.spec | 178 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 180 insertions, 0 deletions
@@ -0,0 +1 @@ +/casttube-0.2.1.tar.gz diff --git a/python-casttube.spec b/python-casttube.spec new file mode 100644 index 0000000..6507dfa --- /dev/null +++ b/python-casttube.spec @@ -0,0 +1,178 @@ +%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 +* Wed Mar 08 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.1-1 +- Package Spec generated @@ -0,0 +1 @@ +37f86084a36e0dbd72d45b0452b4b676 casttube-0.2.1.tar.gz |