diff --git a/anda/lib/apparmor/update.rhai b/anda/lib/apparmor/update.rhai new file mode 100644 index 0000000000..512ca1ccd4 --- /dev/null +++ b/anda/lib/apparmor/update.rhai @@ -0,0 +1,3 @@ +let html = get("https://launchpad.net/apparmor"); +let v = find("Latest version is ([\d.]+)", html, 1); +rpm.version(v); diff --git a/anda/lib/cmake-extras/update.rhai b/anda/lib/cmake-extras/update.rhai index f4ac61854e..798f5b1a8f 100644 --- a/anda/lib/cmake-extras/update.rhai +++ b/anda/lib/cmake-extras/update.rhai @@ -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); diff --git a/anda/lib/dbus-test-runner/update.rhai b/anda/lib/dbus-test-runner/update.rhai new file mode 100644 index 0000000000..c6ea640640 --- /dev/null +++ b/anda/lib/dbus-test-runner/update.rhai @@ -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); diff --git a/anda/lib/frame/frame.spec b/anda/lib/frame/frame.spec index fa14e246be..50d6288233 100644 --- a/anda/lib/frame/frame.spec +++ b/anda/lib/frame/frame.spec @@ -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 diff --git a/anda/lib/frame/update.rhai b/anda/lib/frame/update.rhai new file mode 100644 index 0000000000..f168e2759b --- /dev/null +++ b/anda/lib/frame/update.rhai @@ -0,0 +1,3 @@ +let html = get("https://launchpad.net/frame"); +let v = find("Latest version is v([\d.]+)", html, 1); +rpm.version(v); diff --git a/anda/lib/geis/update.rhai b/anda/lib/geis/update.rhai new file mode 100644 index 0000000000..88f1020fd8 --- /dev/null +++ b/anda/lib/geis/update.rhai @@ -0,0 +1,3 @@ +let html = get("https://launchpad.net/geis"); +let v = find("Latest version is ([\d.]+)", html, 1); +rpm.version(v); diff --git a/anda/lib/geonames/update.rhai b/anda/lib/geonames/update.rhai new file mode 100644 index 0000000000..91e7ab6bf1 --- /dev/null +++ b/anda/lib/geonames/update.rhai @@ -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); diff --git a/anda/lib/glewmx/update.rhai b/anda/lib/glewmx/update.rhai new file mode 100644 index 0000000000..6ea5197ee3 --- /dev/null +++ b/anda/lib/glewmx/update.rhai @@ -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); diff --git a/anda/lib/grail/grail.spec b/anda/lib/grail/grail.spec index 128d1e2198..7459010614 100644 --- a/anda/lib/grail/grail.spec +++ b/anda/lib/grail/grail.spec @@ -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 diff --git a/anda/lib/grail/update.rhai b/anda/lib/grail/update.rhai new file mode 100644 index 0000000000..cfb52f46d2 --- /dev/null +++ b/anda/lib/grail/update.rhai @@ -0,0 +1,3 @@ +let html = get("https://launchpad.net/grail"); +let v = find("Latest version is ([\d.]+)", html, 1); +rpm.version(v); diff --git a/anda/lib/lomiri-app-launch/update.rhai b/anda/lib/lomiri-app-launch/update.rhai new file mode 100644 index 0000000000..4bef084cc0 --- /dev/null +++ b/anda/lib/lomiri-app-launch/update.rhai @@ -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); diff --git a/anda/lib/lomiri-ui-toolkit/lomiri-ui-toolkit.spec b/anda/lib/lomiri-ui-toolkit/lomiri-ui-toolkit.spec index d8aff6c3de..a6dfd7e0ae 100644 --- a/anda/lib/lomiri-ui-toolkit/lomiri-ui-toolkit.spec +++ b/anda/lib/lomiri-ui-toolkit/lomiri-ui-toolkit.spec @@ -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 diff --git a/anda/lib/lomiri-ui-toolkit/update.rhai b/anda/lib/lomiri-ui-toolkit/update.rhai new file mode 100644 index 0000000000..5c7d73e15f --- /dev/null +++ b/anda/lib/lomiri-ui-toolkit/update.rhai @@ -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); diff --git a/anda/lib/nlohmann-json/update.rhai b/anda/lib/nlohmann-json/update.rhai new file mode 100644 index 0000000000..3357c0919d --- /dev/null +++ b/anda/lib/nlohmann-json/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("nlohmann/json")); diff --git a/anda/others/click/update.rhai b/anda/others/click/update.rhai new file mode 100644 index 0000000000..4fdddac26c --- /dev/null +++ b/anda/others/click/update.rhai @@ -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); diff --git a/anda/others/gsettings-ubuntu-touch-schemas/update.rhai b/anda/others/gsettings-ubuntu-touch-schemas/update.rhai new file mode 100644 index 0000000000..92c49cc7ba --- /dev/null +++ b/anda/others/gsettings-ubuntu-touch-schemas/update.rhai @@ -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); diff --git a/anda/others/unity-greeter/unity-greeter.spec b/anda/others/unity-greeter/unity-greeter.spec index ae999ffb92..c206e7fc0c 100644 --- a/anda/others/unity-greeter/unity-greeter.spec +++ b/anda/others/unity-greeter/unity-greeter.spec @@ -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 diff --git a/anda/others/unity-greeter/update.rhai b/anda/others/unity-greeter/update.rhai new file mode 100644 index 0000000000..c056f96829 --- /dev/null +++ b/anda/others/unity-greeter/update.rhai @@ -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);