diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..11b42a7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tui-0.7.0.crate diff --git a/rust-tui.spec b/rust-tui.spec new file mode 100644 index 0000000..fdcc65c --- /dev/null +++ b/rust-tui.spec @@ -0,0 +1,155 @@ +# Generated by rust2rpm 10 + +### test result: FAILED. 17 passed; 2 failed; 1 ignored; 0 measured; 0 filtered out +### Probably because of 'rust-stderrlog' package +### * new 0.7.0 versions requires many new updated crates +%bcond_with check + +%global debug_package %{nil} + +%global crate tui + +Name: rust-%{crate} +Version: 0.7.0 +Release: 1%{?dist} +Summary: Library to build rich terminal user interfaces or dashboards + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/tui +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +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 "%{crate}" crate. + +%files devel +%license LICENSE +%doc README.md CHANGELOG.md +%{cargo_registry}/%{crate}-%{version}/ + +%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}/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 "crossterm" feature of "%{crate}" crate. + +%files -n %{name}+crossterm-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+curses-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+curses-devel %{_description} + +This package contains library source intended for building other packages +which use "curses" feature of "%{crate}" crate. + +%files -n %{name}+curses-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+easycurses-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+easycurses-devel %{_description} + +This package contains library source intended for building other packages +which use "easycurses" feature of "%{crate}" crate. + +%files -n %{name}+easycurses-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+pancurses-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+pancurses-devel %{_description} + +This package contains library source intended for building other packages +which use "pancurses" feature of "%{crate}" crate. + +%files -n %{name}+pancurses-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+rustbox-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rustbox-devel %{_description} + +This package contains library source intended for building other packages +which use "rustbox" feature of "%{crate}" crate. + +%files -n %{name}+rustbox-devel +%ghost %{cargo_registry}/%{crate}-%{version}/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 "termion" feature of "%{crate}" crate. + +%files -n %{name}+termion-devel +%ghost %{cargo_registry}/%{crate}-%{version}/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 +* Wed Dec 11 2019 Artem Polishchuk - 0.7.0-1 +- Update to 0.7.0 + +* Fri Nov 15 19:05:51 EET 2019 Artem Polishchuk - 0.6.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..ba3937f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tui-0.7.0.crate) = a94f442f2a2baa010728d124d2c7499af4430e40d87523a0f8d5e365b79dea99424e1ff3f1cc86d79ad623ff54c97c483fbb5cc145d56aba93520023c1df4257 diff --git a/tests/.fmf/version b/tests/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/tests/provision.fmf b/tests/provision.fmf new file mode 100644 index 0000000..f538bc3 --- /dev/null +++ b/tests/provision.fmf @@ -0,0 +1,5 @@ +--- +standard-inventory-qcow2: + qemu: + # `cargo test` usually eats more than 1G. + m: 4G diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..5f8834b --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,13 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + repositories: + - repo: "https://src.fedoraproject.org/tests/rust.git" + dest: rust + tests: + - rust/cargo-test + environment: + pkg: rust-tui