From 8d93a702050d91fd5f3f5fc8d2d3b401f5ae7baf Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Tue, 23 May 2023 15:39:30 -0500 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-ratatui.spec | 108 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 110 insertions(+) create mode 100644 .gitignore create mode 100644 rust-ratatui.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b919a2e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ratatui-0.20.1.crate diff --git a/rust-ratatui.spec b/rust-ratatui.spec new file mode 100644 index 0000000..75aedb6 --- /dev/null +++ b/rust-ratatui.spec @@ -0,0 +1,108 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate ratatui + +Name: rust-ratatui +Version: 0.20.1 +Release: %autorelease +Summary: Library to build rich terminal user interfaces or dashboards + +License: MIT +URL: https://crates.io/crates/ratatui +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%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}+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}+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 + +%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 +# skip tests that don't panic as expected +%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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..6f1abd8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ratatui-0.20.1.crate) = f10e063a16d77f0771b7c3f6062c3141839bf13636754a51f56ffa32b634e6ac93ff9cae584e1316f8118574c4776efa7282f01d34861be86efdeb9bd9a6b00e