# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate nu-command Name: rust-nu-command Version: 0.88.1 Release: %autorelease Summary: Nushell's built-in commands License: MIT URL: https://crates.io/crates/nu-command Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: nu-command-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * replace unmaintained htmlescape with v_htmlescape # * widen accepted rusqlite versions to allow building against 0.28 and 0.30 Patch: nu-command-fix-metadata.diff # ditto, see https://github.com/nushell/nushell/pull/11572 Patch: nu-command-replace-htmlescape.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Nushell's built-in commands.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+num-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+num-devel %{_description} This package contains library source intended for building other packages which use the "num" feature of the "%{crate}" crate. %files -n %{name}+num-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+plugin-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+plugin-devel %{_description} This package contains library source intended for building other packages which use the "plugin" feature of the "%{crate}" crate. %files -n %{name}+plugin-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rusqlite-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rusqlite-devel %{_description} This package contains library source intended for building other packages which use the "rusqlite" feature of the "%{crate}" crate. %files -n %{name}+rusqlite-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sqlite-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sqlite-devel %{_description} This package contains library source intended for building other packages which use the "sqlite" feature of the "%{crate}" crate. %files -n %{name}+sqlite-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+trash-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+trash-devel %{_description} This package contains library source intended for building other packages which use the "trash" feature of the "%{crate}" crate. %files -n %{name}+trash-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+trash-support-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+trash-support-devel %{_description} This package contains library source intended for building other packages which use the "trash-support" feature of the "%{crate}" crate. %files -n %{name}+trash-support-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+which-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+which-devel %{_description} This package contains library source intended for building other packages which use the "which" feature of the "%{crate}" crate. %files -n %{name}+which-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+which-support-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+which-support-devel %{_description} This package contains library source intended for building other packages which use the "which-support" feature of the "%{crate}" crate. %files -n %{name}+which-support-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * these tests require unshipped fixtures %cargo_test -- -- --skip debug::timeit::test_time_block --skip strings::split::words::test::test_incompat_flags --skip commands:: --skip format_conversions:: %endif %changelog %autochangelog