fix(flow): build release not from latest commit now that upstream is versioned (#3299) (#3305)

---------

Signed-off-by: sadlerm4 <sad_lerm@hotmail.com>
This commit is contained in:
sadlerm4
2025-02-13 23:27:31 +11:00
committed by GitHub
parent 13a1d1e13d
commit 78592a6ca6
4 changed files with 30 additions and 41 deletions
+1 -4
View File
@@ -1,8 +1,5 @@
project pkg {
rpm {
spec = "flow-control-nightly.spec"
}
labels {
nightly = 1
spec = "flow-control.spec"
}
}
-30
View File
@@ -1,30 +0,0 @@
%global commit e6e0301a782989782464e5f141ff4b4030a23c38
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date 20250130
Name: flow-control-nightly
Version: %commit_date.%shortcommit
Release: 1%?dist
Summary: A programmer's text editor
License: MIT
URL: https://github.com/neurocyte/flow
Source0: %url/archive/%commit.tar.gz
BuildRequires: zig
Provides: flow = %version-%release
%description
%summary.
%prep
%autosetup -n flow-%commit
%build
zig build -Doptimize=ReleaseFast --release=fast
%install
install -Dpm755 zig-out/bin/flow %buildroot%_bindir/flow
%files
%doc README.md help.md
%license LICENSE
%_bindir/flow
+28
View File
@@ -0,0 +1,28 @@
Name: flow-control
Epoch: 1
Version: 0.3.3
Release: 1%?dist
Summary: A programmer's text editor
License: MIT
URL: https://github.com/neurocyte/flow
BuildRequires: zig
BuildRequires: anda-srpm-macros
Provides: flow = %epoch:%version-%release
Obsoletes: flow-control-nightly < 20250212.9999999
%description
%summary.
%prep
%git_clone %url v%version
%build
zig build -Doptimize=ReleaseFast --release=fast
%install
install -Dpm755 zig-out/bin/flow %buildroot%_bindir/flow
%files
%doc README.md help.md
%license LICENSE
%_bindir/flow
+1 -7
View File
@@ -1,7 +1 @@
if filters.contains("nightly") {
rpm.global("commit", gh_commit("neurocyte/flow"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}
}
rpm.version(gh("neurocyte/flow"));