## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 14; 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 27 %bcond check 1 # Constrain parallelization to try to ensure we have an adequate amount of # memory (per core, in kiB) for compiling. %global _smp_tasksize_proc 4096 %if %{defined el9} # EPEL9 rpm lacks _smp_tasksize_proc, so we set an absolute limit on # parallelization and hope for the best. %global _smp_ncpus_max 64 %endif %global crate nu Name: rust-nu Version: 0.99.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 unused tango-bench dependency and benchmarks # * temporarily bump reedline from 0.36.0 to 0.37.0 # * update rstest to 0.26: github.com/nushell/nushell/pull/16359 # * allow dirs 6: # https://github.com/nushell/nushell/commit/007b223acc1f0dd57ebbefc101ce1a6e46f707d0 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 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 # BSD-3-Clause # BSD-3-Clause AND MIT # CC-PDDC # CC0-1.0 # ISC # MIT # MIT AND Apache-2.0 # MIT OR Apache-2.0 # MIT OR Zlib OR Apache-2.0 # MIT-0 OR Apache-2.0 # MPL-2.0 # Unicode-3.0 # Unlicense OR MIT # Zlib License: %{shrink: MIT AND (Apache-2.0 OR MIT) AND BSD-3-Clause AND Unicode-DFS-2016 AND (0BSD OR MIT OR Apache-2.0) AND 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 MPL-2.0 AND Unicode-3.0 AND (Unlicense OR MIT) AND Zlib } # 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 %doc SECURITY.md %{_bindir}/nu %prep %autosetup -n %{crate}-%{version} -p1 rm -rv wix/ %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %if %{with check} %check # Tests fail with “too many open files” on builders where the number of cores # is very high (e.g. 192, 224). Setting _smp_ncpus_max to 64 does not prevent # this. Instead, more strictly constrain the number of parallel tests in # particular. The exact number is a fairly arbitrary choice. export RUST_TEST_THREADS=16 # * these tests depend on unshipped fixtures %{cargo_test -- -- %{shrink: --skip plugin_persistence:: --skip repl::test_custom_commands::deprecated_boolean_flag --skip repl::test_custom_commands::infinite_mutual_recursion_does_not_panic --skip repl::test_custom_commands::infinite_recursion_does_not_panic --skip repl::test_custom_commands::override_table_eval_file --skip repl::test_env::default_nu_lib_dirs_type --skip repl::test_env::default_nu_plugin_dirs_type --skip repl::test_parser::assign_backtick_quoted_external_fails --skip repl::test_parser::assign_backtick_quoted_external_with_caret --skip repl::test_parser::assign_bare_external_fails --skip repl::test_parser::assign_bare_external_with_caret --skip repl::test_parser::not_panic_with_recursive_call --skip repl::test_spread::spread_external_args --skip repl::test_spread::spread_non_list_args --skip const_:: --skip eval:: --skip hooks:: --skip modules:: --skip overlays:: --skip parsing:: --skip path:: --skip plugin_persistence:: --skip plugins:: --skip scope:: --skip shell:: }} %endif %changelog ## START: Generated by rpmautospec * Mon Nov 10 2025 Benjamin A. Beasley - 0.99.1-14 - Allow dirs 6 * Fri Oct 17 2025 Benjamin A. Beasley - 0.99.1-13 - Adjust build constraints to better avoid “too many open files” - Encode more customization in rust2rpm.toml * Thu Oct 16 2025 Gordon Messmer - 0.99.1-12 - Use rpm's native resource tunable to limit parallelism. * Wed Aug 06 2025 Benjamin A. Beasley - 0.99.1-11 - Write License one-term-per-line for easier editing and auditing * Wed Aug 06 2025 Benjamin A. Beasley - 0.99.1-10 - Update the License expression * Wed Aug 06 2025 Benjamin A. Beasley - 0.99.1-9 - Update to rstest 0.26 * Fri Jul 25 2025 Fedora Release Engineering - 0.99.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu Feb 06 2025 Fabio Valentini - 0.99.1-7 - Rebuild for openssl crate >= v0.10.70 (RUSTSEC-2025-0004) * Sun Jan 19 2025 Fedora Release Engineering - 0.99.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Nov 20 2024 Benjamin A. Beasley - 0.99.1-5 - Fix missing License expression * Wed Nov 20 2024 Benjamin A. Beasley - 0.99.1-4 - No longer downgrade serial_test dependency * Wed Nov 20 2024 Benjamin A. Beasley - 0.99.1-3 - Remove obsolete MSRV patch comment * Wed Nov 20 2024 Benjamin A. Beasley - 0.99.1-2 - Allow rstest 0.23 * Sat Nov 16 2024 Michel Lind - 0.99.1-1 - Update to version 0.99.1 * Fri Aug 02 2024 Michel Lind - 0.96.1-1 - Update to version 0.96.1; Fixes: RHBZ#2272719 * Sat Jul 20 2024 Fedora Release Engineering - 0.91.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu May 23 2024 Fabio Valentini - 0.91.0-2 - Rebuild with Rust 1.78 to fix incomplete debuginfo and backtraces * Sat Mar 23 2024 Michel Lind - 0.91.0-1 - Update to 0.91.0 (rhbz#2267997) * Tue Feb 20 2024 Michel Lind - 0.88.1-4 - Drop unnecessary Rust minimum version, for building on EPEL 9 - Work around missing constrain_build macro on EPEL 9 * 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