2016-12-09 15:38:50 +01:00
|
|
|
#
|
|
|
|
# spec file for package streamlink
|
|
|
|
#
|
2024-01-10 05:38:01 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2016-12-09 15:38:50 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-12-17 07:52:46 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-12-09 15:38:50 +01:00
|
|
|
#
|
|
|
|
|
2017-09-17 14:23:43 +02:00
|
|
|
|
2024-01-29 07:30:20 +01:00
|
|
|
%if 0%{?suse_version} == 1500
|
2023-12-03 10:01:16 +01:00
|
|
|
%{?sle15_python_module_pythons}
|
2024-01-29 07:30:20 +01:00
|
|
|
%else
|
|
|
|
%global pythons python3
|
|
|
|
%endif
|
2022-06-09 14:10:36 +02:00
|
|
|
|
2016-12-09 15:38:50 +01:00
|
|
|
Name: streamlink
|
2024-01-29 07:30:20 +01:00
|
|
|
Version: 6.5.1
|
2016-12-09 15:38:50 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Program to pipe streams from services into a video player
|
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Development/Languages/Python
|
2020-12-17 07:52:46 +01:00
|
|
|
URL: https://streamlink.github.io/
|
2021-08-18 14:37:37 +02:00
|
|
|
Source: https://github.com/%{name}/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://github.com/%{name}/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz.asc
|
2024-01-29 07:30:20 +01:00
|
|
|
Source2: streamlink.keyring
|
2023-12-03 10:01:16 +01:00
|
|
|
BuildRequires: %{python_module Sphinx >= 4}
|
|
|
|
BuildRequires: %{python_module devel >= 3.8}
|
|
|
|
BuildRequires: %{python_module pip >= 9}
|
|
|
|
BuildRequires: %{python_module requests >= 2.26}
|
2020-12-17 07:52:46 +01:00
|
|
|
BuildRequires: fdupes
|
2019-04-14 02:36:17 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2023-12-03 10:01:16 +01:00
|
|
|
#BuildRequires: %#{python_module versioningit >= 2.0.0}
|
|
|
|
BuildRequires: %{python_module wheel}
|
2021-05-22 13:11:44 +02:00
|
|
|
|
2023-12-03 10:01:16 +01:00
|
|
|
# SECTION TEST REQUIREMENTS
|
|
|
|
BuildRequires: %{python_module pytest >= 6.0.0}
|
|
|
|
BuildRequires: %{python_module freezegun >= 1.0.0}
|
|
|
|
BuildRequires: %{python_module pytest >= 6.0.0}
|
|
|
|
BuildRequires: %{python_module pytest-asyncio}
|
|
|
|
BuildRequires: %{python_module pytest-trio}
|
|
|
|
BuildRequires: %{python_module requests-mock}
|
|
|
|
# /SECTION
|
|
|
|
|
|
|
|
BuildRequires: %{python_module PySocks >= 1.5.6}
|
|
|
|
BuildRequires: %{python_module certifi}
|
|
|
|
BuildRequires: %{python_module isodate}
|
|
|
|
BuildRequires: %{python_module lxml >= 4.6.4}
|
|
|
|
BuildRequires: %{python_module pycountry}
|
|
|
|
BuildRequires: %{python_module pycryptodome >= 3.4.3}
|
|
|
|
BuildRequires: %{python_module trio >= 0.22.0}
|
|
|
|
BuildRequires: %{python_module trio-websocket >= 0.9.0}
|
|
|
|
BuildRequires: %{python_module typing-extensions >= 4.0.0}
|
|
|
|
BuildRequires: %{python_module urllib3 >= 1.26.0}
|
|
|
|
BuildRequires: %{python_module websocket-client >= 1.2.1}
|
|
|
|
BuildConflicts: %{python_module PySocks = 1.5.7}
|
2021-05-22 13:11:44 +02:00
|
|
|
|
2022-06-13 10:22:54 +02:00
|
|
|
Requires: python3-PySocks >= 1.5.6
|
2023-03-09 19:13:54 +01:00
|
|
|
Requires: python3-certifi
|
2020-12-17 07:52:46 +01:00
|
|
|
Requires: python3-isodate
|
2022-06-13 10:22:54 +02:00
|
|
|
Requires: python3-lxml >= 4.6.4
|
2019-04-14 02:36:17 +02:00
|
|
|
Requires: python3-pycountry
|
2022-06-13 10:22:54 +02:00
|
|
|
Requires: python3-pycryptodome >= 3.4.3
|
|
|
|
Requires: python3-requests >= 2.26
|
Accepting request 1119762 from home:hzu
- Update to version 6.2.1:
+ Added: official support for Python 3.12 (#5576)
+ Fixed plugins: goodgame (#5557), nos (#5565), pandalive (#5569), wwenetwork (#5559)
+ Build: added custom setuptools build-backend override which fixes issues with building Windows-specific wheels (#5558)
- Update to version 6.2.0:
+ Added: --player-env CLI argument (#5535)
+ Added: OpenSSL version to debug log output (#5506)
+ Updated: segmented stream internals and typing (#5504, #5507)
+ Updated: internal HLS tag parsing setup and parser state (#5513, #5521)
+ Fixed: HLS streams not ending on playlist reload with endlist tag and no new segments (#5538)
+ Fixed: missing file encoding when writing a log file (#5532)
+ Added plugins: piaulizaportal (#5508)
+ Fixed plugins: hiplayer (#5534), nicolive (#5529), pluto (#5551)
+ Docs: added list of supported metadata variables for each plugin (#5517, #5519)
- Update to version 6.1.0:
+ Added: --hls-segment-queue-threshold for being able to configure when to stop HLS streams early on missing segments (#5478)
+ Fixed: config file parsing issues and made parsing argument values more strict (#5484)
+ Fixed: race condition when reading and validating the FFmpeg version string (#5480)
+ Fixed plugins: atresplayer (#5477)
+ Docs: added code examples for the removal of Streamlink.{g,s}et_plugin_option (#5497)
+ Build: fixed entry-points config issues with setuptools 68.1.0 (#5500)
- Update to version 6.0.1:
+ Added: missing options argument to Streamlink.streams() (#5469)
+ Fixed: migration docs and the 6.0.0 changelog of the Streamlink.{g,s}et_plugin_option() removal (#5471)
+ Fixed plugins: huya (#5467)
+ Docs: updated build-dependencies and the furo theme (#5464, #5465)
- Update to version 6.0.0:
+ BREAKING: dropped support for Python 3.7 (#5302)
+ BREAKING: turned --player CLI argument into a player-path-only argument (#5305, #5310)
+ BREAKING: removed deprecated {filename} variable from --player-args (#5310)
+ BREAKING/API: removed support for the deprecated Plugin.can_handle_url() / Plugin.priority() classmethods (#5403)
+ BREAKING/API: removed deprecated compatibility wrapper for the Plugin constructor (#5402)
+ BREAKING/API: removed Streamlink.{g,s}et_plugin_option() (#5033)
+ BREAKING/API: removed deprecated global plugin arguments (#5033)
+ BREAKING/API: removed deprecated streamlink.plugin.api.validate.text (#5404)
+ BREAKING/API: fixed/changed signatures of HTTPStream, HLSStream and HLSStream.parse_variant_playlist() (#5429)
+ BREAKING/packaging: new signing key 44448A298D5C3618 (#5449)
+ Added: experimental streamlink.webbrowser API for extracting data from websites using the system's Chromium-based web browser (#5380, #5381, #5386, #5388, #5410)
+ See the --webbrowser, --webbrowser-executable and related CLI arguments for more
+ Added: client-integrity token support to Twitch plugin using the streamlink.webbrowser API (currently only used as a fallback when acquiring the access token fails) (#5414)
+ Added: {playertitleargs} variable to --player-args (#5310)
+ Added: with_{video,audio}_only parameters to DASHStream.parse_manifest() (#5340)
+ Changed: HLS streams to stop early on missing EXT-X-ENDLIST tag when polling the playlist doesn't yield new segments for twice its targetduration value (#5330)
+ Fixed: regex of optional protocol plugin parameters (#5367)
+ Fixed plugins: lrt (#5444), mediavitrina (#5376), mitele (#5436), NRK (#5408), pluzz (#5369), rtvs (#5443), showroom (#5390), turkuvaz (#5374), vimeo (#5335), youtube (#5351)
+ Docs: added migrations page for further guidance on resolving breaking changes (#5433)
+ Docs: split up, updated and improved API docs (#5398)
+ Build: moved project metadata to pyproject.toml (PEP621) (#5438)
+ Dependencies: added trio (#5386), trio-websocket and typing-extensions (#5388), and removed importlib_metadata (#5302)
OBS-URL: https://build.opensuse.org/request/show/1119762
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/streamlink?expand=0&rev=32
2023-10-24 23:40:46 +02:00
|
|
|
Requires: python3-trio >= 0.22.0
|
|
|
|
Requires: python3-trio-websocket >= 0.9.0
|
|
|
|
Requires: python3-typing-extensions >= 4.0.0
|
2023-03-09 19:13:54 +01:00
|
|
|
Requires: python3-urllib3 >= 1.26.0
|
2022-06-13 10:22:54 +02:00
|
|
|
Requires: python3-websocket-client >= 1.2.1
|
|
|
|
Conflicts: python3-PySocks = 1.5.7
|
2021-05-22 13:11:44 +02:00
|
|
|
|
2020-12-17 07:52:46 +01:00
|
|
|
Recommends: vlc
|
|
|
|
Suggests: ffmpeg
|
|
|
|
BuildArch: noarch
|
2016-12-09 15:38:50 +01:00
|
|
|
|
|
|
|
%description
|
2022-08-04 10:04:11 +02:00
|
|
|
Streamlink is a command-line utility which pipes video streams from various
|
|
|
|
services into a video player, such as VLC. The main purpose of Streamlink is to
|
|
|
|
avoid resource-heavy and unoptimized websites, while still allowing the user to
|
|
|
|
enjoy various streamed content.
|
2016-12-09 15:38:50 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2022-06-09 14:10:36 +02:00
|
|
|
%pyproject_wheel
|
2016-12-09 15:38:50 +01:00
|
|
|
|
|
|
|
%install
|
2022-06-09 14:10:36 +02:00
|
|
|
%pyproject_install
|
2016-12-09 15:38:50 +01:00
|
|
|
|
|
|
|
find %{buildroot}{%{python3_sitelib},%{python_sitelib}} -type f -name '*.py' | while read py; do
|
|
|
|
if [[ "$(head -c2 "$py"; echo)" == "#!" ]]; then
|
|
|
|
chmod a+x "$py"
|
|
|
|
else
|
|
|
|
chmod a-x "$py"
|
|
|
|
fi
|
|
|
|
done
|
2019-08-22 10:23:54 +02:00
|
|
|
%fdupes -s %{buildroot}
|
2016-12-09 15:38:50 +01:00
|
|
|
|
2021-05-22 13:11:44 +02:00
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
|
2016-12-09 15:38:50 +01:00
|
|
|
%files
|
2018-06-25 13:08:06 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS CHANGELOG.md MANIFEST.in README.md
|
2016-12-09 15:38:50 +01:00
|
|
|
%{_bindir}/%{name}
|
2022-06-13 10:22:54 +02:00
|
|
|
%{python3_sitelib}/%{name}
|
|
|
|
%{python3_sitelib}/%{name}_cli
|
|
|
|
%{python3_sitelib}/%{name}-%{version}*-info
|
2021-08-18 14:37:37 +02:00
|
|
|
%_mandir/man*/*
|
2022-06-09 14:10:36 +02:00
|
|
|
%{_datadir}/bash-completion/completions/streamlink
|
|
|
|
%dir %{_datadir}/zsh
|
|
|
|
%dir %{_datadir}/zsh/site-functions
|
|
|
|
%{_datadir}/zsh/site-functions/_streamlink
|
2016-12-09 15:38:50 +01:00
|
|
|
|
|
|
|
%changelog
|