# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate termwiz Name: rust-termwiz Version: 0.22.0 Release: %autorelease Summary: Terminal Wizardry for Unix and Windows License: MIT URL: https://crates.io/crates/termwiz Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: termwiz-fix-metadata-auto.diff # Removed benchmarks with unpackaged dependency Patch: termwiz-fix-drop-benches.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Terminal Wizardry for Unix and Windows.} %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.md %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %{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}+cassowary-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cassowary-devel %{_description} This package contains library source intended for building other packages which use the "cassowary" feature of the "%{crate}" crate. %files -n %{name}+cassowary-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+docs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+docs-devel %{_description} This package contains library source intended for building other packages which use the "docs" feature of the "%{crate}" crate. %files -n %{name}+docs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fnv-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fnv-devel %{_description} This package contains library source intended for building other packages which use the "fnv" feature of the "%{crate}" crate. %files -n %{name}+fnv-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+image-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+image-devel %{_description} This package contains library source intended for building other packages which use the "image" feature of the "%{crate}" crate. %files -n %{name}+image-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+use_image-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+use_image-devel %{_description} This package contains library source intended for building other packages which use the "use_image" feature of the "%{crate}" crate. %files -n %{name}+use_image-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+use_serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+use_serde-devel %{_description} This package contains library source intended for building other packages which use the "use_serde" feature of the "%{crate}" crate. %files -n %{name}+use_serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+widgets-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+widgets-devel %{_description} This package contains library source intended for building other packages which use the "widgets" feature of the "%{crate}" crate. %files -n %{name}+widgets-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 %cargo_test %endif %changelog %autochangelog