mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
(cherry picked from commit 761cac47e1)
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,8 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "stardust-flatland-nightly.spec"
|
||||
}
|
||||
labels {
|
||||
nightly = 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
%global commit add9b3420940a5608116d02d3dbf53fbd3eb7c40
|
||||
%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-flatland-nightly
|
||||
Version: 0~%{commit_date}git.%{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-nightly stardust-flatland-nightly
|
||||
Conflicts: stardust-xr-flatland
|
||||
Packager: Owen Zimmerman <owen@fyralabs.com>
|
||||
|
||||
%description
|
||||
%summary.
|
||||
|
||||
%prep
|
||||
%autosetup -n flatland-%commit
|
||||
%cargo_prep_online
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
%define __cargo_common_opts %{?_smp_mflags} -Z avoid-dev-deps --locked
|
||||
export STARDUST_RES_PREFIXES=%_datadir
|
||||
%cargo_install
|
||||
|
||||
mkdir -p %buildroot%_datadir
|
||||
cp -r res/* %buildroot%_datadir/
|
||||
%cargo_license_summary_online
|
||||
%{cargo_license_online} > LICENSE.dependencies
|
||||
|
||||
|
||||
%files
|
||||
%_bindir/flatland
|
||||
%_datadir/flatland/
|
||||
%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/flatland"));
|
||||
if rpm.changed() {
|
||||
rpm.release();
|
||||
rpm.global("commit_date", date());
|
||||
}
|
||||
Reference in New Issue
Block a user