From b3b817ddecc971591bb8924866d3c7897136a8d8 Mon Sep 17 00:00:00 2001 From: Owen Date: Sat, 7 Sep 2024 20:29:28 -0500 Subject: [PATCH] inisital package for stardust-black-hole --- anda/stardust/black-hole/anda.hcl | 8 ++++ .../black-hole/stardust-black-hole.spec | 40 ++++++++++++++++ anda/stardust/black-hole/update.rhai | 7 +++ anda/stardust/server/anda.hcl | 5 -- anda/stardust/server/stardust-server.spec | 46 ------------------- anda/stardust/server/update.rhai | 1 - 6 files changed, 55 insertions(+), 52 deletions(-) create mode 100644 anda/stardust/black-hole/anda.hcl create mode 100644 anda/stardust/black-hole/stardust-black-hole.spec create mode 100644 anda/stardust/black-hole/update.rhai delete mode 100644 anda/stardust/server/anda.hcl delete mode 100644 anda/stardust/server/stardust-server.spec delete mode 100644 anda/stardust/server/update.rhai diff --git a/anda/stardust/black-hole/anda.hcl b/anda/stardust/black-hole/anda.hcl new file mode 100644 index 0000000000..f14c2dc669 --- /dev/null +++ b/anda/stardust/black-hole/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "stardust-black-hole.spec" + } + labels { + nightly = 1 + } +} \ No newline at end of file diff --git a/anda/stardust/black-hole/stardust-black-hole.spec b/anda/stardust/black-hole/stardust-black-hole.spec new file mode 100644 index 0000000000..0cb2e9763f --- /dev/null +++ b/anda/stardust/black-hole/stardust-black-hole.spec @@ -0,0 +1,40 @@ +%global commit 0b847b6ddc383bfcc1e133a2238a37ce8202fe95 +%global commit_date 20240824 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global debug_package %{nil} +%define __os_install_post %{nil} + +Name: stardust-black-hole +Version: %commit_date.%shortcommit +Release: 1%?dist +Summary: Spatial storage for stardust xr. +URL: https://github.com/StardustXR/black-hole +Source0: https://github.com/StardustXR/black-hole/archive/%commit/black-hole-%commit.tar.gz +License: MIT +BuildRequires: cargo cmake anda-srpm-macros cargo-rpm-macros mold +Requires: libgcc glibc glibm + +Provides: black-hole +Conflicts: black-hole + +%description +Spatial storage for stardust xr + +%prep +%autosetup -n black-hole-%commit +%cargo_prep_online + +%build +%cargo_build + +%install +%cargo_install + +%files +%_bindir/black-hole +%license LICENSE +%doc README.md + +%changelog +* Sat Sep 7 2024 Owen-sz +- Package StardustXR black-hole \ No newline at end of file diff --git a/anda/stardust/black-hole/update.rhai b/anda/stardust/black-hole/update.rhai new file mode 100644 index 0000000000..f2705a6be1 --- /dev/null +++ b/anda/stardust/black-hole/update.rhai @@ -0,0 +1,7 @@ +if filters.contains("nightly") { + rpm.global("commit", gh_commit("StardustXR/black-hole")); + if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); + } + } \ No newline at end of file diff --git a/anda/stardust/server/anda.hcl b/anda/stardust/server/anda.hcl deleted file mode 100644 index 2ed71949d7..0000000000 --- a/anda/stardust/server/anda.hcl +++ /dev/null @@ -1,5 +0,0 @@ -project pkg { - rpm { - spec = "stardust-server.spec" - } -} diff --git a/anda/stardust/server/stardust-server.spec b/anda/stardust/server/stardust-server.spec deleted file mode 100644 index 9222846839..0000000000 --- a/anda/stardust/server/stardust-server.spec +++ /dev/null @@ -1,46 +0,0 @@ -Name: stardust-server -Version: 0.44.1 -Release: 1%?dist -Summary: Usable Linux display server that reinvents human-computer interaction for all kinds of XR. -URL: https://github.com/StardustXR/server -Source0: %url/archive/refs/tags/0.44.1.tar.gz -License: GPLv2 - -BuildRequires: cargo cmake anda-srpm-macros cargo-rpm-macros mold g++ -BuildRequires: glx-utils fontconfig-devel glibc libxcb-devel wayland-devel -BuildRequires: openxr-devel libglvnd-devel libglvnd-gles mesa-libgbm-devel -BuildRequires: libwayland-egl libX11-devel libXfixes-devel lld clang -BuildRequires: mesa-libEGL-devel libxkbcommon-devel - -Requires: libxkbcommon libstdc++ openxr-libs libX11 libXfixes -Requires: libglvnd-egl mesa-libgbm fontconfig libgcc glibc jsoncpp libxcb libglvnd -Requires: libwayland-server libdrm expat libxcb freetype libxml2 libXau libXau -Requires: libffi zlib-ng-compat bzip2-libs libpng harfbuzz libbrotli xz-libs -Requires: glib2 graphite2 libbrotli pcre2 - -Packager: Owen Zimmerman - -%description -Usable Linux display server that reinvents human-computer interaction for all kinds of XR, from putting 2D/XR apps into various 3D shells for varying uses to SDF-based interaction. - -%prep -%autosetup -n server-%version -%cargo_prep_online - -%build -%cargo_build - -%install -%cargo_install - -%files -/usr/bin/stardust-xr-server -%license LICENSE -%doc README.md - -%changelog -* Sat Sep 7 2024 june-fish -- Add missing build dependencies - -* Sat Sep 7 2024 Owen-sz -- Package StardustXR Server diff --git a/anda/stardust/server/update.rhai b/anda/stardust/server/update.rhai deleted file mode 100644 index 89a05318d8..0000000000 --- a/anda/stardust/server/update.rhai +++ /dev/null @@ -1 +0,0 @@ -rpm.version(gh("StardustXR/server"));