streamlink/streamlink.spec

111 lines
3.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package streamlink
#
# Copyright (c) 2023 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/
#
%define pythons python3
Name: streamlink
Accepting request 1090844 from home:dgarcia:branches:multimedia:apps - Update to version 5.5.1: + Fixed: shifting time offset when reloading HLS playlists (#5321) + Fixed: import of create_urllib3_context on urllib3 <2.0.0 (#5333) + Fixed: Vimeo plugin (#5331) 5.5.0: + Added: --no-config (#5314) + Added: --player-external-http-interface (#5295) + Fixed: M3U8 attribute parsing issue (#5307) + Fixed: various minor plugin issues (#5291, #5299, #5306) + Build: bumped urllib3 to >=1.26.0,<3 and fixed compatibility issues with urllib3 >=2.0.0 (#5326, #5325) + Docs: bumped furo theme to 2023.03.27 (#5301) + Docs: bumped build dependencies sphinx >=5.0.0,<7, myst-parser >=1.0.0,<2 and sphinx-design >=0.4.1,<1 (#5301) 5.4.0: + Added: --progress CLI argument and deprecated --force-progress (#5268) + Added: --dash-manifest-reload-attempts and respective session option (#5208) + Improved: DASH segment availability/download logging (#5214, #5235) + Refactored: DASH parser + stream implementation (#5221, #5224, #5225, #5244, #5248) + Fixed: DASH segment template numbers and availability times (#5213, #5217, #5233) + Fixed: DASH manifest mediaPresentationDuration and period duration (#5226) + Fixed: DASH manifest suggestedPresentationDelay (#5215) + Fixed: various DASH manifest parsing bugs (#5247) + Fixed: DASH timeline IDs not being unique (#5199) + Fixed: DASH substreams not having synced timelines (#5262) + Fixed: queued DASH segments being downloaded after closing the stream (#5236, #5237) + Fixed: incorrect min/max values of certain numeric CLI arguments (#5239) + Fixed: all naive datetime objects and made them timezone-aware (#5210) + Fixed: TV5monde plugin with new implementation (#5206) + Fixed: Steam plugin missing CDN auth data in stream URLs (#5222) + Fixed: Vimeo plugin's playerConfig regex (#5227) + Fixed: VKplay plugin's validation schema (#5251) + Fixed: Twitcasting plugin with new implementation (#5255) + Tests: fixed setuptools/pkg_resources DeprecationWarnings (#5167, #5230) + Tests: fixed ResourceWarnings due to stale file handles (#5242) + Added plugins: indihometv (#5266), telemadrid (#5212) + Removed plugins: nbcnews (#5279), useetv (#5266) OBS-URL: https://build.opensuse.org/request/show/1090844 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/streamlink?expand=0&rev=30
2023-06-07 01:44:59 +02:00
Version: 5.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
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: python3-Sphinx >= 4
BuildRequires: python3-devel >= 3.7
BuildRequires: python3-pip >= 9
BuildRequires: python3-requests >= 2.26
BuildRequires: python3-versioningit >= 2.0.0
BuildRequires: python3-wheel
# TEST REQUIREMENTS
BuildRequires: python3-pytest >= 6.0.0
BuildRequires: python3-PySocks >= 1.5.6
BuildRequires: python3-certifi
BuildRequires: python3-freezegun >= 1.0.0
BuildRequires: python3-isodate
BuildRequires: python3-lxml >= 4.6.4
BuildRequires: python3-pycountry
BuildRequires: python3-pycryptodome >= 3.4.3
BuildRequires: python3-pytest-asyncio
BuildRequires: python3-requests-mock
BuildRequires: python3-urllib3 >= 1.26.0
BuildRequires: python3-websocket-client >= 1.2.1
BuildConflicts: python3-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
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