From e37f9dbfda9a92a4434c8820ab10d14fe9cc7f4a Mon Sep 17 00:00:00 2001 From: madomado Date: Sat, 1 Nov 2025 15:07:54 +0800 Subject: [PATCH 1/6] fix(yt-dlp): files Signed-off-by: madomado --- anda/tools/yt-dlp/yt-dlp-git.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/anda/tools/yt-dlp/yt-dlp-git.spec b/anda/tools/yt-dlp/yt-dlp-git.spec index bf601c78fb..a03b7ade44 100644 --- a/anda/tools/yt-dlp/yt-dlp-git.spec +++ b/anda/tools/yt-dlp/yt-dlp-git.spec @@ -8,9 +8,6 @@ Summary: A command-line program to download videos from online video plat License: Unlicense URL: https://github.com/yt-dlp/yt-dlp -# License of the specfile -Source: https://src.fedoraproject.org/rpms/yt-dlp/raw/rawhide/f/yt-dlp.spec.license - BuildArch: noarch BuildRequires: python3-devel From bd51af4e866027cbf8d83bdd3ddf712b766f3ce3 Mon Sep 17 00:00:00 2001 From: madomado Date: Sun, 2 Nov 2025 15:16:05 +0800 Subject: [PATCH 2/6] deno, packager Signed-off-by: madomado --- anda/tools/yt-dlp/yt-dlp-git.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/anda/tools/yt-dlp/yt-dlp-git.spec b/anda/tools/yt-dlp/yt-dlp-git.spec index a03b7ade44..59f0dd0ff1 100644 --- a/anda/tools/yt-dlp/yt-dlp-git.spec +++ b/anda/tools/yt-dlp/yt-dlp-git.spec @@ -9,6 +9,8 @@ Summary: A command-line program to download videos from online video plat License: Unlicense URL: https://github.com/yt-dlp/yt-dlp BuildArch: noarch +Packager: madonuko +Requires: deno BuildRequires: python3-devel BuildRequires: python3dist(hatchling) From 4b09af700c2844093a7fc622c3b11a9e27c9f3b7 Mon Sep 17 00:00:00 2001 From: madonuko Date: Sun, 2 Nov 2025 17:21:16 +0800 Subject: [PATCH 3/6] feat: yt-dlp-ejs real --- anda/tools/yt-dlp-ejs/anda.hcl | 5 ++ anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec | 48 ++++++++++++++++++++ anda/tools/yt-dlp-ejs/update.rhai | 1 + 3 files changed, 54 insertions(+) create mode 100644 anda/tools/yt-dlp-ejs/anda.hcl create mode 100644 anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec create mode 100644 anda/tools/yt-dlp-ejs/update.rhai diff --git a/anda/tools/yt-dlp-ejs/anda.hcl b/anda/tools/yt-dlp-ejs/anda.hcl new file mode 100644 index 0000000000..28989e375c --- /dev/null +++ b/anda/tools/yt-dlp-ejs/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "python-yt-dlp-ejs.spec" + } +} diff --git a/anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec b/anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec new file mode 100644 index 0000000000..92a487e81a --- /dev/null +++ b/anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec @@ -0,0 +1,48 @@ +Name: python-yt-dlp-ejs +Version: 0.3.0 +Release: %autorelease +Summary: External JavaScript for yt-dlp supporting many runtimes + +License: Unlicense AND MIT AND ISC +URL: https://github.com/yt-dlp/ejs +Source: %{pypi_source yt_dlp_ejs} + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3dist(hatch-vcs) +BuildRequires: (deno or bun or nodejs-npm) + + +%global _description %{expand: +%summary.} + +%description %_description + +%package -n python3-yt-dlp-ejs +Summary: %{summary} + +%description -n python3-yt-dlp-ejs %_description + + +%prep +%autosetup -p1 -n yt_dlp_ejs-%{version} + + +#generate_buildrequires +#pyproject_buildrequires + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files -l yt_dlp_ejs + + +%check +%pyproject_check_import + + +%files -n python3-yt-dlp-ejs -f %{pyproject_files} diff --git a/anda/tools/yt-dlp-ejs/update.rhai b/anda/tools/yt-dlp-ejs/update.rhai new file mode 100644 index 0000000000..ae886fe4bd --- /dev/null +++ b/anda/tools/yt-dlp-ejs/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("yt-dlp-ejs")); From 42cc3596f136bb5a229551a592c03041cad9a7c4 Mon Sep 17 00:00:00 2001 From: madonuko Date: Sun, 2 Nov 2025 17:23:41 +0800 Subject: [PATCH 4/6] stuff --- anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec | 2 ++ anda/tools/yt-dlp/yt-dlp-git.spec | 1 + 2 files changed, 3 insertions(+) diff --git a/anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec b/anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec index 92a487e81a..cbbaeab15c 100644 --- a/anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec +++ b/anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec @@ -6,6 +6,7 @@ Summary: External JavaScript for yt-dlp supporting many runtimes License: Unlicense AND MIT AND ISC URL: https://github.com/yt-dlp/ejs Source: %{pypi_source yt_dlp_ejs} +Packager: madonuko BuildArch: noarch BuildRequires: python3-devel @@ -20,6 +21,7 @@ BuildRequires: (deno or bun or nodejs-npm) %package -n python3-yt-dlp-ejs Summary: %{summary} +Provides: yt-dlp-ejs = %evr %description -n python3-yt-dlp-ejs %_description diff --git a/anda/tools/yt-dlp/yt-dlp-git.spec b/anda/tools/yt-dlp/yt-dlp-git.spec index 59f0dd0ff1..c82b3037e9 100644 --- a/anda/tools/yt-dlp/yt-dlp-git.spec +++ b/anda/tools/yt-dlp/yt-dlp-git.spec @@ -30,6 +30,7 @@ BuildRequires: anda-srpm-macros # ffmpeg-free is now available in Fedora. Recommends: /usr/bin/ffmpeg Recommends: /usr/bin/ffprobe +Recommends: yt-dlp-ejs Conflicts: yt-dlp From da4a90d62998ac3ac51cc13488ca7e3fa332f1d0 Mon Sep 17 00:00:00 2001 From: madomado Date: Sun, 2 Nov 2025 17:25:52 +0800 Subject: [PATCH 5/6] pip Signed-off-by: madomado --- anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec b/anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec index cbbaeab15c..ff735dc18d 100644 --- a/anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec +++ b/anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec @@ -10,6 +10,7 @@ Packager: madonuko BuildArch: noarch BuildRequires: python3-devel +BuildRequires: python3dist(pip) BuildRequires: python3dist(hatch-vcs) BuildRequires: (deno or bun or nodejs-npm) From bc3622f529a31a87d2fe631623fbc40cae463551 Mon Sep 17 00:00:00 2001 From: madomado Date: Sun, 2 Nov 2025 17:27:41 +0800 Subject: [PATCH 6/6] Update anda.hcl Signed-off-by: madomado --- anda/tools/yt-dlp-ejs/anda.hcl | 1 + 1 file changed, 1 insertion(+) diff --git a/anda/tools/yt-dlp-ejs/anda.hcl b/anda/tools/yt-dlp-ejs/anda.hcl index 28989e375c..daa2763b52 100644 --- a/anda/tools/yt-dlp-ejs/anda.hcl +++ b/anda/tools/yt-dlp-ejs/anda.hcl @@ -1,4 +1,5 @@ project pkg { + arches = ["x86_64"] rpm { spec = "python-yt-dlp-ejs.spec" }