Skip to content

Commit

Permalink
fix(update): nightly packages and use of date(), commit_date and shor…
Browse files Browse the repository at this point in the history
…tcommit (#981)

Signed-off-by: madomado <[email protected]>
  • Loading branch information
madonuko authored Mar 12, 2024
1 parent fc37db1 commit 30be063
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%global plug_rdnn io.elementary.switchboard.wallet

%global commit 50582fc7ee43a4b47647d04786dcf1d0eb45af36
%global commit_date 240218
%global commit_date 20240218

Name: switchboard-plug-wallet
Summary: Switchboard Wallet Plug
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
%global uuid %{extension}@system76.com
%global commit 9a30c5bd49c373896410852d6477596ac4c43bd3
%global shortcommit %{lua:print(macros.commit:sub(1,7))}
%global commit_date 240218
%global commit_date 20240218
%global ver 1.2.0

Name: terra-gnome-shell-extension-%{extension}
Version: %{ver}^%{shortcommit}
Version: %{ver}^%commit_date.%{shortcommit}
Release: 1%?dist
Summary: GNOME Shell extension for advanced tiling window management
License: GPL-3.0-only
Expand Down
3 changes: 2 additions & 1 deletion anda/langs/nim/nim-nightly/nim-nightly.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
%global csrc_commit 561b417c65791cd8356b5f73620914ceff845d10
%global commit 78c834dd76f273d8813247647531005a1f7db1a6
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global ver 2.1.1
%global commit_date 20240312
%global debug_package %nil

Name: nim-nighlty
Version: %ver^%commit_date.%commit
Version: %ver^%commit_date.%shortcommit
Release: 1%?dist
Summary: Imperative, multi-paradigm, compiled programming language
License: MIT and BSD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%global commit 3b5fe941bea6ecd5c8fcb84930c40b8582eea165
%global shortcommit %(c=%{commit}; echo ${c:0:7})

%global commit_date 240218
%global commit_date 20240218
%global snapshot_info %{commit_date}.%{shortcommit}
%global verrel 0.48.7

Expand Down
2 changes: 1 addition & 1 deletion anda/langs/vala/vala-lint-nightly/vala-lint-nightly.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%global commit 8ae2bb65fe66458263d94711ae4ddd978faece00
%global shortcommit %(c=%{commit}; echo ${c:0:7})

%global commit_date 240218
%global commit_date 20240218
%global snapshot_info %{commit_date}.%{shortcommit}

Name: vala-lint-nightly
Expand Down
2 changes: 1 addition & 1 deletion anda/langs/vala/vala-nightly/vala-nightly.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global repo https://gitlab.gnome.org/GNOME/%{real_name}.git

%global commit_date 240218
%global commit_date 20240218
%global snapshot_info %{commit_date}.%{shortcommit}

Name: vala-nightly
Expand Down
3 changes: 3 additions & 0 deletions anda/lib/pqmarble/anda.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ project pkg {
rpm {
spec = "pqmarble.spec"
}
labels {
nightly = "1"
}
}
4 changes: 3 additions & 1 deletion anda/lib/pqmarble/pqmarble.spec
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
%global commit f240b2ec7d5cdacb8fdcc553703420dc5101ffdb
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date 20240310
%global ver 2.0.0

Name: pqmarble
Version: %ver^%commit
Version: %ver^%commit_date.%shortcommit
Release: 1%{?dist}
Summary: My GTK library
License: GPL-3.0
Expand Down
12 changes: 8 additions & 4 deletions anda/lib/pqmarble/update.rhai
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
let req = get("https://gitlab.gnome.org/api/v4/projects/20662/repository/branches/master").json();
rpm.global("commit", req.commit.id);
let meson = get("https://gitlab.gnome.org/raggesilver/marble/-/raw/master/meson.build");
rpm.global("ver", find("(?m)^\\s+version:\\s*'(.+)',$", meson, 1));
if filters.contains("nightly") {
rpm.global("commit", gitlab_commit("gitlab.gnome.org", "20662", "master"));
if rpm.changed() {
let meson = get("https://gitlab.gnome.org/raggesilver/marble/-/raw/master/meson.build");
rpm.global("ver", find("(?m)^\\s+version:\\s*'(.+)',$", meson, 1));
rpm.global("commit_date", date());
}
}
6 changes: 4 additions & 2 deletions anda/lib/tdlib/tdlib-nightly.spec
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
%global commit d0ff90bb19a235d9357f0874b0a62306e40d90b8
%global ver 1.8.25
%global commit_date 240219
%global commit_date 20240219
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name: tdlib-nightly
Version: %ver^%commit_date.%commit
Version: %ver^%commit_date.%shortcommit
Release: 1%?dist
License: BSL-1.0
URL: https://github.com/tdlib/td
Expand Down
2 changes: 1 addition & 1 deletion anda/lib/tdlib/update.rhai
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
if filters.contains("nightly") {
rpm.global("commit", gh_commit("tdlib/td"));
if rpm.changed() {
let v = find("\nproject\\(TDLib\\s+VERSION\\s+([\\d.]+)\\s+", gh_rawfile("tdlib/td", "master", "CMakeLists.txt")), 1);
let v = find("\nproject\\(TDLib\\s+VERSION\\s+([\\d.]+)\\s+", gh_rawfile("tdlib/td", "master", "CMakeLists.txt"), 1);
rpm.global("ver", v);
rpm.release();
}
Expand Down
2 changes: 1 addition & 1 deletion anda/system/avstplg/avstplg.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%global commit 7cb289b6466b662fdf9f7d7ccc9f3c08a7dc0cac
%global commit_date 240219
%global commit_date 20240219
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global debug_package %{nil}
%define __os_install_post %{nil}
Expand Down
2 changes: 1 addition & 1 deletion anda/system/nvidia-patch/nvidia-patch.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%global debug_package %{nil}
%global commit 564c0661a942f7163cb2cfa6cb1b14b4bcff3a30
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date 240218
%global commit_date 20240218


%global patches %{_datadir}/src/nvidia-patch
Expand Down

0 comments on commit 30be063

Please sign in to comment.