From 23a08803cf199ba978e861cc17899eb783d8b6fd Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Mon, 10 May 2021 10:28:13 -0700 Subject: [PATCH] import #1958366 --- .gitignore | 1 + rust-ncurses.spec | 148 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 150 insertions(+) create mode 100644 .gitignore create mode 100644 rust-ncurses.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f7ddbe6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ncurses-5.101.0.crate diff --git a/rust-ncurses.spec b/rust-ncurses.spec new file mode 100644 index 0000000..d5b4379 --- /dev/null +++ b/rust-ncurses.spec @@ -0,0 +1,148 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate ncurses + +Name: rust-%{crate} +Version: 5.101.0 +Release: 1%{?dist} +Summary: Very thin wrapper around the ncurses TUI library + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/ncurses +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging +BuildRequires: ncurses-devel + +%global _description %{expand: +Very thin wrapper around the ncurses TUI library.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+extended_colors-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+extended_colors-devel %{_description} + +This package contains library source intended for building other packages +which use "extended_colors" feature of "%{crate}" crate. + +%files -n %{name}+extended_colors-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+menu-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+menu-devel %{_description} + +This package contains library source intended for building other packages +which use "menu" feature of "%{crate}" crate. + +%files -n %{name}+menu-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+mouse_v1-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+mouse_v1-devel %{_description} + +This package contains library source intended for building other packages +which use "mouse_v1" feature of "%{crate}" crate. + +%files -n %{name}+mouse_v1-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+panel-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+panel-devel %{_description} + +This package contains library source intended for building other packages +which use "panel" feature of "%{crate}" crate. + +%files -n %{name}+panel-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+wide-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+wide-devel %{_description} + +This package contains library source intended for building other packages +which use "wide" feature of "%{crate}" crate. + +%files -n %{name}+wide-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+wide_chtype-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+wide_chtype-devel %{_description} + +This package contains library source intended for building other packages +which use "wide_chtype" feature of "%{crate}" crate. + +%files -n %{name}+wide_chtype-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 +* Fri May 07 10:32:19 PDT 2021 Davide Cavalca - 5.101.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..abc7481 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ncurses-5.101.0.crate) = e73513a28706dce70296af28170e8c124b9ab105dcc6509f2d65114f0f8f948b775cb4b459293a399bbf748f06bb60e5906818d928b4f0078c96531d8ab050e7