You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-nu-test-support/rust-nu-test-support.spec

74 lines
1.7 KiB

# Generated by rust2rpm 23
%bcond_without check
%global debug_package %{nil}
%global crate nu-test-support
Name: rust-nu-test-support
Version: 0.74.0
Release: %autorelease
Summary: Support for writing Nushell tests
License: MIT
URL: https://crates.io/crates/nu-test-support
Source: %{crates_source}
# fix for test code not gated identically to the implementation
# https://github.com/nushell/nushell/pull/7824
Patch: nu-test-support-test-gating.diff
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Support for writing Nushell tests.}
%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
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
# test fixtures are not shipped
%cargo_test -- -- \
--skip playground::tests::current_working_directory_back_to_root_from_anywhere \
--skip playground::tests::current_working_directory_in_sandbox_directory_created
%endif
%changelog
%autochangelog