add: stardust-gravity-nightly (#9112) (#9134)

(cherry picked from commit bef6eb2ad3)

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:22:25 -08:00
committed by GitHub
parent 13a1d8b0fc
commit 1b64d6fb21
6 changed files with 56 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
project pkg {
rpm {
spec = "stardust-gravity-nightly.spec"
}
labels {
nightly = 1
}
}
@@ -0,0 +1,43 @@
%global commit 3283bf8b352cdcb04ef3e0edb5155c4ca8c5c97c
%global commit_date 20251130
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# Exclude input files from mangling
%global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$
Name: stardust-xr-gravity-nightly
Version: 0~%{commit_date}git.%{shortcommit}
Release: 1%?dist
Summary: Utility to launch apps and Stardust XR clients spatially
URL: https://github.com/StardustXR/gravity
Source0: %url/archive/%commit/gravity-%commit.tar.gz
License: MIT
BuildRequires: cargo cmake anda-srpm-macros cargo-rpm-macros mold
Provides: gravity-nightly stardust-gravity-nightly
Conflicts: stardust-xr-gravity
Packager: Owen Zimmerman <owen@fyralabs.com>
%description
%summary.
%prep
%autosetup -n gravity-%commit
%cargo_prep_online
%build
%install
%define __cargo_common_opts %{?_smp_mflags} -Z avoid-dev-deps --locked
%cargo_install
%cargo_license_summary_online
%{cargo_license_online} > LICENSE.dependencies
%files
%_bindir/gravity
%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/gravity"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}