diff --git a/anda/stardust/armillary/anda.hcl b/anda/stardust/armillary/anda.hcl new file mode 100644 index 0000000000..261ee3ed48 --- /dev/null +++ b/anda/stardust/armillary/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "stardust-armillary.spec" + } +} diff --git a/anda/stardust/armillary/stardust-armillary.spec b/anda/stardust/armillary/stardust-armillary.spec new file mode 100644 index 0000000000..66ef284a67 --- /dev/null +++ b/anda/stardust/armillary/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 + +%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 +- Package StardustXR armillary diff --git a/anda/stardust/armillary/update.rhai b/anda/stardust/armillary/update.rhai new file mode 100644 index 0000000000..4b75d1e64b --- /dev/null +++ b/anda/stardust/armillary/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("StardustXR/armillary")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +}