# Generated by rust2rpm 28 %bcond check 0 # prevent library files from being installed %global cargo_install_lib 0 %global crate wasm-pack Name: rust-wasm-pack Version: 0.14.0 Release: %autorelease Summary: 📦✨ your favorite rust -> wasm workflow tool! License: MIT OR Apache-2.0 URL: https://crates.io/crates/wasm-pack Source: %{crates_source} Source: wasm-pack-0.14.0-vendor.tar.xz # Manually created patch for downstream crate metadata changes Patch: wasm-pack-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: 📦✨ your favorite rust -> wasm workflow tool!.} %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 %doc CHANGELOG.md %doc CODE_OF_CONDUCT.md %doc CONTRIBUTING.md %doc README.md %doc RELEASE_CHECKLIST.md %{_bindir}/wasm-pack %prep %autosetup -n %{crate}-%{version} -p1 -a1 %cargo_prep -v vendor %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