## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate ratatui Name: rust-ratatui0.21 Version: 0.21.0 Release: %autorelease Summary: Library to build rich terminal user interfaces or dashboards License: MIT URL: https://crates.io/crates/ratatui Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop unused optional termwiz dependency (too old in Fedora) Patch: ratatui-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A library to build rich terminal user interfaces or dashboards.} %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}/APPS.md %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %doc %{crate_instdir}/RELEASE.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}+crossterm-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+crossterm-devel %{_description} This package contains library source intended for building other packages which use the "crossterm" feature of the "%{crate}" crate. %files -n %{name}+crossterm-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+macros-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+macros-devel %{_description} This package contains library source intended for building other packages which use the "macros" feature of the "%{crate}" crate. %files -n %{name}+macros-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}+termion-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+termion-devel %{_description} This package contains library source intended for building other packages which use the "termion" feature of the "%{crate}" crate. %files -n %{name}+termion-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+time-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+time-devel %{_description} This package contains library source intended for building other packages which use the "time" feature of the "%{crate}" crate. %files -n %{name}+time-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+widget-calendar-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+widget-calendar-devel %{_description} This package contains library source intended for building other packages which use the "widget-calendar" feature of the "%{crate}" crate. %files -n %{name}+widget-calendar-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 # skip tests that don't panic as expected (no overflows in release mode) %cargo_test -- -- --skip buffer::Buffer::index_of --skip buffer::Buffer::pos_of --skip buffer::tests::index_of_panics_on_out_of_bounds --skip buffer::tests::pos_of_panics_on_out_of_bounds %endif %changelog ## START: Generated by rpmautospec * Mon Feb 19 2024 Fabio Valentini - 0.21.0-1 - Initial import (ratatui 0.21 compat package) ## END: Generated by rpmautospec