From e5f1fba0ff50024201b17e774499fb22b2fafc41 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Nov 07 2017 17:20:31 +0000 Subject: initial import Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4ba891f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/errln-0.1.0.crate diff --git a/rust-errln.spec b/rust-errln.spec new file mode 100644 index 0000000..e3bf997 --- /dev/null +++ b/rust-errln.spec @@ -0,0 +1,55 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate errln + +Name: rust-%{crate} +Version: 0.1.0 +Release: 1%{?dist} +Summary: Utility macros to write to stderr + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/errln +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Utility macros to write to stderr. + +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 LICENCE-MIT LICENCE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Thu Jul 06 2017 Igor Gnatenko - 0.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..97d681b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (errln-0.1.0.crate) = 16ef5712bfcfe237740f6303f5aafa2c6ba9b4e34d6213fce2511c09eda48914452002f8825f2626d5b806fc6a22d1d616acbfc1ba5e1be615168f9c9a90c361