From 561db174dc308506c4951c438439c60779716c9a Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 20 Nov 2017 15:15:38 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-term_grid.spec | 57 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 59 insertions(+) create mode 100644 .gitignore create mode 100644 rust-term_grid.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..470bf57 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/term_grid-0.1.6.crate diff --git a/rust-term_grid.spec b/rust-term_grid.spec new file mode 100644 index 0000000..de7e455 --- /dev/null +++ b/rust-term_grid.spec @@ -0,0 +1,57 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate term_grid + +Name: rust-%{crate} +Version: 0.1.6 +Release: 1%{?dist} +Summary: Library for formatting strings into a grid layout + +# https://github.com/ogham/rust-term-grid/issues/4 +License: MIT +URL: https://crates.io/crates/term_grid +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(unicode-width) >= 0.1.3 with crate(unicode-width) < 0.2.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Library for formatting strings into a grid layout. + +This package contains library source intended for building other packages +which use %{crate} from crates.io. + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%files devel +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Fri Nov 17 2017 Igor Gnatenko - 0.1.6-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..26bdd0f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (term_grid-0.1.6.crate) = 2fed7f16de47bcbbc6a27ff4572367c1990d3df8e5814e565975bd5589ffb22520d5dc929f696819d269827b71b8d10d3acb95e2da809f4d28662f5cf0c3812a