fix(ffmpeg): update.rhai (#3287)

This commit is contained in:
madomado
2025-02-13 05:12:55 +08:00
committed by GitHub
parent e3309c792c
commit 4a6568b1af
2 changed files with 8 additions and 1 deletions
+2
View File
@@ -210,7 +210,9 @@ BuildRequires: opencl-headers ocl-icd-devel
BuildRequires: openjpeg2-devel
%{!?_without_opus:BuildRequires: opus-devel >= 1.1.3}
%{!?_without_pulse:BuildRequires: pulseaudio-libs-devel}
BuildRequires: perl(GD::Text)
BuildRequires: perl(Pod::Man)
BuildRequires: perl(Texinfo::Convert::HTML)
BuildRequires: qrencode-devel
%{?_with_rav1e:BuildRequires: pkgconfig(rav1e)}
%{!?_without_rubberband:BuildRequires: rubberband-devel}
+6 -1
View File
@@ -2,7 +2,12 @@ import "andax/bump_extras.rhai" as bump;
rpm.version(find(`<small>ffmpeg-([\d.]+?)\.tar\.xz</small>`, get("https://ffmpeg.org/download.html"), 1));
let ffmpeg_ver = get(`https://madoguchi.fyralabs.com/v4/terra${labels.branch}/packages/x265`).json().ver;
let branch = labels.branch;
if branch.starts_with("f") {
branch.crop(1); // remove the `f`
}
let ffmpeg_ver = get(`https://madoguchi.fyralabs.com/v4/terra${branch}/packages/x265`).json().ver;
open_file("anda/fusion/ffmpeg/VERSION_x265.txt", "w").write(ffmpeg_ver);
let tesseract_ver = bump::bodhi("tesseract", bump::as_bodhi_ver(labels.branch));