diff --git a/anda/multimedia/ffmpeg/ffmpeg.spec b/anda/multimedia/ffmpeg/ffmpeg.spec index b003a723a1..a9a82f4b2a 100644 --- a/anda/multimedia/ffmpeg/ffmpeg.spec +++ b/anda/multimedia/ffmpeg/ffmpeg.spec @@ -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} diff --git a/anda/multimedia/ffmpeg/update.rhai b/anda/multimedia/ffmpeg/update.rhai index 3f65562948..989870ef6c 100644 --- a/anda/multimedia/ffmpeg/update.rhai +++ b/anda/multimedia/ffmpeg/update.rhai @@ -2,7 +2,12 @@ import "andax/bump_extras.rhai" as bump; rpm.version(find(`ffmpeg-([\d.]+?)\.tar\.xz`, 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));