From e4cc8ff3d314fa849367d4660773a63a1a5d8890 Mon Sep 17 00:00:00 2001 From: madomado Date: Wed, 14 Jun 2023 22:44:32 +0800 Subject: [PATCH] feat(update): add/fix update scripts (#548) --- anda/apps/lomiri-system-settings/lomiri-system-settings.spec | 2 +- anda/apps/lomiri-system-settings/update.rhai | 3 +++ anda/apps/vala-panel-appmenu/update.rhai | 3 +++ anda/apps/vala-panel-appmenu/vala-panel-appmenu.spec | 2 +- anda/desktops/compiz9/compiz9.spec | 4 ++-- anda/desktops/compiz9/update.rhai | 5 +++++ anda/desktops/golang-github-fyshos-fynedesk/update.rhai | 1 + anda/desktops/lomiri/lomiri.spec | 2 +- anda/desktops/lomiri/update.rhai | 3 +++ anda/desktops/unity-shell/unity-shell.spec | 4 +++- anda/desktops/unity-shell/update.rhai | 4 ++++ anda/games/minecraft-java/minecraft-java.spec | 4 ++-- anda/go/yhat-scrape/update.rhai | 1 - .../ayatana-indicator-notifications.spec | 2 +- anda/indicators/ayatana-indicator-notifications/update.rhai | 1 + .../ayatana-indicator-session/ayatana-indicator-session.spec | 4 ++-- anda/indicators/ayatana-indicator-session/update.rhai | 1 + anda/indicators/ayatana-indicator-sound/update.rhai | 1 + anda/lib/libayatana-common/libayatana-common.spec | 4 ++-- anda/lib/libayatana-common/update.rhai | 1 + anda/others/unity-greeter/update.rhai | 4 ++-- anda/others/unity-session/update.rhai | 5 +++++ anda/rust/bandwhich/update.rhai | 1 + anda/themes/unity-asset-pool/unity-asset-pool.spec | 4 +++- anda/themes/unity-asset-pool/update.rhai | 5 +++++ anda/tools/gcm-core/gcm-core.spec | 2 +- 26 files changed, 55 insertions(+), 18 deletions(-) create mode 100644 anda/apps/lomiri-system-settings/update.rhai create mode 100644 anda/apps/vala-panel-appmenu/update.rhai create mode 100644 anda/desktops/compiz9/update.rhai create mode 100644 anda/desktops/golang-github-fyshos-fynedesk/update.rhai create mode 100644 anda/desktops/lomiri/update.rhai create mode 100644 anda/desktops/unity-shell/update.rhai delete mode 100644 anda/go/yhat-scrape/update.rhai create mode 100644 anda/indicators/ayatana-indicator-notifications/update.rhai create mode 100644 anda/indicators/ayatana-indicator-session/update.rhai create mode 100644 anda/indicators/ayatana-indicator-sound/update.rhai create mode 100644 anda/lib/libayatana-common/update.rhai create mode 100644 anda/others/unity-session/update.rhai create mode 100644 anda/rust/bandwhich/update.rhai create mode 100644 anda/themes/unity-asset-pool/update.rhai diff --git a/anda/apps/lomiri-system-settings/lomiri-system-settings.spec b/anda/apps/lomiri-system-settings/lomiri-system-settings.spec index 4a4531ca4a..7bd0d3a492 100644 --- a/anda/apps/lomiri-system-settings/lomiri-system-settings.spec +++ b/anda/apps/lomiri-system-settings/lomiri-system-settings.spec @@ -1,5 +1,5 @@ %global forgeurl https://gitlab.com/ubports/development/core/lomiri-system-settings -%global commit 595b25b5f6ab0fee51e084bb6b0d31ccfb719e73 +%global commit 60f6ecb371414742dd216b6a72c88214ff58b02d %forgemeta Name: lomiri-system-settings diff --git a/anda/apps/lomiri-system-settings/update.rhai b/anda/apps/lomiri-system-settings/update.rhai new file mode 100644 index 0000000000..6d6b8ae10d --- /dev/null +++ b/anda/apps/lomiri-system-settings/update.rhai @@ -0,0 +1,3 @@ +let o = get("https://gitlab.com/api/v4/projects/25770177/repository/tags").json_arr()[0]; +rpm.version(o.name); +rpm.global("commit", get("https://gitlab.com/api/v4/projects/25770177/repository/commits").json_arr()[0].id); diff --git a/anda/apps/vala-panel-appmenu/update.rhai b/anda/apps/vala-panel-appmenu/update.rhai new file mode 100644 index 0000000000..90f03e6ca9 --- /dev/null +++ b/anda/apps/vala-panel-appmenu/update.rhai @@ -0,0 +1,3 @@ +let o = get("https://gitlab.com/api/v4/projects/6865053/repository/tags").json_arr()[0]; +rpm.version(o.name); +rpm.global("commit", get("https://gitlab.com/api/v4/projects/6865053/repository/commits").json_arr()[0].id); diff --git a/anda/apps/vala-panel-appmenu/vala-panel-appmenu.spec b/anda/apps/vala-panel-appmenu/vala-panel-appmenu.spec index c7b07eab37..09aae0465f 100644 --- a/anda/apps/vala-panel-appmenu/vala-panel-appmenu.spec +++ b/anda/apps/vala-panel-appmenu/vala-panel-appmenu.spec @@ -1,5 +1,5 @@ %global forgeurl https://gitlab.com/vala-panel-project/vala-panel-appmenu -%global commit 99cd56c1644fe4193854902c450e67f9a6685112 +%global commit 76442be6195385193cb5931d0004122310d40c95 %forgemeta Name: vala-panel-appmenu diff --git a/anda/desktops/compiz9/compiz9.spec b/anda/desktops/compiz9/compiz9.spec index 3b36c9942d..e147fb6737 100644 --- a/anda/desktops/compiz9/compiz9.spec +++ b/anda/desktops/compiz9/compiz9.spec @@ -1,9 +1,9 @@ -%define _ubuntu_rel 22.10.20220822-0ubuntu1 +%define _ubuntu_rel 22.10.20220822-0ubuntu3 %global _hardened_build 0 Name: compiz9 Version: 0.9.14.2 -Release: %autorelease +Release: 2%?dist Summary: OpenGL window and compositing manager 0.9.X.X series License: GPL-2.0-or-later AND LGPL-2.0-or-later AND MIT diff --git a/anda/desktops/compiz9/update.rhai b/anda/desktops/compiz9/update.rhai new file mode 100644 index 0000000000..b14bc269eb --- /dev/null +++ b/anda/desktops/compiz9/update.rhai @@ -0,0 +1,5 @@ +let html = get("http://archive.ubuntu.com/ubuntu/pool/universe/c/compiz/?C=N;O=D"); +let v = find("compiz_([\\d.]+)\\+(.+?).tar.xz", html, 1); +let r = find("compiz_([\\d.]+)\\+(.+?).tar.xz", html, 2); +rpm.version(v); +rpm.define("_ubuntu_rel", r); diff --git a/anda/desktops/golang-github-fyshos-fynedesk/update.rhai b/anda/desktops/golang-github-fyshos-fynedesk/update.rhai new file mode 100644 index 0000000000..e932363c22 --- /dev/null +++ b/anda/desktops/golang-github-fyshos-fynedesk/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("FyshOS/fynedesk")); diff --git a/anda/desktops/lomiri/lomiri.spec b/anda/desktops/lomiri/lomiri.spec index d939386ef3..cf7741433e 100644 --- a/anda/desktops/lomiri/lomiri.spec +++ b/anda/desktops/lomiri/lomiri.spec @@ -1,5 +1,5 @@ %global forgeurl https://gitlab.com/ubports/development/core/lomiri -%global commit a1a1b1f25714a0f5cddf3905edc38dc6e6b49228 +%global commit 8a2f908c306ec63a7a0f14c247fa1676c655c7ce %forgemeta Name: lomiri diff --git a/anda/desktops/lomiri/update.rhai b/anda/desktops/lomiri/update.rhai new file mode 100644 index 0000000000..bf40ea8d35 --- /dev/null +++ b/anda/desktops/lomiri/update.rhai @@ -0,0 +1,3 @@ +let o = get("https://gitlab.com/api/v4/projects/25716028/repository/tags").json_arr()[0]; +rpm.version(o.name); +rpm.global("commit", get("https://gitlab.com/api/v4/projects/25716028/repository/commits").json_arr()[0].id); diff --git a/anda/desktops/unity-shell/unity-shell.spec b/anda/desktops/unity-shell/unity-shell.spec index 6b1ad9eee3..043f2c59d3 100644 --- a/anda/desktops/unity-shell/unity-shell.spec +++ b/anda/desktops/unity-shell/unity-shell.spec @@ -1,3 +1,5 @@ +%define archive unity_7.7.0+23.04.20230222.2-0ubuntu2.tar.xz + Name: unity-shell Version: 7.7.0 Release: %autorelease @@ -5,7 +7,7 @@ Summary: Unity is a shell that sings License: GPL-3.0-or-later URL: https://launchpad.net/unity -Source0: http://archive.ubuntu.com/ubuntu/pool/universe/u/unity/unity_%{version}+23.04.20230222.2-0ubuntu2.tar.xz +Source0: http://archive.ubuntu.com/ubuntu/pool/universe/u/unity/%archive Patch0: 0001-Remove-xpathselect-dependency.patch Patch1: 0002-Remove-ido-dependency.patch Patch2: 0003-Remove-social-scope.patch diff --git a/anda/desktops/unity-shell/update.rhai b/anda/desktops/unity-shell/update.rhai new file mode 100644 index 0000000000..f2c7f60807 --- /dev/null +++ b/anda/desktops/unity-shell/update.rhai @@ -0,0 +1,4 @@ +let html = get("http://archive.ubuntu.com/ubuntu/pool/universe/u/unity/?C=N;O=D"); +let v = find("unity_([\\d.]+)\\+.+?.tar.xz", html, 1); +rpm.version(v); +rpm.define("archive", find("unity_([\\d.]+)\\+.+?.tar.xz", html, 0)); diff --git a/anda/games/minecraft-java/minecraft-java.spec b/anda/games/minecraft-java/minecraft-java.spec index 8b8e04ecad..d87c14304b 100644 --- a/anda/games/minecraft-java/minecraft-java.spec +++ b/anda/games/minecraft-java/minecraft-java.spec @@ -15,7 +15,7 @@ ExclusiveArch: x86_64 Requires: java >= 1.8.0 -Recommends: terra-fractureiser-detector +Recommends: terra-fractureiser-detector %description The official Linux release of the launcher for Minecraft, a game about placing blocks and going on adventures. @@ -42,7 +42,7 @@ install -Dm644 %{SOURCE2} %{buildroot}/%{_datadir}/icons/hicolor/symbolic/apps/m %{_datadir}/icons/hicolor/symbolic/apps/minecraft-launcher.svg %changelog -* Tue Mar 08 2022 Thomas Batten stenstorpmc@gmail.com> - 1121-2 +* Tue Mar 08 2022 Thomas Batten - 1121-2 - Moved minecraft-launcher into bindir * Mon Mar 07 2022 Thomas Batten - 1121-1 diff --git a/anda/go/yhat-scrape/update.rhai b/anda/go/yhat-scrape/update.rhai deleted file mode 100644 index 7043e72b33..0000000000 --- a/anda/go/yhat-scrape/update.rhai +++ /dev/null @@ -1 +0,0 @@ -rpm.version(gh("yhat/scrape")); diff --git a/anda/indicators/ayatana-indicator-notifications/ayatana-indicator-notifications.spec b/anda/indicators/ayatana-indicator-notifications/ayatana-indicator-notifications.spec index 35a15be116..ea7550ac37 100644 --- a/anda/indicators/ayatana-indicator-notifications/ayatana-indicator-notifications.spec +++ b/anda/indicators/ayatana-indicator-notifications/ayatana-indicator-notifications.spec @@ -2,7 +2,7 @@ Name: ayatana-indicator-notifications Summary: Ayatana Indicator Notifications Applet Version: 22.9.0 Release: %autorelease -License: GPLv3 +License: GPL-3.0 URL: https://github.com/AyatanaIndicators/ayatana-indicator-notifications Source0: %{url}/archive/refs/tags/%{version}.tar.gz diff --git a/anda/indicators/ayatana-indicator-notifications/update.rhai b/anda/indicators/ayatana-indicator-notifications/update.rhai new file mode 100644 index 0000000000..ab635ab1b1 --- /dev/null +++ b/anda/indicators/ayatana-indicator-notifications/update.rhai @@ -0,0 +1 @@ +rpm.version(gh_tag("AyatanaIndicators/ayatana-indicator-notifications")); diff --git a/anda/indicators/ayatana-indicator-session/ayatana-indicator-session.spec b/anda/indicators/ayatana-indicator-session/ayatana-indicator-session.spec index 8197832758..0d0aee3263 100644 --- a/anda/indicators/ayatana-indicator-session/ayatana-indicator-session.spec +++ b/anda/indicators/ayatana-indicator-session/ayatana-indicator-session.spec @@ -1,8 +1,8 @@ Name: ayatana-indicator-session Summary: Ayatana Indicator Session Applet -Version: 22.9.1 +Version: 22.9.2 Release: %autorelease -License: GPLv3 +License: GPL-3.0 URL: https://github.com/AyatanaIndicators/ayatana-indicator-session Source0: %{url}/archive/refs/tags/%{version}.tar.gz diff --git a/anda/indicators/ayatana-indicator-session/update.rhai b/anda/indicators/ayatana-indicator-session/update.rhai new file mode 100644 index 0000000000..a3b9742e92 --- /dev/null +++ b/anda/indicators/ayatana-indicator-session/update.rhai @@ -0,0 +1 @@ +rpm.version(gh_tag("AyatanaIndicators/ayatana-indicator-session")); diff --git a/anda/indicators/ayatana-indicator-sound/update.rhai b/anda/indicators/ayatana-indicator-sound/update.rhai new file mode 100644 index 0000000000..37d1c03c23 --- /dev/null +++ b/anda/indicators/ayatana-indicator-sound/update.rhai @@ -0,0 +1 @@ +rpm.version(gh_tag("AyatanaIndicators/ayatana-indicator-sound")); diff --git a/anda/lib/libayatana-common/libayatana-common.spec b/anda/lib/libayatana-common/libayatana-common.spec index 4ea42157c1..48c395d10e 100644 --- a/anda/lib/libayatana-common/libayatana-common.spec +++ b/anda/lib/libayatana-common/libayatana-common.spec @@ -2,7 +2,7 @@ Name: libayatana-common Summary: Common functions for Ayatana System Indicators Version: 0.9.8 Release: %autorelease -License: GPLv3 +License: GPL-3.0 URL: https://github.com/AyatanaIndicators/libayatana-common Source0: %{url}/archive/refs/tags/%{version}.tar.gz @@ -15,7 +15,7 @@ BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: vala-devel -Buildrequires: vala +BuildRequires: vala BuildRequires: intltool %description diff --git a/anda/lib/libayatana-common/update.rhai b/anda/lib/libayatana-common/update.rhai new file mode 100644 index 0000000000..570bed83d1 --- /dev/null +++ b/anda/lib/libayatana-common/update.rhai @@ -0,0 +1 @@ +rpm.version(gh_tag("AyatanaIndicators/libayatana-common")); diff --git a/anda/others/unity-greeter/update.rhai b/anda/others/unity-greeter/update.rhai index 094a83f713..a82d2c0faf 100644 --- a/anda/others/unity-greeter/update.rhai +++ b/anda/others/unity-greeter/update.rhai @@ -1,5 +1,5 @@ let html = get("http://archive.ubuntu.com/ubuntu/pool/universe/u/unity-greeter/?C=N;O=D"); -let v = find("unity-greeter_([\\d.+]+)-0ubuntu(\d\+)", html, 1); -let rn = find("unity-greeter_([\\d.+]+)-0ubuntu(\d\+)", html, 2); +let v = find("unity-greeter_([\\d.+]+)-0ubuntu(\\d+)", html, 1); +let rn = find("unity-greeter_([\\d.+]+)-0ubuntu(\\d+)", html, 2); rpm.version(v); rpm.global("rn", rn); diff --git a/anda/others/unity-session/update.rhai b/anda/others/unity-session/update.rhai new file mode 100644 index 0000000000..c9b52665bd --- /dev/null +++ b/anda/others/unity-session/update.rhai @@ -0,0 +1,5 @@ +let html = get("http://archive.ubuntu.com/ubuntu/pool/universe/g/gnome-session/?C=N;O=D"); +let v = find("unity-session_([\\d.]+)-(.+?)_all.deb", html, 1); +let r = find("unity-session_([\\d.]+)-(.+?)_all.deb", html, 2); +rpm.version(v); +rpm.define("_ubuntu_rel", r); diff --git a/anda/rust/bandwhich/update.rhai b/anda/rust/bandwhich/update.rhai new file mode 100644 index 0000000000..5eed94f7c1 --- /dev/null +++ b/anda/rust/bandwhich/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("bandwhich")); diff --git a/anda/themes/unity-asset-pool/unity-asset-pool.spec b/anda/themes/unity-asset-pool/unity-asset-pool.spec index 3465e5c267..068c52a4fc 100644 --- a/anda/themes/unity-asset-pool/unity-asset-pool.spec +++ b/anda/themes/unity-asset-pool/unity-asset-pool.spec @@ -1,3 +1,5 @@ +%define maj_min 0.8 + Name: unity-asset-pool Summary: Assets and icons for Unity Version: 0.8.24 @@ -5,7 +7,7 @@ Release: %autorelease License: CC-BY-SA URL: https://launchpad.net/unity-asset-pool -Source0: %{url}/0.8/%{version}/+download/unity-asset-pool-%{version}.tar.gz +Source0: %{url}/%maj_min/%{version}/+download/unity-asset-pool-%{version}.tar.gz BuildArch: noarch BuildRequires: binutils diff --git a/anda/themes/unity-asset-pool/update.rhai b/anda/themes/unity-asset-pool/update.rhai new file mode 100644 index 0000000000..4b9e29ebbb --- /dev/null +++ b/anda/themes/unity-asset-pool/update.rhai @@ -0,0 +1,5 @@ +let html = get("https://launchpad.net/unity-asset-pool"); +let v = find("Latest version is ([\\d.]+)", html, 1); +rpm.version(v); +let vs = v.split("."); +rpm.define("maj_min", `${vs[0]}.${vs[1]}`); diff --git a/anda/tools/gcm-core/gcm-core.spec b/anda/tools/gcm-core/gcm-core.spec index 5dda4216de..e0b6897cdc 100644 --- a/anda/tools/gcm-core/gcm-core.spec +++ b/anda/tools/gcm-core/gcm-core.spec @@ -6,7 +6,7 @@ Name: gcm-core Version: 2.1.2 -%forgemeta -i +%forgemeta Release: 1%{?dist} Summary: Secure, cross-platform Git credential storage