mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
(cherry picked from commit 0fcb37eae9)
Signed-off-by: Owen-sz <owen@fyralabs.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "stardust-server-nightly.spec"
|
||||
}
|
||||
labels {
|
||||
nightly = 1
|
||||
large = 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
%global commit f0545414201aa1c825e2546ee98aae010100bffd
|
||||
%global commit_date 20251225
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
# Exclude input files from mangling
|
||||
%global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$
|
||||
|
||||
Name: stardust-xr-server-nightly
|
||||
Version: 0~%{commit_date}git.%{shortcommit}
|
||||
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/%commit/server-%commit.tar.gz
|
||||
License: GPL-2.0-only
|
||||
|
||||
BuildRequires: cargo
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: mold
|
||||
BuildRequires: anda-srpm-macros
|
||||
BuildRequires: cargo-rpm-macros
|
||||
|
||||
BuildRequires: fontconfig-devel
|
||||
BuildRequires: glibc
|
||||
BuildRequires: openxr-devel
|
||||
BuildRequires: alsa-lib-devel
|
||||
BuildRequires: wayland-devel
|
||||
|
||||
Provides: stardust-server-nightly
|
||||
Conflicts: stardust-xr-server
|
||||
|
||||
Packager: Owen Zimmerman <owen@fyralabs.com>
|
||||
|
||||
%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-%commit
|
||||
%cargo_prep_online
|
||||
|
||||
%build
|
||||
%cargo_build
|
||||
|
||||
%install
|
||||
install -Dm755 target/rpm/stardust-xr-server %{buildroot}%{_bindir}/stardust-xr-server
|
||||
%cargo_license_summary_online
|
||||
%{cargo_license_online} > LICENSE.dependencies
|
||||
|
||||
%files
|
||||
%{_bindir}/stardust-xr-server
|
||||
%license LICENSE
|
||||
%license LICENSE.dependencies
|
||||
%doc README.md
|
||||
|
||||
%changelog
|
||||
* Sun Jan 11 2026 Owen Zimmerman <owen@fyralabs.com>
|
||||
- Initial commit (port from stable)
|
||||
@@ -0,0 +1,5 @@
|
||||
rpm.global("commit", gh_commit("StardustXR/server"));
|
||||
if rpm.changed() {
|
||||
rpm.release();
|
||||
rpm.global("commit_date", date());
|
||||
}
|
||||
Reference in New Issue
Block a user