From 1ab77623371cb6d8197bdfe2a507b115c0ad7c15 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Jul 03 2018 17:20:26 +0000 Subject: Initial package --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..908bf38 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/rand_core-0.2.1.crate diff --git a/rust-rand_core.spec b/rust-rand_core.spec new file mode 100644 index 0000000..91ee711 --- /dev/null +++ b/rust-rand_core.spec @@ -0,0 +1,58 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate rand_core + +Name: rust-%{crate} +Version: 0.2.1 +Release: 1%{?dist} +Summary: Core random number generator traits + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/rand_core +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) +BuildRequires: (crate(serde_derive) >= 1.0.38 with crate(serde_derive) < 2.0.0) + +%description +Core random number generator traits and tools for implementation. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Core random number generator traits and tools for implementation. + +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-MIT LICENSE-APACHE +%doc README.md CHANGELOG.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Sat Jun 30 2018 Josh Stone - 0.2.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..b7acd7b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (rand_core-0.2.1.crate) = 5e919f4229ee2e7d00f47f8bbbb7fd27e11f34aa5bd85a9d9e34d45af1601bdbe2507d9b0182b5af7a6eb4d93da3004d2708729f7e864b6c66ce9b3274fe1c64