diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-15 04:33:26 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 04:33:26 +0000 |
commit | 54de07b411cb774e5eca90351e8fbab35ec1d1e1 (patch) | |
tree | 41dcbb32b17d598ce50fa2d77d57612398ae261c | |
parent | abca3b5ca36b34961e6b2a140de075581fed8296 (diff) |
automatic import of python-chat-downloader
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-chat-downloader.spec | 146 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 148 insertions, 0 deletions
@@ -0,0 +1 @@ +/chat-downloader-0.2.5.tar.gz diff --git a/python-chat-downloader.spec b/python-chat-downloader.spec new file mode 100644 index 0000000..ea7e8be --- /dev/null +++ b/python-chat-downloader.spec @@ -0,0 +1,146 @@ +%global _empty_manifest_terminate_build 0 +Name: python-chat-downloader +Version: 0.2.5 +Release: 1 +Summary: A simple tool used to retrieve chat messages from livestreams, videos, clips and past broadcasts. No authentication needed! +License: MIT license +URL: https://github.com/xenova/chat-downloader +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/91/60/a27e17c8503b994006a4d3ece28997c323979b24a7d991513d7b76d9f245/chat-downloader-0.2.5.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-isodate +Requires: python3-docstring-parser +Requires: python3-colorlog +Requires: python3-websocket-client +Requires: python3-flake8 +Requires: python3-twine +Requires: python3-wheel +Requires: python3-tox +Requires: python3-pytest +Requires: python3-coverage +Requires: python3-sphinx +Requires: python3-sphinx-rtd-theme +Requires: python3-sphinxcontrib-programoutput + +%description + usage: chat_downloader [-h] [--version] [--start_time START_TIME] + [--end_time END_TIME] + [--message_types MESSAGE_TYPES | --message_groups MESSAGE_GROUPS] + [--max_attempts MAX_ATTEMPTS] + [--retry_timeout RETRY_TIMEOUT] + [--interruptible_retry [INTERRUPTIBLE_RETRY]] + [--max_messages MAX_MESSAGES] + [--inactivity_timeout INACTIVITY_TIMEOUT] + [--timeout TIMEOUT] [--format FORMAT] + [--format_file FORMAT_FILE] [--chat_type {live,top}] + [--ignore IGNORE] + [--message_receive_timeout MESSAGE_RECEIVE_TIMEOUT] + [--buffer_size BUFFER_SIZE] [--output OUTPUT] + [--overwrite [OVERWRITE]] [--sort_keys [SORT_KEYS]] + [--indent INDENT] [--pause_on_debug | --exit_on_debug] + [--logging {none,debug,info,warning,error,critical} | --testing | --verbose | --quiet] + [--cookies COOKIES] [--proxy PROXY] + url +For example, to save messages from a livestream to a JSON file, you can use: + $ chat_downloader https://www.youtube.com/watch?v=jfKfPfyJRdk --output chat.json +For a description of these options, as well as advanced command line use-cases and examples, consult the `Command Line Usage <https://chat-downloader.readthedocs.io/en/latest/cli.html#command-line-usage>`_ page. + +%package -n python3-chat-downloader +Summary: A simple tool used to retrieve chat messages from livestreams, videos, clips and past broadcasts. No authentication needed! +Provides: python-chat-downloader +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-chat-downloader + usage: chat_downloader [-h] [--version] [--start_time START_TIME] + [--end_time END_TIME] + [--message_types MESSAGE_TYPES | --message_groups MESSAGE_GROUPS] + [--max_attempts MAX_ATTEMPTS] + [--retry_timeout RETRY_TIMEOUT] + [--interruptible_retry [INTERRUPTIBLE_RETRY]] + [--max_messages MAX_MESSAGES] + [--inactivity_timeout INACTIVITY_TIMEOUT] + [--timeout TIMEOUT] [--format FORMAT] + [--format_file FORMAT_FILE] [--chat_type {live,top}] + [--ignore IGNORE] + [--message_receive_timeout MESSAGE_RECEIVE_TIMEOUT] + [--buffer_size BUFFER_SIZE] [--output OUTPUT] + [--overwrite [OVERWRITE]] [--sort_keys [SORT_KEYS]] + [--indent INDENT] [--pause_on_debug | --exit_on_debug] + [--logging {none,debug,info,warning,error,critical} | --testing | --verbose | --quiet] + [--cookies COOKIES] [--proxy PROXY] + url +For example, to save messages from a livestream to a JSON file, you can use: + $ chat_downloader https://www.youtube.com/watch?v=jfKfPfyJRdk --output chat.json +For a description of these options, as well as advanced command line use-cases and examples, consult the `Command Line Usage <https://chat-downloader.readthedocs.io/en/latest/cli.html#command-line-usage>`_ page. + +%package help +Summary: Development documents and examples for chat-downloader +Provides: python3-chat-downloader-doc +%description help + usage: chat_downloader [-h] [--version] [--start_time START_TIME] + [--end_time END_TIME] + [--message_types MESSAGE_TYPES | --message_groups MESSAGE_GROUPS] + [--max_attempts MAX_ATTEMPTS] + [--retry_timeout RETRY_TIMEOUT] + [--interruptible_retry [INTERRUPTIBLE_RETRY]] + [--max_messages MAX_MESSAGES] + [--inactivity_timeout INACTIVITY_TIMEOUT] + [--timeout TIMEOUT] [--format FORMAT] + [--format_file FORMAT_FILE] [--chat_type {live,top}] + [--ignore IGNORE] + [--message_receive_timeout MESSAGE_RECEIVE_TIMEOUT] + [--buffer_size BUFFER_SIZE] [--output OUTPUT] + [--overwrite [OVERWRITE]] [--sort_keys [SORT_KEYS]] + [--indent INDENT] [--pause_on_debug | --exit_on_debug] + [--logging {none,debug,info,warning,error,critical} | --testing | --verbose | --quiet] + [--cookies COOKIES] [--proxy PROXY] + url +For example, to save messages from a livestream to a JSON file, you can use: + $ chat_downloader https://www.youtube.com/watch?v=jfKfPfyJRdk --output chat.json +For a description of these options, as well as advanced command line use-cases and examples, consult the `Command Line Usage <https://chat-downloader.readthedocs.io/en/latest/cli.html#command-line-usage>`_ page. + +%prep +%autosetup -n chat-downloader-0.2.5 + +%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-chat-downloader -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.5-1 +- Package Spec generated @@ -0,0 +1 @@ +3a2be31633d8c16b13b363245fbf4763 chat-downloader-0.2.5.tar.gz |