From bbffee28287f5ab6bf0134e77b4ea4b5fce74c53 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Apr 24 2019 06:18:07 +0000 Subject: Initial import Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0cbcb72 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tuikit-0.2.6.crate diff --git a/rust-tuikit.spec b/rust-tuikit.spec new file mode 100644 index 0000000..be977e5 --- /dev/null +++ b/rust-tuikit.spec @@ -0,0 +1,89 @@ +# Generated by rust2rpm +%bcond_with check +%global debug_package %{nil} + +%global crate tuikit + +Name: rust-%{crate} +Version: 0.2.6 +Release: 1%{?dist} +Summary: Toolkit for writing TUI applications + +License: MIT +URL: https://crates.io/crates/tuikit +Source: %{crates_source} +# Initial patched metadata +# - Bump nix to 0.13.0 https://github.com/lotabout/tuikit/pull/7 +Patch0: tuikit-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +BuildRequires: (crate(bitflags/default) >= 1.0.4 with crate(bitflags/default) < 2.0.0) +BuildRequires: (crate(lazy_static/default) >= 1.2.0 with crate(lazy_static/default) < 2.0.0) +BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0) +BuildRequires: (crate(nix/default) >= 0.13.0 with crate(nix/default) < 0.14.0) +BuildRequires: (crate(term/default) >= 0.5.1 with crate(term/default) < 0.6.0) +BuildRequires: (crate(unicode-width/default) >= 0.1.5 with crate(unicode-width/default) < 0.2.0) +%if %{with check} +BuildRequires: (crate(env_logger/default) >= 0.6.1 with crate(env_logger/default) < 0.7.0) +%endif + +%global _description \ +Tuikit is a TUI library for writing terminal UI applications. Highlights:\ +\ + - Thread safe.\ + - Support non-fullscreen mode as well as fullscreen mode.\ + - Support Alt keys, mouse events, etc.\ + - Buffering for efficient rendering.\ +\ +Tuikit is modeld after termbox which views the terminal as a table of\ +fixed-size cells and input being a stream of structured messages. + +%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 +%doc CHANGELOG.md README.md +%license LICENSE +%{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 + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +# One test fails because ENOTTY in Mock +%cargo_test ||: +%endif + +%changelog +* Sat Apr 13 2019 Robert-André Mauchin - 0.2.6-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..c9a217f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tuikit-0.2.6.crate) = 6f468ef533815f352e2002d743efdc82be2dec9a3ae86f01fd22d1a9f8bc59082f8fb4ded73f1d8a94206beb97445c1d4a21ae742be2646d256874807709519a 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..503a97c --- /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..e8b8e7b --- /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-tuikit diff --git a/tuikit-fix-metadata.diff b/tuikit-fix-metadata.diff new file mode 100644 index 0000000..57f4ec6 --- /dev/null +++ b/tuikit-fix-metadata.diff @@ -0,0 +1,11 @@ +--- tuikit-0.2.6/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ tuikit-0.2.6/Cargo.toml 2019-04-13T21:02:59.019854+02:00 +@@ -32,7 +32,7 @@ + version = "0.4" + + [dependencies.nix] +-version = "0.11.0" ++version = "0.13.0" + + [dependencies.term] + version = "0.5.1"