From 7b0c00f24303b42cbe1ed9e8a826a7b57c402b22 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Sat, 29 Feb 2020 17:10:51 +0100 Subject: [PATCH] Initial import Signed-off-by: Igor Raits --- .gitignore | 1 + rust-oorandom.spec | 75 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 77 insertions(+) create mode 100644 .gitignore create mode 100644 rust-oorandom.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..889e9bd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/oorandom-11.1.0.crate diff --git a/rust-oorandom.spec b/rust-oorandom.spec new file mode 100644 index 0000000..0b38580 --- /dev/null +++ b/rust-oorandom.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate oorandom + +Name: rust-%{crate} +Version: 11.1.0 +Release: 1%{?dist} +Summary: Tiny, robust PRNG implementation + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/oorandom +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Tiny, robust PRNG implementation.} + +%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 +%license LICENSE-MIT +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Sat Feb 29 17:10:23 CET 2020 Igor Raits - 11.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..a53a5ea --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (oorandom-11.1.0.crate) = faf840b52a315125d5f6c80f6101fcbff6ac29217d362915ebbae4f7337c18ecd46b89da96bf67147e84d0f805edb626be0da448af12b0bf537fb0f0a3a25c0c