[info=561d59fd60523d37881d146ed40620945a46608c8f0156e243c8bdaa73731a7e]
OBS-URL: https://build.opensuse.org/package/show/network:utilities/yt-dlp?expand=0&rev=116
This commit is contained in:
commit
25b5a9d306
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
4
_scmsync.obsinfo
Normal file
4
_scmsync.obsinfo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
mtime: 1737042428
|
||||||
|
commit: 561d59fd60523d37881d146ed40620945a46608c8f0156e243c8bdaa73731a7e
|
||||||
|
url: https://src.opensuse.org/jengelh/yt-dlp
|
||||||
|
revision: master
|
3
build.specials.obscpio
Normal file
3
build.specials.obscpio
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:03a916586a3b22e34b196d5727be603191f014e45fde9234983dfe53ff1f4538
|
||||||
|
size 256
|
1
yt-dlp-rpmlintrc
Normal file
1
yt-dlp-rpmlintrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
addFilter("files-duplicate")
|
2529
yt-dlp.changes
Normal file
2529
yt-dlp.changes
Normal file
File diff suppressed because it is too large
Load Diff
122
yt-dlp.spec
Normal file
122
yt-dlp.spec
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
#
|
||||||
|
# spec file for package yt-dlp
|
||||||
|
#
|
||||||
|
# Copyright (c) 2025 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define skip_python2 1
|
||||||
|
%define skip_python36 1
|
||||||
|
%define skip_python37 1
|
||||||
|
%if 0%{?sle_version} == 150600
|
||||||
|
%global pythons python312
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Name: yt-dlp
|
||||||
|
Version: 2025.01.15
|
||||||
|
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
|
||||||
|
Source9: yt-dlp-rpmlintrc
|
||||||
|
BuildRequires: %{python_module hatchling}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: make >= 4
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: zip
|
||||||
|
BuildArch: noarch
|
||||||
|
Obsoletes: yt-dlp-bash-completion < %version-%release
|
||||||
|
Provides: yt-dlp-bash-completion = %version-%release
|
||||||
|
Obsoletes: yt-dlp-fish-completion < %version-%release
|
||||||
|
Provides: yt-dlp-fish-completion = %version-%release
|
||||||
|
Obsoletes: yt-dlp-zsh-completion < %version-%release
|
||||||
|
Provides: yt-dlp-zsh-completion = %version-%release
|
||||||
|
# %%primary_python not available in Leap yet
|
||||||
|
Requires: %(echo %{python_module yt-dlp} | perl -pe 's{.* }{}g')
|
||||||
|
%define python_subpackage_only 1
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
yt-dlp is a command-line program to retrieve videos from
|
||||||
|
YouTube.com and other video sites for later watching.
|
||||||
|
|
||||||
|
%package -n yt-dlp-youtube-dl
|
||||||
|
Summary: Compat symlinks for youtube-dl
|
||||||
|
Requires: yt-dlp
|
||||||
|
Provides: youtube-dl
|
||||||
|
Conflicts: youtube-dl
|
||||||
|
|
||||||
|
%description -n yt-dlp-youtube-dl
|
||||||
|
This package installs "youtube-dl" as a symlink to yt-dlp.
|
||||||
|
|
||||||
|
%package -n python-yt-dlp
|
||||||
|
Summary: yt-dlp Python library
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
Requires: ffmpeg
|
||||||
|
Suggests: python-Brotli
|
||||||
|
Suggests: python-certifi
|
||||||
|
Suggests: python-mutagen
|
||||||
|
Suggests: python-pycryptodomex
|
||||||
|
Suggests: python-websockets
|
||||||
|
|
||||||
|
%description -n python-yt-dlp
|
||||||
|
The direct Python interface into yt-dlp.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n %name
|
||||||
|
|
||||||
|
%build
|
||||||
|
rm -f youtube-dl yt-dlp
|
||||||
|
#
|
||||||
|
# A self-decompressing yt-dlp is built only when python_build is not
|
||||||
|
# exercised; else yt-dlp is a loader.
|
||||||
|
#
|
||||||
|
%pyproject_wheel
|
||||||
|
%make_build yt-dlp
|
||||||
|
|
||||||
|
%install
|
||||||
|
b="%buildroot"
|
||||||
|
%pyproject_install
|
||||||
|
ln -s yt-dlp "$b/%_bindir/youtube-dl"
|
||||||
|
rm -Rf "$b/%_datadir/doc"
|
||||||
|
# if you leave everything as-is, rpmlint complains about
|
||||||
|
# python312-yt-dlp.noarch: W: files-duplicate
|
||||||
|
# /usr/lib/python3.12/site-packages/yt_dlp/utils/__pycache__/progress.cpython-312.pyc
|
||||||
|
# /usr/lib/python3.12/site-packages/yt_dlp/utils/__pycache__/progress.cpython-312.opt-1.pyc
|
||||||
|
# if you add fdupes, rpmlint complains about
|
||||||
|
# python312-yt-dlp.noarch: E: python-bytecode-inconsistent-mtime
|
||||||
|
# /usr/lib/python3.12/site-packages/yt_dlp/extractor/__pycache__/screencastomatic.cpython-312.pyc
|
||||||
|
# 2024-09-29T18:11:02
|
||||||
|
# /usr/lib/python3.12/site-packages/yt_dlp/extractor/screencastomatic.py
|
||||||
|
# 2024-09-29T18:11:01
|
||||||
|
|
||||||
|
%files -n yt-dlp
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md
|
||||||
|
%_bindir/%name
|
||||||
|
%_mandir/man1/%name.1%ext_man
|
||||||
|
%_datadir/bash-completion/
|
||||||
|
%_datadir/fish/
|
||||||
|
%_datadir/zsh/
|
||||||
|
|
||||||
|
%files -n yt-dlp-youtube-dl
|
||||||
|
%_bindir/youtube-dl
|
||||||
|
|
||||||
|
%files %{python_files yt-dlp}
|
||||||
|
%python_sitelib/y*
|
||||||
|
|
||||||
|
%changelog
|
BIN
yt-dlp.tar.gz
(Stored with Git LFS)
Normal file
BIN
yt-dlp.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user