diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5732c85 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/rand_distr-0.2.2.crate diff --git a/rust-rand_distr.spec b/rust-rand_distr.spec new file mode 100644 index 0000000..c061b99 --- /dev/null +++ b/rust-rand_distr.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate rand_distr + +Name: rust-%{crate} +Version: 0.2.2 +Release: 1%{?dist} +Summary: Sampling from random number distributions + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/rand_distr +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Sampling from random number distributions.} + +%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 LICENSE-APACHE COPYRIGHT +%doc README.md CHANGELOG.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 +* Sun Feb 16 07:32:47 CET 2020 Igor Raits - 0.2.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..f6a6682 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (rand_distr-0.2.2.crate) = 15c710f3ec4e06fb4c356ef1016431c8b7e6fd6d7f03f2fe56b7ffd34cfffd728d3b3a9c92ddca36fb4920154f92589dc9c91b1735bb32d5b61eaedb24d702cc