add: stardust-armillary (#2050) (#2089)

* initial package for stardust-armillary

* move to stardust folder

* fix directories in stardust-armillary

* RPM bug workaround stardust-armillary.spec

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

* Remove conflicts

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

* Update stardust-armillary.spec

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

* Update stardust-armillary.spec

Remove %cargo_build

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

* Update stardust-armillary.spec

Add packager

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

* Update stardust-armillary.spec

Remove runtime requirements

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

* Update update.rhai

Remove if statement from Rhai

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

* Update update.rhai

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

* Update update.rhai

fix indentation

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

* Update stardust-armillary.spec

Lock cargo install

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

---------

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
Co-authored-by: june-fish <git@june.fish>
(cherry picked from commit 693c0c4b0b)

Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
Raboneko
2024-09-19 07:53:21 -07:00
committed by GitHub
parent a8c7499496
commit 82d3081f2f
3 changed files with 49 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "stardust-armillary.spec"
}
}
@@ -0,0 +1,39 @@
%global commit 8ad02b636690170adbd4279fe3fc8265088cbcc2
%global commit_date 20240726
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# Exclude input files from mangling
%global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$
Name: stardust-armillary
Version: %commit_date.%shortcommit
Release: 1%?dist
Summary: Model viewer for Stardust XR.
URL: https://github.com/StardustXR/armillary
Source0: %url/archive/%commit/armillary-%commit.tar.gz
License: MIT
BuildRequires: cargo cmake anda-srpm-macros cargo-rpm-macros mold
Provides: armillary
Packager: Owen Zimmerman <owen@fyralabs.com>
%description
A model viewer for Stardust XR which works great for hand tracking, pointers, and controllers.
%prep
%autosetup -n armillary-%commit
%cargo_prep_online
%build
%install
%define __cargo_common_opts %{?_smp_mflags} -Z avoid-dev-deps --locked
%cargo_install
%files
%_bindir/armillary
%license LICENSE
%doc README.md
%changelog
* Sat Sep 7 2024 Owen-sz <owen@fyralabs.com>
- Package StardustXR armillary
+5
View File
@@ -0,0 +1,5 @@
rpm.global("commit", gh_commit("StardustXR/armillary"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}