From 63536d620e8633094354493c88e020c8ec49f8a5 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Jun 22 2019 07:50:47 +0000 Subject: Regenerate Signed-off-by: Igor Gnatenko --- diff --git a/rand-fix-metadata.diff b/rand-fix-metadata.diff index e8edd28..2a4cedb 100644 --- a/rand-fix-metadata.diff +++ b/rand-fix-metadata.diff @@ -1,6 +1,6 @@ ---- rand-0.4.6/Cargo.toml 1969-12-31T16:00:00-08:00 -+++ rand-0.4.6/Cargo.toml 2019-01-28T16:40:34.970535-08:00 -@@ -22,24 +22,14 @@ +--- rand-0.4.6/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ rand-0.4.6/Cargo.toml 2019-06-22T07:50:01.804117+00:00 +@@ -22,6 +22,7 @@ categories = ["algorithms"] license = "MIT/Apache-2.0" repository = "https://github.com/rust-lang-nursery/rand" @@ -8,14 +8,14 @@ [features] alloc = [] - default = ["std"] +@@ -29,17 +30,6 @@ i128_support = [] --nightly = ["i128_support"] + nightly = ["i128_support"] std = ["libc"] -[target."cfg(target_env = \"sgx\")".dependencies.rand_core] -version = "0.3" -default-features = false - +- -[target."cfg(target_env = \"sgx\")".dependencies.rdrand] -version = "0.4.0" -[target."cfg(target_os = \"fuchsia\")".dependencies.fuchsia-cprng] diff --git a/rust-rand0.4.spec b/rust-rand0.4.spec index 812d2f5..bd6fd64 100644 --- a/rust-rand0.4.spec +++ b/rust-rand0.4.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate rand Name: rust-%{crate}0.4 Version: 0.4.6 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Random number generators and other randomness functionality # Upstream license specification: MIT/Apache-2.0 @@ -19,12 +19,14 @@ Source: %{crates_source} Patch0: rand-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0) -%global _description \ -Random number generators and other randomness functionality. +%global _description %{expand: +Random number generators and other randomness functionality.} %description %{_description} @@ -90,6 +92,18 @@ which use "libc" feature of "%{crate}" crate. %files -n %{name}+libc-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%package -n %{name}+nightly-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+nightly-devel %{_description} + +This package contains library source intended for building other packages +which use "nightly" feature of "%{crate}" crate. + +%files -n %{name}+nightly-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch @@ -106,6 +120,9 @@ which use "std" feature of "%{crate}" crate. %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -118,6 +135,9 @@ which use "std" feature of "%{crate}" crate. %endif %changelog +* Sat Jun 22 09:50:01 CEST 2019 Igor Gnatenko - 0.4.6-4 +- Regenerate + * Sat Mar 09 2019 Igor Gnatenko - 0.4.6-3 - Adapt to new packaging