add: stardust-flatland (#2049) (#2095)

* initial package for stardust-flatland

* move to stardust folder

* RPM bug workaround stardust-flatland.spec

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

* Update stardust-flatland.spec

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

* Update anda/stardust/flatland/stardust-flatland.spec

Co-authored-by: madomado <madonuko@outlook.com>
Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

* Update anda/stardust/flatland/stardust-flatland.spec

Co-authored-by: madomado <madonuko@outlook.com>
Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

* Update anda/stardust/flatland/stardust-flatland.spec

Co-authored-by: madomado <madonuko@outlook.com>
Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

* Test fix stardust-flatland.spec

Testing CI build without

'Requires:       libgcc glibc'

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

* Update stardust-flatland.spec

Add packager

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 anda.hcl

Fix indentation

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

* Update anda/stardust/flatland/update.rhai

Co-authored-by: madomado <madonuko@outlook.com>
Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

* Update stardust-flatland.spec

Lock cargo install

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

* Update stardust-flatland.spec

Unify summaries

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

* Update stardust-flatland.spec

add environment variable before cargo build

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>
Co-authored-by: madomado <madonuko@outlook.com>
(cherry picked from commit ad0f734875)

Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
Raboneko
2024-09-19 07:52:57 -07:00
committed by GitHub
parent d2a7e7d332
commit 58060197d6
3 changed files with 54 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
project pkg {
rpm {
spec = "stardust-flatland.spec"
}
labels {
nightly = 1
}
}
@@ -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 <owen@fyralabs.com>
%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 <owen@fyralabs.com>
- Package StardustXR Flatland
+5
View File
@@ -0,0 +1,5 @@
rpm.global("commit", gh_commit("StardustXR/flatland"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}