Initial package

epel9
Josh Stone 7 years ago
parent 64c4178f7d
commit 1ab7762337

1
.gitignore vendored

@ -0,0 +1 @@
/rand_core-0.2.1.crate

@ -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 <jistone@redhat.com> - 0.2.1-1
- Initial package

@ -0,0 +1 @@
SHA512 (rand_core-0.2.1.crate) = 5e919f4229ee2e7d00f47f8bbbb7fd27e11f34aa5bd85a9d9e34d45af1601bdbe2507d9b0182b5af7a6eb4d93da3004d2708729f7e864b6c66ce9b3274fe1c64
Loading…
Cancel
Save