File stardust-xr-atmosphere.spec of Package stardust-xr-atmosphere

%define _bin_name atmosphere
Name:           stardust-xr-atmosphere
Version:        0.5.0~0
Release:        0
Summary:        Annotate things in Stardust XR
License:        MIT
Url:            https://github.com/StardustXR/atmosphere
Source0:        %{_bin_name}-%{version}.tar.zst
Source1:        vendor.tar.zst
%if 0%{?suse_version}
BuildRequires:  cargo
BuildRequires:  cargo-packaging
%else
BuildRequires: rust-srpm-macros
BuildRequires: cargo-rpm-macros
%endif

%description
%summary.

%prep
%autosetup -p1 -a1 -n %{_bin_name}-%{version}
%if 0%{?fedora}
%cargo_prep -v vendor
%endif

%build
%{cargo_build}

%install
%{cargo_install}

%check
%{cargo_test}

%files
%license LICENSE
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by