From df6ff2cd8a67a3b277509f5aa4bf3ddfa755587e Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 27 Oct 2018 01:50:18 +0200 Subject: [PATCH] Update to 0.3.0 Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-rand_core.spec | 106 +++++++++++++++++++++++++++++++++++++------- sources | 2 +- 3 files changed, 93 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 908bf38..9f313f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /rand_core-0.2.1.crate +/rand_core-0.3.0.crate diff --git a/rust-rand_core.spec b/rust-rand_core.spec index d585a29..2113dd2 100644 --- a/rust-rand_core.spec +++ b/rust-rand_core.spec @@ -6,10 +6,11 @@ %global crate rand_core Name: rust-%{crate} -Version: 0.2.1 -Release: 3%{?dist} -Summary: Core random number generator traits +Version: 0.3.0 +Release: 1%{?dist} +Summary: Core random number generator traits and tools for implementation +# Upstream license specification: MIT/Apache-2.0 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 @@ -17,22 +18,99 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ 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) +BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0) +BuildRequires: (crate(serde_derive/default) >= 1.0.38 with crate(serde_derive/default) < 2.0.0) -%description +%global _description \ Core random number generator traits and tools for implementation. +%description %{_description} + %package devel Summary: %{summary} BuildArch: noarch -%description devel -Core random number generator traits and tools for implementation. +%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}/ + +%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 %{crate} from crates.io. +which use "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages +which use "alloc" feature of "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages +which use "serde" feature of "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+serde1-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde1-devel %{_description} + +This package contains library source intended for building other packages +which use "serde1" feature of "%{crate}" crate. + +%files -n %{name}+serde1-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+serde_derive-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde_derive-devel %{_description} + +This package contains library source intended for building other packages +which use "serde_derive" feature of "%{crate}" crate. + +%files -n %{name}+serde_derive-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages +which use "std" feature of "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -49,12 +127,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sat Oct 27 2018 Igor Gnatenko - 0.3.0-1 +- Update to 0.3.0 + * Sun Oct 07 2018 Igor Gnatenko - 0.2.1-3 - Run tests in infrastructure diff --git a/sources b/sources index b7acd7b..8351375 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rand_core-0.2.1.crate) = 5e919f4229ee2e7d00f47f8bbbb7fd27e11f34aa5bd85a9d9e34d45af1601bdbe2507d9b0182b5af7a6eb4d93da3004d2708729f7e864b6c66ce9b3274fe1c64 +SHA512 (rand_core-0.3.0.crate) = a476510ef936571e3351f42e0f1c615530732b7c66f41975fef10dc6b8f4d8536a6d8166bb90d6da2bb997108ee3e87f4d80884264b239680e6ffd3494dcb748