The package rpms/rust-getrandom.git has added or updated architecture specific content in
its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/rust-getrandom.git/commit/?id=def....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit c74586a1c3e547db83ac31bfc8a33cdbda284c83
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Sat Aug 3 15:41:48 2019 +0200
Update to 0.1.7
Signed-off-by: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
diff --git a/.gitignore b/.gitignore
index 0dd9e73..0c203fd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/getrandom-0.1.6.crate
+/getrandom-0.1.7.crate
diff --git a/getrandom-fix-metadata.diff b/getrandom-fix-metadata.diff
index a694b44..5a6c644 100644
--- a/getrandom-fix-metadata.diff
+++ b/getrandom-fix-metadata.diff
@@ -1,17 +1,11 @@
---- getrandom-0.1.6/Cargo.toml 1970-01-01T00:00:00+00:00
-+++ getrandom-0.1.6/Cargo.toml 2019-07-28T12:47:44.644656+00:00
-@@ -31,19 +31,6 @@
- version = "1.3.0"
- [target."cfg(any(unix, target_os = \"wasi\"))".dependencies.libc]
- version = "0.2.54"
--[target."cfg(target_os = \"uefi\")".dependencies.lazy_static]
--version = "1.3.0"
--features = ["spin_no_std"]
--[target.wasm32-unknown-unknown.dependencies.lazy_static]
--version = "1.3.0"
--
+--- getrandom-0.1.7/Cargo.toml 1970-01-01T00:00:00+00:00
++++ getrandom-0.1.7/Cargo.toml 2019-08-03T13:41:17.592165+00:00
+@@ -32,13 +32,6 @@
+ std = []
+ [target."cfg(any(unix, target_os = \"redox\", target_os =
\"wasi\"))".dependencies.libc]
+ version = "0.2.60"
-[target.wasm32-unknown-unknown.dependencies.stdweb]
--version = "0.4.9"
+-version = "0.4.18"
-optional = true
-
-[target.wasm32-unknown-unknown.dependencies.wasm-bindgen]
diff --git a/rust-getrandom.spec b/rust-getrandom.spec
index 659e5ca..5547600 100644
--- a/rust-getrandom.spec
+++ b/rust-getrandom.spec
@@ -5,7 +5,7 @@
%global crate getrandom
Name: rust-%{crate}
-Version: 0.1.6
+Version: 0.1.7
Release: 1%{?dist}
Summary: Small cross-platform library for retrieving random data from system
source
@@ -98,5 +98,8 @@ which use "std" feature of "%{crate}" crate.
%endif
%changelog
+* Sat Aug 03 15:41:17 CEST 2019 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> -
0.1.7-1
+- Update to 0.1.7
+
* Sun Jul 28 14:47:44 CEST 2019 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> -
0.1.6-1
- Initial package
diff --git a/sources b/sources
index 738a496..e026cd7 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (getrandom-0.1.6.crate) =
e4426a90e1a942344568c087b27a7e7f483e715947ddf25b5a2671b7844b646d09033994a810c9bc96c905d75bf0552e217cf93526a6294a73cb3ddc02540801
+SHA512 (getrandom-0.1.7.crate) =
e38e82ef3d3613e69e2ac38c63a16e6a4f0a7d54f8b894c45e1c9cb2b1d4f8d9a7bbf087c3561d5482fe45ecd51f3d4b2fdc61638df2c380e3c9c3d8fcc03eb3
commit defe3f44018f94b4da06c0069df484141a5e64b3
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Sat Aug 3 15:40:47 2019 +0200
Initial import
Signed-off-by: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0dd9e73
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/getrandom-0.1.6.crate
diff --git a/getrandom-fix-metadata.diff b/getrandom-fix-metadata.diff
new file mode 100644
index 0000000..a694b44
--- /dev/null
+++ b/getrandom-fix-metadata.diff
@@ -0,0 +1,22 @@
+--- getrandom-0.1.6/Cargo.toml 1970-01-01T00:00:00+00:00
++++ getrandom-0.1.6/Cargo.toml 2019-07-28T12:47:44.644656+00:00
+@@ -31,19 +31,6 @@
+ version = "1.3.0"
+ [target."cfg(any(unix, target_os = \"wasi\"))".dependencies.libc]
+ version = "0.2.54"
+-[target."cfg(target_os = \"uefi\")".dependencies.lazy_static]
+-version = "1.3.0"
+-features = ["spin_no_std"]
+-[target.wasm32-unknown-unknown.dependencies.lazy_static]
+-version = "1.3.0"
+-
+-[target.wasm32-unknown-unknown.dependencies.stdweb]
+-version = "0.4.9"
+-optional = true
+-
+-[target.wasm32-unknown-unknown.dependencies.wasm-bindgen]
+-version = "0.2.29"
+-optional = true
+ [badges.appveyor]
+ repository = "rust-random/getrandom"
+
diff --git a/rust-getrandom.spec b/rust-getrandom.spec
new file mode 100644
index 0000000..659e5ca
--- /dev/null
+++ b/rust-getrandom.spec
@@ -0,0 +1,102 @@
+# Generated by rust2rpm 10
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate getrandom
+
+Name: rust-%{crate}
+Version: 0.1.6
+Release: 1%{?dist}
+Summary: Small cross-platform library for retrieving random data from system
source
+
+# Upstream license specification: MIT OR Apache-2.0
+License: MIT or ASL 2.0
+URL:
https://crates.io/crates/getrandom
+Source: %{crates_source}
+# Initial patched metadata
+# * No non-unix deps
+Patch0: getrandom-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Small cross-platform library for retrieving random data from system source.}
+
+%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
+%doc README.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 "default" feature of "%{crate}" crate.
+
+%files -n %{name}+default-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+log-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+log-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "log" feature of "%{crate}" crate.
+
+%files -n %{name}+log-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_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 Jul 28 14:47:44 CEST 2019 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> -
0.1.6-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..738a496
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (getrandom-0.1.6.crate) =
e4426a90e1a942344568c087b27a7e7f483e715947ddf25b5a2671b7844b646d09033994a810c9bc96c905d75bf0552e217cf93526a6294a73cb3ddc02540801
diff --git a/tests/.fmf/version b/tests/.fmf/version
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/tests/.fmf/version
@@ -0,0 +1 @@
+1
diff --git a/tests/provision.fmf b/tests/provision.fmf
new file mode 100644
index 0000000..503a97c
--- /dev/null
+++ b/tests/provision.fmf
@@ -0,0 +1,5 @@
+---
+standard-inventory-qcow2:
+ qemu:
+ # `cargo test` usually eats more than 1G.
+ m: 4G
diff --git a/tests/tests.yml b/tests/tests.yml
new file mode 100644
index 0000000..53db13b
--- /dev/null
+++ b/tests/tests.yml
@@ -0,0 +1,13 @@
+---
+- hosts: localhost
+ roles:
+ - role: standard-test-basic
+ tags:
+ - classic
+ repositories:
+ - repo: "https://src.fedoraproject.org/tests/rust.git"
+ dest: rust
+ tests:
+ - rust/cargo-test
+ environment:
+ pkg: rust-getrandom