Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions anda/tools/yt-dlp-ejs/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "python-yt-dlp-ejs.spec"
}
}
51 changes: 51 additions & 0 deletions anda/tools/yt-dlp-ejs/python-yt-dlp-ejs.spec
Original file line number Diff line number Diff line change
@@ -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 <mado@fyralabs.com>

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}
1 change: 1 addition & 0 deletions anda/tools/yt-dlp-ejs/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(pypi("yt-dlp-ejs"));
6 changes: 3 additions & 3 deletions anda/tools/yt-dlp/yt-dlp-git.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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 <mado@fyralabs.com>
Requires: deno

BuildRequires: python3-devel
BuildRequires: python3dist(hatchling)
Expand All @@ -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

Expand Down