# Generated by rust2rpm 25 %bcond_without check %global crate nu Name: rust-nu Version: 0.88.1 Release: %autorelease Summary: New type of shell License: MIT URL: https://crates.io/crates/nu Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: nu-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * drop criterion, only needed for benchmarks Patch: nu-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A new type of shell.} %description %{_description} %package -n %{crate} Summary: %{summary} # (Apache-2.0 OR MIT) AND BSD-3-Clause # (MIT OR Apache-2.0) AND Apache-2.0 # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # 0BSD OR MIT OR Apache-2.0 # Apache-2.0 # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-2-Clause OR Apache-2.0 OR MIT # CC-PDDC # CC0-1.0 # ISC # MIT # MIT AND Apache-2.0 # MIT OR Apache-2.0 # MIT OR Apache-2.0 OR Zlib # MIT OR Zlib OR Apache-2.0 # MIT-0 OR Apache-2.0 # Unlicense OR MIT # Zlib # Zlib OR Apache-2.0 OR MIT License: MIT AND (Apache-2.0 OR MIT) AND BSD-3-Clause AND Apache-2.0 AND Unicode-DFS-2016 AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND CC-PDDC AND CC0-1.0 AND ISC AND (MIT OR Apache-2.0 OR Zlib) AND (MIT-0 OR Apache-2.0) AND (Unlicense OR MIT) AND Zlib AND (Zlib OR Apache-2.0 OR MIT) # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license wix/License.rtf %license LICENSE.dependencies %doc CODE_OF_CONDUCT.md %doc CONTRIBUTING.md %doc README.md %{_bindir}/nu %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %if %{with check} %check # * these tests depend on unshipped fixtures %cargo_test -- -- --skip tests::test_config_path:: --skip tests::test_custom_commands::infinite_recursion_does_not_panic --skip tests::test_custom_commands::override_table_eval_file --skip const_:: --skip eval:: --skip hooks:: --skip modules:: --skip overlays:: --skip parsing:: --skip path:: --skip plugins:: --skip scope:: --skip shell:: %endif %changelog %autochangelog