From a49d7f0af363d4f0f9b1c51dbdf49003a6bfc6bd Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sep 03 2018 18:07:55 +0000 Subject: initial import Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..59ac8e8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/termios-0.3.0.crate diff --git a/rust-termios.spec b/rust-termios.spec new file mode 100644 index 0000000..fa45193 --- /dev/null +++ b/rust-termios.spec @@ -0,0 +1,57 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate termios + +Name: rust-%{crate} +Version: 0.3.0 +Release: 1%{?dist} +Summary: Safe bindings for the termios library + +License: MIT +URL: https://crates.io/crates/termios +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Safe bindings for the termios library. + +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 +%license LICENSE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Mon Sep 03 2018 Igor Gnatenko - 0.3.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..d4c9c82 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (termios-0.3.0.crate) = 82b4dcedd22df9b2ec861928f5618644fee1097225b83979ab4756178707c5bf3b6e619eab6aeea944b1f2c281a238bb29827dbf8db077d387a1b7204926fc56