Skip to content

Commit

Permalink
add: stardust gravity (#2063) (#2105)
Browse files Browse the repository at this point in the history
* initial package for stardust-server

* add missing build deps

* move to stardust folder

* inisital package for stardust-black-hole

* RPM bug workaround stardust-black-hole.spec

Signed-off-by: Owen Zimmerman <[email protected]>

* Remove conflicts

Signed-off-by: Owen Zimmerman <[email protected]>

* Update anda/stardust/black-hole/update.rhai

Co-authored-by: madomado <[email protected]>
Signed-off-by: Owen Zimmerman <[email protected]>

* Update anda/stardust/black-hole/stardust-black-hole.spec

Co-authored-by: madomado <[email protected]>
Signed-off-by: Owen Zimmerman <[email protected]>

* Update anda/stardust/black-hole/stardust-black-hole.spec

Co-authored-by: madomado <[email protected]>
Signed-off-by: Owen Zimmerman <[email protected]>

* Update anda/stardust/black-hole/stardust-black-hole.spec

Co-authored-by: madomado <[email protected]>
Signed-off-by: Owen Zimmerman <[email protected]>

* Update stardust-black-hole.spec

Add packager

Signed-off-by: Owen Zimmerman <[email protected]>

* Update anda.hcl

Fix name

Signed-off-by: Owen Zimmerman <[email protected]>

* Update stardust-black-hole.spec

Signed-off-by: Owen Zimmerman <[email protected]>

* Update update.rhai

Fix name

Signed-off-by: Owen Zimmerman <[email protected]>

* Update stardust-black-hole.spec

fix deps

Signed-off-by: Owen Zimmerman <[email protected]>

* Update stardust-black-hole.spec

Fix files

Signed-off-by: Owen Zimmerman <[email protected]>

* Update update.rhai

Remove if statement from Rhai

Signed-off-by: Owen Zimmerman <[email protected]>

* Update anda/stardust/black-hole/update.rhai

Co-authored-by: madomado <[email protected]>
Signed-off-by: Owen Zimmerman <[email protected]>

* fix directories issue

* actually fix directories error

* Initial package for stardust-atmosphere

* WIP

* initial package for stardust-gravity

* Update stardust-gravity.spec

Lock cargo install

Signed-off-by: Owen Zimmerman <[email protected]>

* Update stardust-gravity.spec

Unify summaries

Signed-off-by: Owen Zimmerman <[email protected]>

---------

Signed-off-by: Owen Zimmerman <[email protected]>
Co-authored-by: june-fish <[email protected]>
Co-authored-by: madomado <[email protected]>
(cherry picked from commit 937591b)

Co-authored-by: Owen Zimmerman <[email protected]>
  • Loading branch information
raboneko and Owen-sz authored Sep 19, 2024
1 parent 4419cb4 commit 649a5c0
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
8 changes: 8 additions & 0 deletions anda/stardust/gravity/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
project pkg {
rpm {
spec = "stardust-gravity.spec"
}
labels {
nightly = 1
}
}
40 changes: 40 additions & 0 deletions anda/stardust/gravity/stardust-gravity.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
%global commit 96787ed3139717ea6061f6e259e9fed3e483274a
%global commit_date 20240821
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# Exclude input files from mangling
%global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$

Name: stardust-gravity
Version: %commit_date.%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
Packager: Owen Zimmerman <[email protected]>

%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


%files
%_bindir/gravity
%license LICENSE
%doc README.md

%changelog
* Wed Sep 11 2024 Owen-sz <[email protected]>
- Package StardustXR gravity
5 changes: 5 additions & 0 deletions anda/stardust/gravity/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rpm.global("commit", gh_commit("StardustXR/gravity"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}

0 comments on commit 649a5c0

Please sign in to comment.