## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 25 %bcond_without check # nu tests fail on aarch64 builders where the number of cores (224) # are really high (RAM: 256 GB). # use this to reduce the number of CPU threads used so we don't hit # "too many open files" while not affecting builds on other archs # that much # x86_64: 48 CPU, 128 GB RAM; s30x: 3 CPU, 16 GB RAM %constrain_build -m 4096 %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 # OOM when linking. We don't ship binaries on ix86 anyway, exclude it ExcludeArch: %{ix86} 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 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 ## START: Generated by rpmautospec * Sat Feb 17 2024 Michel Lind - 0.88.1-3 - Remove unneeded wix license * Fri Feb 16 2024 Michel Lind - 0.88.1-2 - Tweak memory limits to allow build to succeed on all arches; drop ix86 * Fri Feb 16 2024 Michel Lind - 0.88.1-1 - Initial package (rhbz#2264493) ## END: Generated by rpmautospec