Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent bae1113c32
commit 63536d620e
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -1,6 +1,6 @@
--- rand-0.4.6/Cargo.toml 1969-12-31T16:00:00-08:00 --- rand-0.4.6/Cargo.toml 1970-01-01T00:00:00+00:00
+++ rand-0.4.6/Cargo.toml 2019-01-28T16:40:34.970535-08:00 +++ rand-0.4.6/Cargo.toml 2019-06-22T07:50:01.804117+00:00
@@ -22,24 +22,14 @@ @@ -22,6 +22,7 @@
categories = ["algorithms"] categories = ["algorithms"]
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
repository = "https://github.com/rust-lang-nursery/rand" repository = "https://github.com/rust-lang-nursery/rand"
@ -8,14 +8,14 @@
[features] [features]
alloc = [] alloc = []
default = ["std"] @@ -29,17 +30,6 @@
i128_support = [] i128_support = []
-nightly = ["i128_support"] nightly = ["i128_support"]
std = ["libc"] std = ["libc"]
-[target."cfg(target_env = \"sgx\")".dependencies.rand_core] -[target."cfg(target_env = \"sgx\")".dependencies.rand_core]
-version = "0.3" -version = "0.3"
-default-features = false -default-features = false
-
-[target."cfg(target_env = \"sgx\")".dependencies.rdrand] -[target."cfg(target_env = \"sgx\")".dependencies.rdrand]
-version = "0.4.0" -version = "0.4.0"
-[target."cfg(target_os = \"fuchsia\")".dependencies.fuchsia-cprng] -[target."cfg(target_os = \"fuchsia\")".dependencies.fuchsia-cprng]

@ -1,12 +1,12 @@
# Generated by rust2rpm # Generated by rust2rpm 10
%bcond_with check %bcond_without check
%global debug_package %{nil} %global debug_package %{nil}
%global crate rand %global crate rand
Name: rust-%{crate}0.4 Name: rust-%{crate}0.4
Version: 0.4.6 Version: 0.4.6
Release: 3%{?dist} Release: 4%{?dist}
Summary: Random number generators and other randomness functionality Summary: Random number generators and other randomness functionality
# Upstream license specification: MIT/Apache-2.0 # Upstream license specification: MIT/Apache-2.0
@ -19,12 +19,14 @@ Source: %{crates_source}
Patch0: rand-fix-metadata.diff Patch0: rand-fix-metadata.diff
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging BuildRequires: rust-packaging
BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0)
%global _description \ %global _description %{expand:
Random number generators and other randomness functionality. Random number generators and other randomness functionality.}
%description %{_description} %description %{_description}
@ -90,6 +92,18 @@ which use "libc" feature of "%{crate}" crate.
%files -n %{name}+libc-devel %files -n %{name}+libc-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %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 %package -n %{name}+std-devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
@ -106,6 +120,9 @@ which use "std" feature of "%{crate}" crate.
%autosetup -n %{crate}-%{version_no_tilde} -p1 %autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep %cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build %build
%cargo_build %cargo_build
@ -118,6 +135,9 @@ which use "std" feature of "%{crate}" crate.
%endif %endif
%changelog %changelog
* Sat Jun 22 09:50:01 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.6-4
- Regenerate
* Sat Mar 09 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.6-3 * Sat Mar 09 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.6-3
- Adapt to new packaging - Adapt to new packaging

Loading…
Cancel
Save