Files
packages/anda/stardust/comet/stardust-comet.spec
T

43 lines
1.1 KiB
RPMSpec

%global commit 52b442c42d8b2938f16adfe42ab1ac0b5d29a137
%global commit_date 20251218
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# Exclude input files from mangling
%global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$
Name: stardust-xr-comet
Version: %commit_date.%shortcommit
Release: 1%?dist
Summary: Annotate things in Stardust XR
URL: https://github.com/StardustXR/comet
Source0: %url/archive/%commit/comet-%commit.tar.gz
License: MIT
BuildRequires: cargo cmake anda-srpm-macros cargo-rpm-macros mold
Provides: comet stardust-comet
Packager: Owen Zimmerman <owen@fyralabs.com>
%description
%summary.
%prep
%autosetup -n comet-%commit
%cargo_prep_online
%build
%install
%define __cargo_common_opts %{?_smp_mflags} -Z avoid-dev-deps --locked
%cargo_install
%cargo_license_summary_online
%{cargo_license_online} > LICENSE.dependencies
%files
%_bindir/comet
%license LICENSE
%license LICENSE.dependencies
%doc README.md
%changelog
* Sat Sep 7 2024 Owen-sz <owen@fyralabs.com>
- Package StardustXR comet