From eca9ba0915d5f5d8845d70f8b069078cda60ae7991f4928779ba44296e3af038 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 7 Jul 2023 04:51:32 +0000 Subject: [PATCH 1/4] - Update to release 2023.07.06 OBS-URL: https://build.opensuse.org/package/show/network:utilities/yt-dlp?expand=0&rev=57 --- python-yt-dlp.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++++ yt-dlp.changes | 9 +++++++ yt-dlp.spec | 2 +- yt-dlp.tar.gz | 4 +-- 4 files changed, 76 insertions(+), 3 deletions(-) create mode 100644 python-yt-dlp.spec diff --git a/python-yt-dlp.spec b/python-yt-dlp.spec new file mode 100644 index 0000000..b11e455 --- /dev/null +++ b/python-yt-dlp.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-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/ +# + + +%define modname yt-dlp +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-yt-dlp +Version: 2023.07.06 +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: %{python_module devel} +BuildRequires: %{python_module xml} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: ffmpeg +Requires: python-xml +BuildArch: noarch +%python_subpackages + +%description +yt-dlp is a python module to retrieve videos from +YouTube.com and other video sites for later watching. + +%prep +%autosetup -n %modname + +%build +# remove shebang +#sed -e '1d' -i yt_dlp/__init__.py yt_dlp/__main__.py \ +# yt_dlp/YoutubeDL.py yt_dlp/utils.py +%python_build + +%install +%python_install +rm -rf %buildroot/%_bindir/yt-dlp %buildroot/%_bindir \ + %buildroot/%_prefix/%_sysconfdir \ + %buildroot/%_datadir %buildroot/%_mandir +%python_expand %fdupes %buildroot/%{$python_sitelib} + +%files %python_files +%license LICENSE +%doc README.txt +%python_sitelib/yt_dlp +%python_sitelib/yt_dlp-*-py%python_version.egg-info + +%changelog diff --git a/yt-dlp.changes b/yt-dlp.changes index 5e74f7d..e9a4aa0 100644 --- a/yt-dlp.changes +++ b/yt-dlp.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Jul 7 04:49:22 UTC 2023 - Jan Engelhardt + +- Update to release 2023.07.06 + * Prevent Cookie leaks on HTTP redirect + * yt: Avoid false DRM detection + * yt: Process post_live over 2 hours + * yt: Support shorts-only playlists + ------------------------------------------------------------------- Thu Jun 22 11:57:58 UTC 2023 - Jan Engelhardt diff --git a/yt-dlp.spec b/yt-dlp.spec index 4c8e0bb..519034c 100644 --- a/yt-dlp.spec +++ b/yt-dlp.spec @@ -17,7 +17,7 @@ Name: yt-dlp -Version: 2023.06.22 +Version: 2023.07.06 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 diff --git a/yt-dlp.tar.gz b/yt-dlp.tar.gz index dd137e2..83c00d1 100644 --- a/yt-dlp.tar.gz +++ b/yt-dlp.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5291eb8e077ee1bc2585f4f522d75f1e4f9fd4c3374bace1572cf59b97bdd9c3 -size 5341212 +oid sha256:6d2115b84b6c11867f92cf4c23705b536bfa0ba9d538b1885f52da6756f8c980 +size 5362006 From eb37423bef9d63fd5c9097a8ef52db845d96b0e75ff70ed676efd1f993e35db8 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 7 Jul 2023 10:29:56 +0000 Subject: [PATCH 2/4] bugref OBS-URL: https://build.opensuse.org/package/show/network:utilities/yt-dlp?expand=0&rev=58 --- yt-dlp.changes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt-dlp.changes b/yt-dlp.changes index e9a4aa0..b06f959 100644 --- a/yt-dlp.changes +++ b/yt-dlp.changes @@ -2,7 +2,7 @@ Fri Jul 7 04:49:22 UTC 2023 - Jan Engelhardt - Update to release 2023.07.06 - * Prevent Cookie leaks on HTTP redirect + * Prevent Cookie leaks on HTTP redirect [boo#1213124] [CVE-2023-35934] * yt: Avoid false DRM detection * yt: Process post_live over 2 hours * yt: Support shorts-only playlists From bc945d9e835e2c3ed0cb8d33f2f893146379786cabd796d6f9a1d41105cc1881 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 16 Aug 2023 15:17:23 +0000 Subject: [PATCH 3/4] - Remove python3-yt-dlp OBS-URL: https://build.opensuse.org/package/show/network:utilities/yt-dlp?expand=0&rev=59 --- python-yt-dlp.spec | 64 ---------------------------------------------- yt-dlp.changes | 4 +++ 2 files changed, 4 insertions(+), 64 deletions(-) delete mode 100644 python-yt-dlp.spec diff --git a/python-yt-dlp.spec b/python-yt-dlp.spec deleted file mode 100644 index b11e455..0000000 --- a/python-yt-dlp.spec +++ /dev/null @@ -1,64 +0,0 @@ -# -# spec file for package python-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/ -# - - -%define modname yt-dlp -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-yt-dlp -Version: 2023.07.06 -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: %{python_module devel} -BuildRequires: %{python_module xml} -BuildRequires: fdupes -BuildRequires: python-rpm-macros -Requires: ffmpeg -Requires: python-xml -BuildArch: noarch -%python_subpackages - -%description -yt-dlp is a python module to retrieve videos from -YouTube.com and other video sites for later watching. - -%prep -%autosetup -n %modname - -%build -# remove shebang -#sed -e '1d' -i yt_dlp/__init__.py yt_dlp/__main__.py \ -# yt_dlp/YoutubeDL.py yt_dlp/utils.py -%python_build - -%install -%python_install -rm -rf %buildroot/%_bindir/yt-dlp %buildroot/%_bindir \ - %buildroot/%_prefix/%_sysconfdir \ - %buildroot/%_datadir %buildroot/%_mandir -%python_expand %fdupes %buildroot/%{$python_sitelib} - -%files %python_files -%license LICENSE -%doc README.txt -%python_sitelib/yt_dlp -%python_sitelib/yt_dlp-*-py%python_version.egg-info - -%changelog diff --git a/yt-dlp.changes b/yt-dlp.changes index b06f959..ab76386 100644 --- a/yt-dlp.changes +++ b/yt-dlp.changes @@ -6,6 +6,10 @@ Fri Jul 7 04:49:22 UTC 2023 - Jan Engelhardt * yt: Avoid false DRM detection * yt: Process post_live over 2 hours * yt: Support shorts-only playlists +- Remove python3-yt-dlp, python-setuptools runtime is just broken + and cannot cope with Unicode in .py files: + ``UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbb in + position 14: invalid start byte`` ------------------------------------------------------------------- Thu Jun 22 11:57:58 UTC 2023 - Jan Engelhardt From f3149cc60fcea8258c001df917987e233b0a09999b8abd6986f459af7200eec1 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 16 Aug 2023 15:17:52 +0000 Subject: [PATCH 4/4] pylib was never in factory to begin with OBS-URL: https://build.opensuse.org/package/show/network:utilities/yt-dlp?expand=0&rev=60 --- yt-dlp.changes | 4 ---- 1 file changed, 4 deletions(-) diff --git a/yt-dlp.changes b/yt-dlp.changes index ab76386..b06f959 100644 --- a/yt-dlp.changes +++ b/yt-dlp.changes @@ -6,10 +6,6 @@ Fri Jul 7 04:49:22 UTC 2023 - Jan Engelhardt * yt: Avoid false DRM detection * yt: Process post_live over 2 hours * yt: Support shorts-only playlists -- Remove python3-yt-dlp, python-setuptools runtime is just broken - and cannot cope with Unicode in .py files: - ``UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbb in - position 14: invalid start byte`` ------------------------------------------------------------------- Thu Jun 22 11:57:58 UTC 2023 - Jan Engelhardt