# Generated by rust2rpm 28 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 %global crate wasm-bindgen-cli Name: rust-wasm-bindgen-cli Version: 0.2.111 Release: %autorelease Summary: Command line interface of the #[wasm_bindgen] attribute and project License: MIT OR Apache-2.0 URL: https://crates.io/crates/wasm-bindgen-cli Source: %{crates_source} Source: wasm-bindgen-cli-0.2.111-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: Command line interface of the `#[wasm_bindgen]` attribute and project. For more information see https://github.com/wasm-bindgen/wasm-bindgen.} %description %{_description} %package -n %{crate} Summary: %{summary} # 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-MIT %license LICENSE.dependencies %license cargo-vendor.txt %{_bindir}/wasm-bindgen %{_bindir}/wasm-bindgen-test-runner %{_bindir}/wasm2es6js %prep %autosetup -n %{crate}-%{version} -p1 -a1 %cargo_prep -v vendor find vendor -type f -name '*.rs' -exec chmod 0644 {} + %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog