Blame rust-wasmtime-types.spec

06ff5f3
# Generated by rust2rpm 18
06ff5f3
%bcond_without check
06ff5f3
%global debug_package %{nil}
06ff5f3
06ff5f3
%global crate wasmtime-types
06ff5f3
06ff5f3
Name:           rust-%{crate}
06ff5f3
Version:        0.30.0
9758faa
Release:        %autorelease
06ff5f3
Summary:        WebAssembly type definitions for Cranelift
06ff5f3
06ff5f3
# Upstream license specification: Apache-2.0 WITH LLVM-exception
06ff5f3
License:        ASL 2.0 with exceptions
06ff5f3
URL:            https://crates.io/crates/wasmtime-types
06ff5f3
Source:         %{crates_source}
06ff5f3
# License file is not included in the crate
06ff5f3
# Cf. https://github.com/bytecodealliance/wasmtime/pull/3382
06ff5f3
Source1:        LICENSE
06ff5f3
06ff5f3
ExclusiveArch:  %{rust_arches}
06ff5f3
%if %{__cargo_skip_build}
06ff5f3
BuildArch:      noarch
06ff5f3
%endif
06ff5f3
06ff5f3
BuildRequires:  rust-packaging
06ff5f3
06ff5f3
%global _description %{expand:
06ff5f3
WebAssembly type definitions for Cranelift.}
06ff5f3
06ff5f3
%description %{_description}
06ff5f3
06ff5f3
%package        devel
06ff5f3
Summary:        %{summary}
06ff5f3
BuildArch:      noarch
06ff5f3
06ff5f3
%description    devel %{_description}
06ff5f3
06ff5f3
This package contains library source intended for building other packages
06ff5f3
which use "%{crate}" crate.
06ff5f3
06ff5f3
%files          devel
06ff5f3
%license LICENSE
06ff5f3
%{cargo_registry}/%{crate}-%{version_no_tilde}/
06ff5f3
06ff5f3
%package     -n %{name}+default-devel
06ff5f3
Summary:        %{summary}
06ff5f3
BuildArch:      noarch
06ff5f3
06ff5f3
%description -n %{name}+default-devel %{_description}
06ff5f3
06ff5f3
This package contains library source intended for building other packages
06ff5f3
which use "default" feature of "%{crate}" crate.
06ff5f3
06ff5f3
%files       -n %{name}+default-devel
06ff5f3
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
06ff5f3
06ff5f3
%prep
06ff5f3
%autosetup -n %{crate}-%{version_no_tilde} -p1
06ff5f3
# Add LICENSE file
06ff5f3
install -p %{SOURCE1} .
06ff5f3
%cargo_prep
06ff5f3
06ff5f3
%generate_buildrequires
06ff5f3
%cargo_generate_buildrequires
06ff5f3
06ff5f3
%build
06ff5f3
%cargo_build
06ff5f3
06ff5f3
%install
06ff5f3
%cargo_install
06ff5f3
06ff5f3
%if %{with check}
06ff5f3
%check
06ff5f3
%cargo_test
06ff5f3
%endif
06ff5f3
06ff5f3
%changelog
9758faa
%autochangelog