diff --git a/anda/stardust/flatland/anda.hcl b/anda/stardust/flatland/anda.hcl new file mode 100644 index 0000000000..9f0199171a --- /dev/null +++ b/anda/stardust/flatland/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "stardust-flatland.spec" + } + labels { + nightly = 1 + } +} diff --git a/anda/stardust/flatland/stardust-flatland.spec b/anda/stardust/flatland/stardust-flatland.spec new file mode 100644 index 0000000000..5d5e880220 --- /dev/null +++ b/anda/stardust/flatland/stardust-flatland.spec @@ -0,0 +1,41 @@ +%global commit b83f2eced868fe71248ba7681df978698eb978f0 +%global commit_date 20240824 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +# Exclude input files from mangling +%global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$ + +Name: stardust-flatland +Version: %commit_date.%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 +Packager: Owen Zimmerman + +%description +%summary + +%prep +%autosetup -n flatland-%commit +%cargo_prep_online + +%build +STARDUST_RES_PREFIXES=/usr/share + +%install +%define __cargo_common_opts %{?_smp_mflags} -Z avoid-dev-deps --locked +STARDUST_RES_PREFIXES=%_datadir +%cargo_install + +%files +%_bindir/flatland +%license LICENSE +%doc README.md + +%changelog +* Sat Sep 7 2024 Owen-sz +- Package StardustXR Flatland diff --git a/anda/stardust/flatland/update.rhai b/anda/stardust/flatland/update.rhai new file mode 100644 index 0000000000..0688d89201 --- /dev/null +++ b/anda/stardust/flatland/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("StardustXR/flatland")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +}