File rust-wasm-component-ld.spec of Package rust-wasm-component-ld

#
# spec file for package rust-wasm-component-ld
#
# Copyright (c) 2024 u <u>.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

# Generated by rust2rpm 26
%bcond_without check

%global crate wasm-component-ld

Name:           rust-wasm-component-ld
Version:        0.3.0
Release:        0
Summary:        Linker for wasm32-wasip2
Group:          Development/Libraries/Rust

License:        Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
URL:            https://crates.io/crates/wasm-component-ld
Source:         https://crates.io/api/v1/crates/%crate/%version/download#/%crate-%version.crate

ExclusiveArch:  %{rust_arches}

BuildRequires:  rust-packaging >= 23
BuildRequires:  (crate(anyhow/default) >= 1.0.80 with crate(anyhow/default) < 2.0.0~)
BuildRequires:  (crate(clap/default) >= 4.5.4 with crate(clap/default) < 5.0.0~)
BuildRequires:  (crate(clap/derive) >= 4.5.4 with crate(clap/derive) < 5.0.0~)
BuildRequires:  (crate(lexopt/default) >= 0.3.0 with crate(lexopt/default) < 0.4.0~)
BuildRequires:  (crate(tempfile/default) >= 3.10.0 with crate(tempfile/default) < 4.0.0~)
BuildRequires:  (crate(wasmparser/default) >= 0.202.0 with crate(wasmparser/default) < 0.203.0~)
BuildRequires:  (crate(wit-component/default) >= 0.202.0 with crate(wit-component/default) < 0.203.0~)

%global _description %{expand:
Linker for `wasm32-wasip2`.}

%description %{_description}

%package     -n %{crate}
Summary:        %{summary}
Group:          # FIXME
# FIXME: paste output of %%cargo_license_summary here
License:        # FIXME
# LICENSE.dependencies contains a full license breakdown

%description -n %{crate} %{_description}

%files       -n %{crate}
%license LICENSE-APACHE
%license LICENSE-Apache-2.0_WITH_LLVM-exception
%license LICENSE-MIT
%license LICENSE.dependencies
%doc README.md
%{_bindir}/wasm-component-ld

%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep

%build
%cargo_build
%{cargo_license_summary}
%{cargo_license} > LICENSE.dependencies

%install
%cargo_install

%if %{with check}
%check
%endif

%changelog
* Tue Apr 09 19:02:04 MSK 2024 u <u>
- Version 0.3.0
- Initial package
openSUSE Build Service is sponsored by