add: stardust-flatland-nightly (#9111) (#9139)

(cherry picked from commit 761cac47e1)

Signed-off-by: Owen-sz <owen@fyralabs.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
Raboneko
2026-01-12 16:35:33 -08:00
committed by GitHub
parent d777ae35b4
commit 4485a91b7b
6 changed files with 62 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
project pkg {
rpm {
spec = "stardust-flatland-nightly.spec"
}
labels {
nightly = 1
}
}
@@ -0,0 +1,49 @@
%global commit add9b3420940a5608116d02d3dbf53fbd3eb7c40
%global commit_date 20251225
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# Exclude input files from mangling
%global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$
Name: stardust-xr-flatland-nightly
Version: 0~%{commit_date}git.%{shortcommit}
Release: 1%?dist
Summary: Flatland for Stardust XR
URL: https://github.com/StardustXR/flatland
Source0: %url/archive/%commit/flatland-%commit.tar.gz
License: MIT
BuildRequires: cargo cmake anda-srpm-macros cargo-rpm-macros mold
Provides: flatland-nightly stardust-flatland-nightly
Conflicts: stardust-xr-flatland
Packager: Owen Zimmerman <owen@fyralabs.com>
%description
%summary.
%prep
%autosetup -n flatland-%commit
%cargo_prep_online
%build
%install
%define __cargo_common_opts %{?_smp_mflags} -Z avoid-dev-deps --locked
export STARDUST_RES_PREFIXES=%_datadir
%cargo_install
mkdir -p %buildroot%_datadir
cp -r res/* %buildroot%_datadir/
%cargo_license_summary_online
%{cargo_license_online} > LICENSE.dependencies
%files
%_bindir/flatland
%_datadir/flatland/
%license LICENSE
%license LICENSE.dependencies
%doc README.md
%changelog
* Sun Jan 11 2026 Owen Zimmerman <owen@fyralabs.com>
- Initial commit (port from stable)
@@ -0,0 +1,5 @@
rpm.global("commit", gh_commit("StardustXR/flatland"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}