diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9455c00 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/nu-term-grid-0.76.0.crate diff --git a/rust-nu-term-grid.spec b/rust-nu-term-grid.spec new file mode 100644 index 0000000..dbd9ad4 --- /dev/null +++ b/rust-nu-term-grid.spec @@ -0,0 +1,67 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate nu-term-grid + +Name: rust-nu-term-grid +Version: 0.76.0 +Release: %autorelease +Summary: Nushell grid printing + +License: MIT +URL: https://crates.io/crates/nu-term-grid +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Nushell grid printing.} + +%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 +%{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 + +%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 +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..bd5efcd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (nu-term-grid-0.76.0.crate) = f8bee1edeff75e3a1f49cc863ad084295e64a7d4279447fc234f8b915ab9fde90474314604c9caa64ce654aa956abaabc1eeb1163946703f18cfdca98c3e6c09