streamlink/streamlink.spec

125 lines
4.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package streamlink
#
# Copyright (c) 2024 SUSE LLC
#
# 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.
Accepting request 856591 from home:MasterPatricko - Update to 1.7.0: * Added: new plugins for micous.com, tv999.bg and cbsnews.com * Added: new embedded ad detection for Twitch streams (#3213) * Fixed: a few broken plugins and minor plugin issues (see changelog down below) * Fixed: arguments in config files were read too late before taking effect (#3255) * Fixed: Arte plugin returning too many streams and overriding primary ones (#3228) * Fixed: Twitch plugin error when stream metadata API response is empty (#3223) * Fixed: Zattoo login issues (#3202) * Changed: plugin request and submission guidelines (#3244) * Changed: refactored and cleaned up Twitch plugin (#3227) * Removed: platform=_ stream token request parameter from Twitch plugin (again) (#3220) * Removed: plugins for itvplayer, aljazeeraen, srgssr and dingittv - Update to 1.6.0: * Fixed: lots of broken plugins and minor plugin issues (see changelog down below) * Fixed: embedded ads on Twitch with an ads workaround, removing pre-roll and mid-stream ads (#3173) * Fixed: read timeout error when filtering out HLS segments (#3187) * Fixed: twitch plugin logging incorrect low-latency status when pre-roll ads exist (#3169) * Fixed: crunchyroll auth logic (#3150) * Added: the --hls-playlist-reload-time parameter for customizing HLS playlist reload times (#2925) * Added: python -m streamlink invocation style support (#3174) * Added: plugin for mrt.com.mk (#3097) * Changed: yupptv plugin and replaced email+pass with id+token authentication (#3116) * Removed: plugins for vaughnlive, pandatv, douyutv, cybergame, europaplus and startv OBS-URL: https://build.opensuse.org/request/show/856591 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/streamlink?expand=0&rev=13
2020-12-17 07:52:46 +01:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if 0%{?suse_version} == 1500
%{?sle15_python_module_pythons}
%else
%global pythons python3
%endif
Name: streamlink
Version: 6.5.1
Release: 0
Summary: Program to pipe streams from services into a video player
License: BSD-2-Clause
Group: Development/Languages/Python
Accepting request 856591 from home:MasterPatricko - Update to 1.7.0: * Added: new plugins for micous.com, tv999.bg and cbsnews.com * Added: new embedded ad detection for Twitch streams (#3213) * Fixed: a few broken plugins and minor plugin issues (see changelog down below) * Fixed: arguments in config files were read too late before taking effect (#3255) * Fixed: Arte plugin returning too many streams and overriding primary ones (#3228) * Fixed: Twitch plugin error when stream metadata API response is empty (#3223) * Fixed: Zattoo login issues (#3202) * Changed: plugin request and submission guidelines (#3244) * Changed: refactored and cleaned up Twitch plugin (#3227) * Removed: platform=_ stream token request parameter from Twitch plugin (again) (#3220) * Removed: plugins for itvplayer, aljazeeraen, srgssr and dingittv - Update to 1.6.0: * Fixed: lots of broken plugins and minor plugin issues (see changelog down below) * Fixed: embedded ads on Twitch with an ads workaround, removing pre-roll and mid-stream ads (#3173) * Fixed: read timeout error when filtering out HLS segments (#3187) * Fixed: twitch plugin logging incorrect low-latency status when pre-roll ads exist (#3169) * Fixed: crunchyroll auth logic (#3150) * Added: the --hls-playlist-reload-time parameter for customizing HLS playlist reload times (#2925) * Added: python -m streamlink invocation style support (#3174) * Added: plugin for mrt.com.mk (#3097) * Changed: yupptv plugin and replaced email+pass with id+token authentication (#3116) * Removed: plugins for vaughnlive, pandatv, douyutv, cybergame, europaplus and startv OBS-URL: https://build.opensuse.org/request/show/856591 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/streamlink?expand=0&rev=13
2020-12-17 07:52:46 +01:00
URL: https://streamlink.github.io/
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
Source2: streamlink.keyring
BuildRequires: %{python_module Sphinx >= 4}
BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module pip >= 9}
BuildRequires: %{python_module requests >= 2.26}
Accepting request 856591 from home:MasterPatricko - Update to 1.7.0: * Added: new plugins for micous.com, tv999.bg and cbsnews.com * Added: new embedded ad detection for Twitch streams (#3213) * Fixed: a few broken plugins and minor plugin issues (see changelog down below) * Fixed: arguments in config files were read too late before taking effect (#3255) * Fixed: Arte plugin returning too many streams and overriding primary ones (#3228) * Fixed: Twitch plugin error when stream metadata API response is empty (#3223) * Fixed: Zattoo login issues (#3202) * Changed: plugin request and submission guidelines (#3244) * Changed: refactored and cleaned up Twitch plugin (#3227) * Removed: platform=_ stream token request parameter from Twitch plugin (again) (#3220) * Removed: plugins for itvplayer, aljazeeraen, srgssr and dingittv - Update to 1.6.0: * Fixed: lots of broken plugins and minor plugin issues (see changelog down below) * Fixed: embedded ads on Twitch with an ads workaround, removing pre-roll and mid-stream ads (#3173) * Fixed: read timeout error when filtering out HLS segments (#3187) * Fixed: twitch plugin logging incorrect low-latency status when pre-roll ads exist (#3169) * Fixed: crunchyroll auth logic (#3150) * Added: the --hls-playlist-reload-time parameter for customizing HLS playlist reload times (#2925) * Added: python -m streamlink invocation style support (#3174) * Added: plugin for mrt.com.mk (#3097) * Changed: yupptv plugin and replaced email+pass with id+token authentication (#3116) * Removed: plugins for vaughnlive, pandatv, douyutv, cybergame, europaplus and startv OBS-URL: https://build.opensuse.org/request/show/856591 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/streamlink?expand=0&rev=13
2020-12-17 07:52:46 +01:00
BuildRequires: fdupes
BuildRequires: python-rpm-macros
#BuildRequires: %#{python_module versioningit >= 2.0.0}
BuildRequires: %{python_module wheel}
# 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}
Requires: python3-PySocks >= 1.5.6
Requires: python3-certifi
Accepting request 856591 from home:MasterPatricko - Update to 1.7.0: * Added: new plugins for micous.com, tv999.bg and cbsnews.com * Added: new embedded ad detection for Twitch streams (#3213) * Fixed: a few broken plugins and minor plugin issues (see changelog down below) * Fixed: arguments in config files were read too late before taking effect (#3255) * Fixed: Arte plugin returning too many streams and overriding primary ones (#3228) * Fixed: Twitch plugin error when stream metadata API response is empty (#3223) * Fixed: Zattoo login issues (#3202) * Changed: plugin request and submission guidelines (#3244) * Changed: refactored and cleaned up Twitch plugin (#3227) * Removed: platform=_ stream token request parameter from Twitch plugin (again) (#3220) * Removed: plugins for itvplayer, aljazeeraen, srgssr and dingittv - Update to 1.6.0: * Fixed: lots of broken plugins and minor plugin issues (see changelog down below) * Fixed: embedded ads on Twitch with an ads workaround, removing pre-roll and mid-stream ads (#3173) * Fixed: read timeout error when filtering out HLS segments (#3187) * Fixed: twitch plugin logging incorrect low-latency status when pre-roll ads exist (#3169) * Fixed: crunchyroll auth logic (#3150) * Added: the --hls-playlist-reload-time parameter for customizing HLS playlist reload times (#2925) * Added: python -m streamlink invocation style support (#3174) * Added: plugin for mrt.com.mk (#3097) * Changed: yupptv plugin and replaced email+pass with id+token authentication (#3116) * Removed: plugins for vaughnlive, pandatv, douyutv, cybergame, europaplus and startv OBS-URL: https://build.opensuse.org/request/show/856591 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/streamlink?expand=0&rev=13
2020-12-17 07:52:46 +01:00
Requires: python3-isodate
Requires: python3-lxml >= 4.6.4
Requires: python3-pycountry
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
Requires: python3-urllib3 >= 1.26.0
Requires: python3-websocket-client >= 1.2.1
Conflicts: python3-PySocks = 1.5.7
Accepting request 856591 from home:MasterPatricko - Update to 1.7.0: * Added: new plugins for micous.com, tv999.bg and cbsnews.com * Added: new embedded ad detection for Twitch streams (#3213) * Fixed: a few broken plugins and minor plugin issues (see changelog down below) * Fixed: arguments in config files were read too late before taking effect (#3255) * Fixed: Arte plugin returning too many streams and overriding primary ones (#3228) * Fixed: Twitch plugin error when stream metadata API response is empty (#3223) * Fixed: Zattoo login issues (#3202) * Changed: plugin request and submission guidelines (#3244) * Changed: refactored and cleaned up Twitch plugin (#3227) * Removed: platform=_ stream token request parameter from Twitch plugin (again) (#3220) * Removed: plugins for itvplayer, aljazeeraen, srgssr and dingittv - Update to 1.6.0: * Fixed: lots of broken plugins and minor plugin issues (see changelog down below) * Fixed: embedded ads on Twitch with an ads workaround, removing pre-roll and mid-stream ads (#3173) * Fixed: read timeout error when filtering out HLS segments (#3187) * Fixed: twitch plugin logging incorrect low-latency status when pre-roll ads exist (#3169) * Fixed: crunchyroll auth logic (#3150) * Added: the --hls-playlist-reload-time parameter for customizing HLS playlist reload times (#2925) * Added: python -m streamlink invocation style support (#3174) * Added: plugin for mrt.com.mk (#3097) * Changed: yupptv plugin and replaced email+pass with id+token authentication (#3116) * Removed: plugins for vaughnlive, pandatv, douyutv, cybergame, europaplus and startv OBS-URL: https://build.opensuse.org/request/show/856591 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/streamlink?expand=0&rev=13
2020-12-17 07:52:46 +01:00
Recommends: vlc
Suggests: ffmpeg
BuildArch: noarch
%description
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.
%prep
%setup -q
%build
%pyproject_wheel
%install
%pyproject_install
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
%fdupes -s %{buildroot}
%check
%pytest
%files
%license LICENSE
%doc AUTHORS CHANGELOG.md MANIFEST.in README.md
%{_bindir}/%{name}
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}_cli
%{python3_sitelib}/%{name}-%{version}*-info
%_mandir/man*/*
%{_datadir}/bash-completion/completions/streamlink
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_streamlink
%changelog