# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate ratatui-widgets Name: rust-ratatui-widgets Version: 0.3.0 Release: %autorelease Summary: Collection of widgets for building terminal user interfaces using Ratatui License: MIT URL: https://crates.io/crates/ratatui-widgets 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-widgets-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A collection of Ratatui widgets for building terminal user interfaces using Ratatui.} %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}+all-widgets-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+all-widgets-devel %{_description} This package contains library source intended for building other packages which use the "all-widgets" feature of the "%{crate}" crate. %files -n %{name}+all-widgets-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+calendar-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+calendar-devel %{_description} This package contains library source intended for building other packages which use the "calendar" feature of the "%{crate}" crate. %files -n %{name}+calendar-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}+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}+unstable-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unstable-devel %{_description} This package contains library source intended for building other packages which use the "unstable" feature of the "%{crate}" crate. %files -n %{name}+unstable-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unstable-rendered-line-info-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unstable-rendered-line-info-devel %{_description} This package contains library source intended for building other packages which use the "unstable-rendered-line-info" feature of the "%{crate}" crate. %files -n %{name}+unstable-rendered-line-info-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 # * example code and doctests can only be compiled in-workspace %cargo_test -f std -- --lib %endif %changelog %autochangelog