# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate ratatui-core Name: rust-ratatui-core Version: 0.1.0 Release: %autorelease Summary: Core types and traits for the Ratatui Terminal UI library License: MIT URL: https://crates.io/crates/ratatui-core Source: %{crates_source} # * https://github.com/ratatui/ratatui/commit/746e9c9 Source2: https://github.com/ratatui/ratatui/raw/refs/tags/ratatui-v0.30.0/LICENSE # Manually created patch for downstream crate metadata changes # * relax unicode-width dependency upper version bound Patch: ratatui-core-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Core types and traits for the Ratatui Terminal UI library. Widget libraries should use this crate. Applications should use the main Ratatui crate.} %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 %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}+anstyle-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+anstyle-devel %{_description} This package contains library source intended for building other packages which use the "anstyle" feature of the "%{crate}" crate. %files -n %{name}+anstyle-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+document-features-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+document-features-devel %{_description} This package contains library source intended for building other packages which use the "document-features" feature of the "%{crate}" crate. %files -n %{name}+document-features-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+layout-cache-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+layout-cache-devel %{_description} This package contains library source intended for building other packages which use the "layout-cache" feature of the "%{crate}" crate. %files -n %{name}+layout-cache-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+palette-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+palette-devel %{_description} This package contains library source intended for building other packages which use the "palette" feature of the "%{crate}" crate. %files -n %{name}+palette-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+portable-atomic-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+portable-atomic-devel %{_description} This package contains library source intended for building other packages which use the "portable-atomic" feature of the "%{crate}" crate. %files -n %{name}+portable-atomic-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+scrolling-regions-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+scrolling-regions-devel %{_description} This package contains library source intended for building other packages which use the "scrolling-regions" feature of the "%{crate}" crate. %files -n %{name}+scrolling-regions-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}+std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+underline-color-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+underline-color-devel %{_description} This package contains library source intended for building other packages which use the "underline-color" feature of the "%{crate}" crate. %files -n %{name}+underline-color-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep cp -pav %{SOURCE2} . %generate_buildrequires %cargo_generate_buildrequires -f std %build %cargo_build -f std %install %cargo_install -f std %if %{with check} %check # * skip tests that do not panid as expected when built without debug assertions %{cargo_test -f std -- -- %{shrink: --skip buffer::buffer::tests::pos_of_panics_on_out_of_bounds --skip 'src/buffer/buffer.rs' }} %endif %changelog %autochangelog