From 93d7fc4b14d48d6819adf9147842dc583833f8b0 Mon Sep 17 00:00:00 2001 From: Gilver Date: Mon, 1 Dec 2025 14:17:59 -0600 Subject: [PATCH] fix: Update scripts that are missing a spec import (#7834) --- anda/multimedia/LCEVCdec/update.rhai | 5 ++++- anda/multimedia/ffmpeg/update.rhai | 1 + .../gstreamer1/gstreamer1-plugin-libav/update.rhai | 1 + .../gstreamer1/gstreamer1-plugins-bad/OPENH264_VERSION.txt | 0 .../multimedia/gstreamer1/gstreamer1-plugins-bad/update.rhai | 2 ++ .../gstreamer1/gstreamer1-plugins-ugly/update.rhai | 1 + anda/multimedia/gstreamer1/gstreamer1-vaapi/update.rhai | 1 + anda/themes/kde-material-you-colors/update.rhai | 1 + 8 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 anda/multimedia/gstreamer1/gstreamer1-plugins-bad/OPENH264_VERSION.txt diff --git a/anda/multimedia/LCEVCdec/update.rhai b/anda/multimedia/LCEVCdec/update.rhai index 3ffb5da57b..311126ca0e 100644 --- a/anda/multimedia/LCEVCdec/update.rhai +++ b/anda/multimedia/LCEVCdec/update.rhai @@ -1,4 +1,7 @@ -rpm.version(gh("v-novaltd/LCEVCdec")); +import "andax/bump_extras.rhai" as bump; +import "andax/spec.rhai" as spec; + +rpm.version(find(`\s+VERSION ([\d.]+)`, gh_rawfile("v-novaltd/LCEVCdec", "main", "CMakeLists.txt"), 1)); open_file("anda/multimedia/LCEVCdec/VERSION_ffmpeg.txt", "w").write(bump::madoguchi("ffmpeg", labels.branch)); diff --git a/anda/multimedia/ffmpeg/update.rhai b/anda/multimedia/ffmpeg/update.rhai index fc26ed0f50..dab9ce88b8 100644 --- a/anda/multimedia/ffmpeg/update.rhai +++ b/anda/multimedia/ffmpeg/update.rhai @@ -1,4 +1,5 @@ import "andax/bump_extras.rhai" as bump; +import "andax/spec.rhai" as spec; // rpm.version(find(`ffmpeg-([\d.]+?)\.tar\.xz`, get("https://ffmpeg.org/download.html"), 1)); rpm.version(bump::bodhi("ffmpeg", bump::as_bodhi_ver(labels.branch))); diff --git a/anda/multimedia/gstreamer1/gstreamer1-plugin-libav/update.rhai b/anda/multimedia/gstreamer1/gstreamer1-plugin-libav/update.rhai index 9d40b68c04..06df849749 100644 --- a/anda/multimedia/gstreamer1/gstreamer1-plugin-libav/update.rhai +++ b/anda/multimedia/gstreamer1/gstreamer1-plugin-libav/update.rhai @@ -1,4 +1,5 @@ import "andax/bump_extras.rhai" as bump; +import "andax/spec.rhai" as spec; let vr = bump::bodhi_vr("gstreamer1-plugin-libav", bump::as_bodhi_ver(labels.branch)); rpm.version(vr[1]); diff --git a/anda/multimedia/gstreamer1/gstreamer1-plugins-bad/OPENH264_VERSION.txt b/anda/multimedia/gstreamer1/gstreamer1-plugins-bad/OPENH264_VERSION.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/anda/multimedia/gstreamer1/gstreamer1-plugins-bad/update.rhai b/anda/multimedia/gstreamer1/gstreamer1-plugins-bad/update.rhai index 1b74c7e7a2..a52822471b 100644 --- a/anda/multimedia/gstreamer1/gstreamer1-plugins-bad/update.rhai +++ b/anda/multimedia/gstreamer1/gstreamer1-plugins-bad/update.rhai @@ -1,4 +1,5 @@ import "andax/bump_extras.rhai" as bump; +import "andax/spec.rhai" as spec; let bodhi_branch = bump::as_bodhi_ver(labels.branch); @@ -11,6 +12,7 @@ rpm.version(vr[1]); open_file("anda/multimedia/gstreamer1/gstreamer1-plugins-bad/OPENCV_VERSION.txt", "w").write(bump::bodhi("opencv", bodhi_branch)); open_file("anda/multimedia/gstreamer1/gstreamer1-plugins-bad/LCEVCdec_VERSION.txt", "w").write(bump::madoguchi("LCEVCdec", labels.branch)); +open_file("anda/multimedia/gstreamer1/gstreamer1-plugins-bad/OPENH264_VERSION.txt", "w").write(bump::madoguchi("openh264", labels.branch)); let dir = sub(`/[^/]+$`, "", __script_path); if sh("[[ `git status " + dir + " --porcelain` ]] && exit 1 || exit 0", #{}).ctx.rc == 1 { diff --git a/anda/multimedia/gstreamer1/gstreamer1-plugins-ugly/update.rhai b/anda/multimedia/gstreamer1/gstreamer1-plugins-ugly/update.rhai index fb008b2138..10c6624c81 100644 --- a/anda/multimedia/gstreamer1/gstreamer1-plugins-ugly/update.rhai +++ b/anda/multimedia/gstreamer1/gstreamer1-plugins-ugly/update.rhai @@ -1,4 +1,5 @@ import "andax/bump_extras.rhai" as bump; +import "andax/spec.rhai" as spec; let vr = bump::bodhi_vr("gstreamer1-plugins-ugly-free", bump::as_bodhi_ver(labels.branch)); rpm.version(vr[1]); diff --git a/anda/multimedia/gstreamer1/gstreamer1-vaapi/update.rhai b/anda/multimedia/gstreamer1/gstreamer1-vaapi/update.rhai index 18c6503a05..31e8dabd43 100644 --- a/anda/multimedia/gstreamer1/gstreamer1-vaapi/update.rhai +++ b/anda/multimedia/gstreamer1/gstreamer1-vaapi/update.rhai @@ -1,4 +1,5 @@ import "andax/bump_extras.rhai" as bump; +import "andax/spec.rhai" as spec; let vr = bump::bodhi_vr("gstreamer1-vaapi", bump::as_bodhi_ver(labels.branch)); rpm.version(vr[1]); diff --git a/anda/themes/kde-material-you-colors/update.rhai b/anda/themes/kde-material-you-colors/update.rhai index 15f1da3f44..3d67611499 100644 --- a/anda/themes/kde-material-you-colors/update.rhai +++ b/anda/themes/kde-material-you-colors/update.rhai @@ -1,4 +1,5 @@ import "andax/bump_extras.rhai" as bump; +import "andax/spec.rhai" as spec; rpm.version(pypi("kde-material-you-colors"));