SHA256
1
0
forked from pool/yt-dlp
yt-dlp/yt-dlp.spec

127 lines
3.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package yt-dlp
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: yt-dlp
Accepting request 1066513 from home:Kieltux:branches:network:utilities - Update to release 2023.02.17 * Merge youtube-dl: Upto commit/2dd6c6e * Fix --concat-playlist * Imply --no-progress when --print * Improve default subtitle language selection * Make title completely non-fatal * Sanitize formats before sorting * Support module level __bool__ and property * [dependencies] Standardize Cryptodome imports * [hls] Allow extractors to provide AES key * [ExtractAudio] Handle outtmpl without ext * [extractor/common] Fix _search_nuxt_data * [extractor/generic] Avoid catastrophic backtracking in KVS regex * [jsinterp] Support if statements * [plugins] Fix zip search paths * [utils] traverse_obj: Various improvements * [utils] traverse_obj: Fix more bugs * [utils] traverse_obj: Fix several behavioral problems * [utils] Don't use Content-length with encoding * [utils] Fix time_seconds to use the provided TZ * [utils] Fix race condition in make_dir * [utils] Use local kernel32 for file locking on Windows * [compat_utils] Improve passthrough_module * [compat_utils] Simplify EnhancedModule * [build] Update pyinstaller * [pyinst] Fix for pyinstaller 5.8 * [devscripts] Provide pyinstaller hooks * [devscripts/pyinstaller] Analyze sub-modules of Cryptodome * [cleanup] Misc fixes and cleanup * [extractor/anchorfm] Add episode * [extractor/boxcast] Add extractor * [extractor/ebay] Add extractor * [extractor/hypergryph] Add extractor * [extractor/NZOnScreen] Add extractor * [extractor/rozhlas] Add extractor * [extractor/tempo] Add IVXPlayer extractor * [extractor/txxx] Add extractors * [extractor/vocaroo] Add extractor * [extractor/wrestleuniverse] Add extractors * [extractor/yappy] Add extractor * [extractor/youtube] Fix uploader_id extraction * [extractor/youtube] Add hyperpipe instances * [extractor/youtube] Handle consent.youtube * [extractor/youtube] Support /live/ URL * [extractor/youtube] Update invidious and piped instances * [extractor/91porn] Fix title and comment extraction * [extractor/AbemaTV] Cache user token whenever appropriate * [extractor/bfmtv] Support rmc prefix * [extractor/biliintl] Add intro and ending chapters * [extractor/clyp] Support wav * [extractor/crunchyroll] Add intro chapter * [extractor/crunchyroll] Better message for premium videos * [extractor/crunchyroll] Fix incorrect premium-only error * [extractor/DouyuTV] Use new API * [extractor/embedly] Embedded links may be for other extractors * [extractor/freesound] Workaround invalid URL in webpage * [extractor/GoPlay] Use new API * [extractor/Hidive] Fix subtitles and age-restriction * [extractor/huya] Support HD streams * [extractor/moviepilot] Fix extractor * [extractor/nbc] Fix NBC and NBCStations extractors * [extractor/nbc] Fix XML parsing * [extractor/nebula] Remove broken cookie support * [extractor/nfl] Add NFLPlus extractor * [extractor/niconico] Add support for like history * [extractor/nitter] Update instance list by OIRNOIR * [extractor/npo] Fix extractor and add HD support * [extractor/odkmedia] Add OnDemandChinaEpisodeIE * [extractor/pornez] Handle relative URLs in iframe * [extractor/radiko] Fix format sorting for Time Free * [extractor/rcs] Fix extractors * [extractor/reddit] Support user posts * [extractor/rumble] Fix format sorting * [extractor/servus] Rewrite extractor * [extractor/slideslive] Fix slides and chapters/duration * [extractor/SportDeutschland] Fix extractor * [extractor/Stripchat] Fix extractor * [extractor/tnaflix] Fix extractor * [extractor/tvp] Support stream.tvp.pl * [extractor/twitter] Fix --no-playlist and add media view_count when using GraphQL * [extractor/twitter] Fix graphql extraction on some tweets * [extractor/vimeo] Fix playerConfig extraction * [extractor/viu] Add ViuOTTIndonesiaIE extractor * [extractor/vk] Fix playlists for new API * [extractor/vlive] Replace with VLiveWebArchiveIE * [extractor/ximalaya] Update album _VALID_URL * [extractor/zdf] Use android API endpoint for UHD downloads * [extractor/drtv] Fix bug in ab4cbef OBS-URL: https://build.opensuse.org/request/show/1066513 OBS-URL: https://build.opensuse.org/package/show/network:utilities/yt-dlp?expand=0&rev=45
2023-02-18 11:50:02 +01:00
Version: 2023.02.17
Release: 0
Summary: Enhanced fork of youtube-dl, a video site downloader for offline watching
License: CC-BY-SA-3.0 AND SUSE-Public-Domain
Group: Productivity/Networking/Web/Utilities
URL: https://github.com/yt-dlp/yt-dlp
Source: https://github.com/yt-dlp/yt-dlp/releases/download/%version/yt-dlp.tar.gz
BuildRequires: make >= 4
%if 0%{?suse_version} > 1500
BuildRequires: python3-devel
%else
%if 0%{?sle_version} > 150300
BuildRequires: python310-devel
%else
BuildRequires: python39-devel
%endif
%endif
BuildRequires: zip
BuildArch: noarch
Requires: ffmpeg
%if 0%{?suse_version} > 1500
Requires: python3
Suggests: python3-Brotli
Suggests: python3-brotlicffi
Suggests: python3-certifi
Suggests: python3-mutagen
Suggests: python3-pycryptodomex
Suggests: python3-websockets
%else
%if 0%{?sle_version} > 150300
Requires: python310
%else
Requires: python39
%endif
%endif
%description
yt-dlp is a command-line program to retrieve videos from
YouTube.com and other video sites for later watching.
%package bash-completion
Summary: Bash completion for yt-dlp
Group: System/Shells
Requires: bash-completion
Supplements: (yt-dlp and bash-completion)
%description bash-completion
Bash command line completion support for yt-dlp.
%package fish-completion
Summary: Fish completion for yt-dlp
Group: System/Shells
Requires: fish
Supplements: (yt-dlp and fish)
%description fish-completion
Fish command line completion support for yt-dlp.
%package zsh-completion
Summary: Zsh Completion for yt-dlp
Group: System/Shells
Requires: zsh
Supplements: (yt-dlp and zsh)
%description zsh-completion
ZSH command line completion support for yt-dlp.
%prep
%autosetup -p1 -n %name
%build
rm -f youtube-dl yt-dlp
%if 0%{?suse_version} > 1500
PYTHON="%_bindir/python3" \
%else
%if 0%{?sle_version} > 150300
PYTHON="%_bindir/python3.10" \
%else
PYTHON="%_bindir/python3.9" \
%endif
%endif
%make_build yt-dlp
%install
b="%buildroot"
install -Dvm0755 yt-dlp "$b/%_bindir/yt-dlp"
install -Dvm0644 completions/bash/yt-dlp "$b/%_datadir/bash-completion/completions/yt-dlp"
install -Dvm0644 completions/zsh/_yt-dlp "$b/%_datadir/zsh/site-functions/_yt-dlp"
install -Dvm0644 completions/fish/yt-dlp.fish "$b/%_datadir/fish/completions/yt-dlp.fish"
install -Dvm0644 yt-dlp.1 "$b/%_mandir/man1/yt-dlp.1"
%files
%license LICENSE
%doc README.md
%_bindir/%name
%_mandir/man1/%name.1%ext_man
%files -n yt-dlp-bash-completion
%_datadir/bash-completion/
%files -n yt-dlp-fish-completion
%_datadir/fish/
%files -n yt-dlp-zsh-completion
%_datadir/zsh/
%changelog