feat(update): automatic update scripts (#309)

The following packages now receive updates automatically:
apparmor dbus-test-runner frame geis geoname glewmx grail
lomiri-app-launcher lomiri-ui-toolkit nlohmann-json click
gsettigs-ubuntu-touch-schemas unity-greeter

Note that some specs are modified to:
- fails when there is an update
  * now we know there's an update
  * doesn't make a version with the old sources (horrible)
- fix source urls so that it works when the package is bumped
  automatically

Some packages are also intentionally avoided because either it's too
hard to implement autoupdate or it's a bad idea (such as
properties-cpp-devel which doesn't really receive updates + there's a
patch by cat-master21)
This commit is contained in:
madomado
2023-03-25 08:48:48 +08:00
committed by GitHub
parent 55b4e5026b
commit bd09bb3e59
18 changed files with 43 additions and 7 deletions
+3
View File
@@ -0,0 +1,3 @@
let html = get("https://launchpad.net/apparmor");
let v = find("Latest version is ([\d.]+)", html, 1);
rpm.version(v);
+1 -2
View File
@@ -1,3 +1,2 @@
let txt = get("https://gitlab.com/api/v4/projects/17117115/repository/tags");
let ver = txt.json_arr()[0].name;
rpm.version(ver);
rpm.version(txt.json_arr()[0].name);
+3
View File
@@ -0,0 +1,3 @@
let html = get("https://launchpad.net/dbus-test-runner");
let v = find("Latest version is ([\d.]+)", html, 1);
rpm.version(v);
+2 -2
View File
@@ -5,8 +5,8 @@ Summary: Touch Frame Library
License: GPLv3 AND LGPLv3
URL: https://launchpad.net/frame
Source0: http://archive.ubuntu.com/ubuntu/pool/universe/f/frame/frame_2.5.0daily13.06.05+16.10.20160809.orig.tar.gz
Patch0: http://archive.ubuntu.com/ubuntu/pool/universe/f/frame/frame_2.5.0daily13.06.05+16.10.20160809-0ubuntu3.diff.gz
Source0: http://archive.ubuntu.com/ubuntu/pool/universe/f/frame/frame_%{version}daily13.06.05+16.10.20160809.orig.tar.gz
Patch0: http://archive.ubuntu.com/ubuntu/pool/universe/f/frame/frame_%{version}daily13.06.05+16.10.20160809-0ubuntu3.diff.gz
BuildRequires: automake libtool gnome-common
BuildRequires: intltool
+3
View File
@@ -0,0 +1,3 @@
let html = get("https://launchpad.net/frame");
let v = find("Latest version is v([\d.]+)", html, 1);
rpm.version(v);
+3
View File
@@ -0,0 +1,3 @@
let html = get("https://launchpad.net/geis");
let v = find("Latest version is ([\d.]+)", html, 1);
rpm.version(v);
+3
View File
@@ -0,0 +1,3 @@
let o = get("https://gitlab.com/api/v4/projects/34230948/repository/tags").json_arr()[0];
rpm.global("commit", o.commit.id);
rpm.version(o.name);
+3
View File
@@ -0,0 +1,3 @@
let html = get("http://archive.ubuntu.com/ubuntu/pool/universe/g/glewmx/?C=N;O=D");
let v = find("glewmx_([\\d.+]+).", html, 1);
rpm.version(v);
+1 -1
View File
@@ -5,7 +5,7 @@ Summary: Gesture Recognition And Instantiation Library
License: GPLv3 AND LGPLv3
URL: https://launchpad.net/grail
Source0: http://archive.ubuntu.com/ubuntu/pool/universe/g/grail/grail_3.1.1.orig.tar.bz2
Source0: http://archive.ubuntu.com/ubuntu/pool/universe/g/grail/grail_%{version}.orig.tar.bz2
BuildRequires: automake libtool gnome-common
BuildRequires: intltool
+3
View File
@@ -0,0 +1,3 @@
let html = get("https://launchpad.net/grail");
let v = find("Latest version is ([\d.]+)", html, 1);
rpm.version(v);
+3
View File
@@ -0,0 +1,3 @@
let o = get("https://gitlab.com/api/v4/projects/17286402/repository/tags").json_arr()[0];
rpm.global("commit", o.commit.id);
rpm.version(o.name);
@@ -20,7 +20,7 @@ BuildRequires: gcc
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: libXi-devel
Buildrequires: lttng-ust-devel
BuildRequires: lttng-ust-devel
BuildRequires: qt5-doctools
BuildRequires: qt5-rpm-macros
BuildRequires: qt5-qtdeclarative
+3
View File
@@ -0,0 +1,3 @@
let o = get("https://gitlab.com/api/v4/projects/19057685/repository/tags").json_arr()[0];
rpm.global("commit", o.commit.id);
rpm.version(o.name);
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("nlohmann/json"));
+3
View File
@@ -0,0 +1,3 @@
let o = get("https://gitlab.com/api/v4/projects/25034025/repository/tags").json_arr()[0];
rpm.global("commit", o.commit.id);
rpm.version(o.name);
@@ -0,0 +1,3 @@
let html = get("https://bazaar.launchpad.net/~system-settings-touch/gsettings-ubuntu-touch-schemas/trunk/changes");
let v = find("([.\\d+]+)-0ubuntu1", html, 1);
rpm.version(v);
+1 -1
View File
@@ -5,7 +5,7 @@ Summary: Unity Greeter for Lightdm
License: GPLv3
URL: https://launchpad.net/unity-greeter
Source0: http://archive.ubuntu.com/ubuntu/pool/universe/u/unity-greeter/unity-greeter_22.04.1-0ubuntu2.tar.xz
Source0: http://archive.ubuntu.com/ubuntu/pool/universe/u/unity-greeter/unity-greeter_%{version}-0ubuntu2.tar.xz
Patch1: 0001-Remove-libido.patch
BuildRequires: automake libtool gnome-common
+3
View File
@@ -0,0 +1,3 @@
let html = get("http://archive.ubuntu.com/ubuntu/pool/universe/u/unity-greeter/?C=N;O=D");
let v = find("unity-greeter_([\\d.+]+)-0ubuntu2", html, 1);
rpm.version(v);