From 6ce032d55291c6c1fb09e0d1f3b13c9e817dc056 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Fri, 7 Nov 2025 23:44:03 -0800 Subject: [PATCH] fix(yt-dlp): files (#7009) (#7213) (cherry picked from commit cd3b4fa7164e9126512ab81d6b61a2d0294a251b) Signed-off-by: madomado Co-authored-by: madomado --- anda/tools/yt-dlp-ejs/anda.hcl | 6 +++ anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec | 51 ++++++++++++++++++++ anda/tools/yt-dlp-ejs/update.rhai | 1 + anda/tools/yt-dlp/yt-dlp-git.spec | 6 +-- 4 files changed, 61 insertions(+), 3 deletions(-) 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..daa2763b52 --- /dev/null +++ b/anda/tools/yt-dlp-ejs/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + 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..ff735dc18d --- /dev/null +++ b/anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec @@ -0,0 +1,51 @@ +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} +Packager: madonuko + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3dist(pip) +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} +Provides: yt-dlp-ejs = %evr + +%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")); diff --git a/anda/tools/yt-dlp/yt-dlp-git.spec b/anda/tools/yt-dlp/yt-dlp-git.spec index a36ddcc722..372c1ef560 100644 --- a/anda/tools/yt-dlp/yt-dlp-git.spec +++ b/anda/tools/yt-dlp/yt-dlp-git.spec @@ -8,10 +8,9 @@ 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 +Packager: madonuko +Requires: deno BuildRequires: python3-devel BuildRequires: python3dist(hatchling) @@ -31,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